Octoprint server would stop working after long idle

What is the problem?

Octoprint server would stop working after long idle. Like if I let the printer idle for days of non-use. I have to manually telnet into the octoprint raspberry pi unit to issue the server restart sudo command everytime.

What did you already try to solve it?

Don't know how to solve this problem, I think it's something with the coding timing out over long idle times

Have you tried running in safe mode?

No, didn't try safe mode.

Did running in safe mode solve the problem?

WRITE HERE

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20210803204537.zip (50.6 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE

Hello,

my print host is idling for days in between prints as well and the server doesn't stop.What you describe is not the usual behavior of octoprint.service

Might be a plugin (running in safe mode wd help exclude that), might be interference of some other installed program.

If there is any way at all to tell from remote what's happening for you that would start at the logs.

You chose to ignore the part about uploading a Systeminfo Bundle but I'd recommend to click on the links in your own post or this one, find out that it is quite easy to create and upload the systeminfo and thus open up the chance that you get better answers than just saying "tough luck".
Cause right now that's all that can be said.

1 Like

I have uploaded the systeminfo bundle in my original post

As @planetar advised: Please run the safe mode.

There may be a problem with TSD:

2021-08-03 20:43:29,267 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 0.127608 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:29,330 - octoprint.server.util.sockjs - INFO - User admin logged in on the socket from client ::ffff:192.168.1.181
2021-08-03 20:43:29,701 - sentry.errors - ERROR - Sentry responded with an API error: RateLimited(None)
2021-08-03 20:43:29,705 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:31,729 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:31,730 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 0.525554 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:36,887 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:36,888 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 0.855012 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:41,718 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:41,719 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 1.977910 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:44,723 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:44,725 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 3.944495 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:49,127 - octoprint.server.preemptive_cache - INFO - ... done in 21.58s
2021-08-03 20:43:53,062 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:43:53,063 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 11.685238 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:43:53,145 - octoprint.server.util.flask - INFO - Passively logging in user admin from ::ffff:192.168.1.181
2021-08-03 20:43:53,146 - octoprint.access.users - INFO - Logged in user: admin
2021-08-03 20:43:53,226 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.1.181
2021-08-03 20:43:55,064 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.1.181
2021-08-03 20:43:55,148 - octoprint.server.util.flask - INFO - Passively logging in user admin from ::ffff:192.168.1.181
2021-08-03 20:43:55,149 - octoprint.access.users - INFO - Logged in user: admin
2021-08-03 20:43:57,216 - octoprint.server.util.sockjs - INFO - User admin logged in on the socket from client ::ffff:192.168.1.181
2021-08-03 20:44:06,566 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 20.535979 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:44:29,675 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 25.558158 seconds: Janus quit! This should not happen. Exit code: 1
2021-08-03 20:44:30,068 - sentry.errors - ERROR - Sentry responded with an API error: RateLimited(None)
2021-08-03 20:44:30,069 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:44:57,310 - sentry.errors.uncaught - ERROR - [u'Janus quit! This should not happen. Exit code: 1']
2021-08-03 20:44:57,311 - octoprint.plugins.thespaghettidetective - ERROR - Backing off 85.969762 seconds: Janus quit! This should not happen. Exit code: 1
1 Like

Looking at octoprint.log and it covers the time between 2021-08-03 20:42:35,566 and 2021-08-03 20:44:57,311. Two and a half minutes. Did it capture that sort of service shutdown event you described?

I suspect it did not. There is a chance of better evidence if we have a log capturing that event. So, let it run as it is until the next shutdown event and retrieve the octoprint.log first thing after that could help.

Clearly thespaghettidetective is having a problem and while it is not evident this is the problem which causes your issue it sounds plausible. Even that short log time span caught 2 episodes of Janus quit! -errors. At that rate even a miniscule memory leak may inflict the service after some days. So, how do things work out when that plugin is disabled?

It may take some days to research that.

1 Like