Octoprint shuts down 10-15 sec. after startup

Octoprint is on the newest version, but something keeps killing it at startup.

Please advice

### What is the problem?
Octoprint shuts down 10-15 sec after startup

Apears to Phyton is running at startup, but shutdown after 10-15sec.

### What did you already try to solve it?
(SSH) Updated Linux
(SSH) Restarting Phyton service works, but it shuts down af 10-15sec.

Unable to run Octoprint in safemode ("octoprint: command not found")

### Have you tried running in safe mode
See above

### Did running in safe mode solve the problem?
N/A

Logfile:

pi@OctoPi:~/.octoprint/logs $ cat octoprint.log
2024-06-23 19:36:04,964 - octoprint.startup - INFO - ******************************************************************************
2024-06-23 19:36:04,970 - octoprint.startup - INFO - Starting OctoPrint 1.10.1
2024-06-23 19:36:04,975 - octoprint.startup - INFO - ******************************************************************************
2024-06-23 19:36:06,909 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2024-06-23 19:36:06,936 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2024-06-23 19:36:06,937 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2024-06-23 19:36:06,937 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2024-06-23 19:36:07,357 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gcodeleveling (>=0.1.0,<=0.1.1)
2024-06-23 19:36:07,401 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2024-06-23 19:36:39,439 - octoprint.plugin.core - INFO - Plugin Anonymous Usage Tracking is disabled.
2024-06-23 19:36:42,703 - octoprint.plugin.core - INFO - Plugin Tempsgraph Plugin (0.3.7) is disabled.
2024-06-23 19:42:26,725 - octoprint.startup - INFO - ******************************************************************************
2024-06-23 19:42:26,728 - octoprint.startup - INFO - Starting OctoPrint 1.10.1
2024-06-23 19:42:26,730 - octoprint.startup - INFO - ******************************************************************************
2024-06-23 19:42:27,881 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2024-06-23 19:42:27,915 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2024-06-23 19:42:27,916 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2024-06-23 19:42:27,916 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2024-06-23 19:42:27,957 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gcodeleveling (>=0.1.0,<=0.1.1)
2024-06-23 19:42:27,998 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2024-06-23 19:42:35,261 - octoprint.plugin.core - INFO - Plugin Anonymous Usage Tracking is disabled.
2024-06-23 19:42:35,725 - octoprint.plugin.core - INFO - Plugin Tempsgraph Plugin (0.3.7) is disabled.

What model are you running OctoPrint on?

It's a raspberry 3+

Well, never had a problem with a 3... Have you tried re-burning an SD and re-doing the install. Something got really messed up there.

I'm trying hard to NOT start everything from scratch again, I don't think this is necessary at all, but I do need help to pinpoint where this goes wrong and how to fix it. I don't want to buy a new car just because I got a flat tire.

There's no reason to throw out the pi here. The server process seems to be exiting without logging anything. Something could be corrupt or have wrong permissions or something like that. Try

~/oprint/bin/octoprint server

That will probably log something that might tell you or us what's going wrong.

That's btw also the octoprint command to run to switch to safe mode.

This time I was able to get to run in safemode and I updated to 1.10.2.

Unfortunely behavior is still the same (running in normal mode).

Restarting Octoprint service does start it up and run for about 10-15sec. then terminating.

Log file:

Logfile.log (49.8 KB)

Last log, where I got the spelling correct :slight_smile:

"Segmentation fault" ???

Log file:

~/oprint/bin/octoprint serve
2024-06-25 00:45:33,909 - octoprint.startup - INFO - ******************************************************************************
2024-06-25 00:45:33,911 - octoprint.startup - INFO - Starting OctoPrint 1.10.2
2024-06-25 00:45:33,913 - octoprint.startup - INFO - ******************************************************************************
2024-06-25 00:45:35,011 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online
2024-06-25 00:45:35,042 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2024-06-25 00:45:35,043 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2024-06-25 00:45:35,043 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2024-06-25 00:45:35,469 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gcodeleveling (>=0.1.0,<=0.1.1)
2024-06-25 00:45:35,498 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2024-06-25 00:45:41,657 - octoprint.plugin.core - INFO - Plugin Anonymous Usage Tracking is disabled.
2024-06-25 00:45:41,894 - octoprint.plugin.core - INFO - Plugin Tempsgraph Plugin (0.3.7) is disabled.
Segmentation fault

If it happens only in normal mode, not in safe mode, one of your installed third party plugins is to blame. I recommend uninstalling them one by one (in safe mode) and checking when the segfault stops happening.

The bad apple is "UI Customizer"

And now my UI is total crap, but a least it works now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.