Another OctoPrint will not start

I believe the Ender 5 Plus default firmware is Marlin based and KIAUH is an awesome Klipper installation and update helper.

It would help us immensely if you could detail all the steps involved from unboxing the printer and the parts to the state you are in now. Please include links to any reference material you used.

"unboxing" of the printer is rather moot, ive had it a while.... but it came from Creality non-operational so i replaced all the internals with BTT and did some much-needed upgrades. Marlin on a SKR-3 doesn't work very well, especially for the STM32H723 chip (my personal opinion). So, I bought a BTT PI4B and a CM4 for Klipper. Ive installed it at least a 20 times just because i was teaching myself how to do all this. As of now its all working, i just can't get OctoPrint to start up on this install. my last install i used OctoKlipperPi and was really liking it but there is no Mainsail or Fluidd or Moonraker so a lot of upgrades can't be done. I used the latest KIAUH and installed everything so that its available, but this time Octprint won't start. Ive installed 3 different branches that i have installed and know to work, all with the same outcome: nothing. No Start, no Safe Mode, Checking the octoprint.log it always stops at the same spot. Ive seen others with the same problem going back a few years now but not a one has a solution that actually works for me.

octoprint-systeminfo-20250415231046.zip (1.7 KB)

Sorry about the quotes.....first post here.

ive tried every sd card i own, besides; cant use a memory card when installing on a RPI CM....Octoprint installs flawlessly but will not let me connect by IP, IP:5000, *.local...nothing.

Yes, it does "say" it starts up but 4 seconds later it crashes.

2025-04-15 22:59:38,295 - octoprint.cli.server - ERROR - Uncaught exception Traceback (most recent call last)

Ive installed Octoprint quite a few times and ive had no issues until now.

and i never said it was a network issue, the template did. I know its not a network issue....i can connect to everything else.


Uninstalled, then reinstalled....


the result

You put it into the Get Help Networking sub-forum.
grafik

My question was: How/what did you use to install OctoPrint to the KIAUH installation?

I clicked on a button that said "Get Help", unsure how i got to networking, but if it makes you feel better, i am truly sorry. it wont happen again, i promise.

i install OctoPrint via KIAUH 5.1.4 (pre KIAUH 6, OctoPrint is in the installer). there is a picture of it just above

but....

ive installed via OctoPrint per foosel's instructions here
ive installed OctPrint via the RPI imager....but you cant install anything else.
and ive installed via just about any command line install i could find with no solution.

i could use the windows installer but i want it hosted on the rpi.

I recommend to use

i was going to install that just before i posted here but i didnt want to just start installing stuff that might or might not work.

btw, just installed it and it didnt work either. gave me: http://octopi.local/e5plus as the URL and it doesnt go anywhere.

Dont get whats going on. out of all the times ive installed with KIAUH, and however many times ive installed OctoPrint by itself ive never had an issue until this last instance.

OctoPrint_Deploy log:

1) Instance Status    3) Sync Users         5) Change Streamer    7) Udev Menu          9) Quit
2) USB Port Testing   4) Share Uploads      6) Set Global Config  8) Diagnostic Output
Select an option: 8
octoprint_deploy diagnostic information. Please provide ALL output for support help
**************************************
/etc/octoprint_deploy
**************************************
haproxy: true
streamer: ustreamer
octoexec: /home/pi/OctoPrint/bin/octoprint
octopip: /home/pi/OctoPrint/bin/pip
**************************************
/etc/octoprint_instances
**************************************
instance:e5plus port:5000 udev:true
cat: /etc/octoprint_cameras: No such file or directory
**************************************
/etc/octoprint_cameras
**************************************
**************************************
/etc/udev/rules.d/99-octoprint.rules
**************************************
SUBSYSTEM=="tty", ATTRS{serial}=="180023000851313332323730", SYMLINK+="octo_e5plus"
lrwxrwxrwx 1 root root 7 Apr 16 23:54 /dev/octo_e5plus -> ttyACM1
ls: cannot access '/dev/cam*': No such file or directory
**************************************
× e5plus.service - The snappy web interface for your 3D printer
     Loaded: loaded (/etc/systemd/system/e5plus.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Thu 2025-04-17 00:12:53 MST; 3min 22s ago
   Duration: 5.513s
    Process: 7291 ExecStart=/home/pi/OctoPrint/bin/octoprint serve --config=${CONFIGFILE} --basedir=${BASEDIR} --port=${PORT} (code=exited, status=1/FAILURE)
   Main PID: 7291 (code=exited, status=1/FAILURE)
        CPU: 5.699s

Apr 17 00:12:52 e5plus octoprint[7291]:     limiter = Limiter(
Apr 17 00:12:52 e5plus octoprint[7291]:               ^^^^^^^^
Apr 17 00:12:52 e5plus octoprint[7291]:   File "/home/pi/OctoPrint/lib/python3.11/site-packages/flask_limiter/extension.py", line 280, in __init__
Apr 17 00:12:52 e5plus octoprint[7291]:     self.init_app(app)
Apr 17 00:12:52 e5plus octoprint[7291]:   File "/home/pi/OctoPrint/lib/python3.11/site-packages/flask_limiter/extension.py", line 342, in init_app
Apr 17 00:12:52 e5plus octoprint[7291]:     raise ConfigurationError(
Apr 17 00:12:52 e5plus octoprint[7291]: limits.errors.ConfigurationError: Invalid rate limiting strategy fixed-window-elastic-expiry
Apr 17 00:12:53 e5plus systemd[1]: e5plus.service: Main process exited, code=exited, status=1/FAILURE
Apr 17 00:12:53 e5plus systemd[1]: e5plus.service: Failed with result 'exit-code'.
Apr 17 00:12:53 e5plus systemd[1]: e5plus.service: Consumed 5.699s CPU time.
None
{'bitrate': '10000k',
 'cleanTmpAfterDays': 7,
 'defaultWebcam': 'classic',
 'ffmpeg': None,
 'ffmpegCommandline': '{ffmpeg} -framerate {fps} -i "{input}" -vcodec '
                      '{videocodec} -threads {threads} -b:v {bitrate} -f '
                      '{containerformat} -y {filters} "{output}"',
 'ffmpegThreads': 1,
 'ffmpegThumbnailCommandline': '{ffmpeg} -sseof -1 -i "{input}" -update 1 -q:v '
                               '0.7 "{output}"',
 'ffmpegVideoCodec': 'libx264',
 'snapshotWebcam': 'classic',
 'timelapse': {'fps': 25,
               'options': {'capturePostRoll': None,
                           'interval': None,
                           'retractionZHop': None},
               'postRoll': 0,
               'type': 'off'},
 'timelapseEnabled': True,
 'watermark': True,
 'webcamEnabled': True}
**************************************
× haproxy.service - HAProxy Load Balancer
     Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2025-04-16 23:54:17 MST; 22min ago
   Duration: 30min 45.120s
       Docs: man:haproxy(1)
             file:/usr/share/doc/haproxy/configuration.txt.gz
    Process: 4592 ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS (code=exited, status=1/FAILURE)
   Main PID: 4592 (code=exited, status=1/FAILURE)
        CPU: 279ms

Apr 16 23:54:17 e5plus systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 9.
Apr 16 23:54:17 e5plus systemd[1]: Stopped haproxy.service - HAProxy Load Balancer.
Apr 16 23:54:17 e5plus systemd[1]: haproxy.service: Start request repeated too quickly.
Apr 16 23:54:17 e5plus systemd[1]: haproxy.service: Failed with result 'exit-code'.
Apr 16 23:54:17 e5plus systemd[1]: Failed to start haproxy.service - HAProxy Load Balancer.


*************************
octoprint_deploy 1.0.11
*************************

With KIAUH/Klipper the haproxy does not work.

You have to connect to http://octopi.local:5000

yeah, ive tried all ways:
http://octopi.local:5000
http://localhost:5000
http://e5plus.local:5000
http://192.168.10.106:5000

even shut off IIS services and reinstalled

The error I see in the posted log leads me to either a software issue in the base Python or some sort of hardware issue causing the unhandled exception.

I'd like to see the results of two experiments. First, install OctoPi using the Raspberry Pi imager. While the connection to the printer won't work, it will verify that the rest of the hardware can run OctoPrint.

I was reading a KIAUH tutorial and it says you start with:

Raspberry with installed OS such as Octoprint, Mainsail image, FluiddPI image…
Image installation will be described in another article and linked after that.

You haven't mentioned what OS image you used here (so let us know). I suggest that you do not use an image with OctoPrint already installed (i.e. don't start with OctoPi). Install KAIUH without OctoPrint. If everything is working at this point, use octoprint_deploy to install OctoPrint.

If you can use screen -L to capture the output of the octoprint_deploy install it might make it easier to report any errors here.

If it still doesn't start, we will at least have a known path to the error.

exact same issue here, no matter if using kiauhor suggested install scripts

anything you install from the imager formats whatever its writing to, if you install OP from the imager, technically your not installing an RPI Image....its just installing what's needed for the OP to run but have an option to install a desktop if your using a screen.

I just reformatted my CM-4 and installed JUST OctoPi and its working.

login as: pi
pi@192.168.10.106's password:
    ┌──────────────────────────────────────────────────────────────────────┐
    │                 • MobaXterm Personal Edition v25.0 •                 │
    │               (SSH client, X server and network tools)               │
    │                                                                      │
    │ ⮞ SSH session to pi@192.168.10.106                                   │
    │   • Direct SSH      :  ✓                                             │
    │   • SSH compression :  ✓                                             │
    │   • SSH-browser     :  ✓                                             │
    │   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  │
    │                                                                      │
    │ ⮞ For more info, ctrl+click on help or visit our website.            │
    └──────────────────────────────────────────────────────────────────────┘

Linux e5plus 6.1.21-v7l+ #1642 SMP Mon Apr  3 17:22:30 BST 2023 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 17 20:42:17 2025
/usr/bin/xauth:  file /home/pi/.Xauthority does not exist

------------------------------------------------------------------------------
Access OctoPrint from a web browser on your network by navigating to any of:

    http://e5plus.local
    http://192.168.10.106

https is also available, with a self-signed certificate.
------------------------------------------------------------------------------
This image comes without a desktop environment installed because it's not
required for running OctoPrint. If you want a desktop environment you can
install it via

    sudo /home/pi/scripts/install-desktop
------------------------------------------------------------------------------
OctoPrint version : 1.10.3
OctoPi version    : 1.0.0
------------------------------------------------------------------------------

pi@e5plus:~ $

both access points given worked so i guess ill shoot for installing everything else one at a time and see if it keeps working. ill post results or problems as i go.

appreciate the support.

It's an issue with a major release of a dependency of octoprint

temporary fix to downgrade dependency also described in issue,

i knew i wasnt going nucking futs.

that was it.

if you follow this guide after the install and while the virtual environment is still available, run the pip install limits==4.7.2 then add the user. worked for me

1 Like

This fixed my issue thanks!

if you figure out how to get it to start up automaticaly, lemme know. made the octoprint.service file and put in the required lines and activated it but it still wont work.

If you used octoprint_deploy there should be no need for you to make a custom service since it does it for you.
If for some reason it didn't do it look into systemd services or perhaps try starting from scratch.