What is the problem?
When restarting after system shutdown, I'm typically unable to start the server on power up. I say "typically" because occasionally I'm able to start without issue.
What did you already try to solve it?
I have tried manually stopping and starting over ssh without any success (see logs below).
Tried starting in safe mode without success.
I've tried power cycling the pi, and sometimes I'm able to startup successfully (obviously not the ideal solution).
What DOES work is activating the virtual environment:
source ~/oprint/bin/activate and starting OctoPrint manually on the console:
octoprint serve --debug --host 127.0.0.1. Hopefully this offers some hints as to what is not configured properly.
Have you tried running in safe mode and if so did it solve the issue?
No success starting in safe mode.
serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)
None of the logs in .octoprint/logs contain any information since the last shutdown. There is no logging from the attempted startup.
When starting manually after activating the virtual environment I do not see any errors in the debug log.
I have the following output when trying to start manually:
pi@octopi:~ $ sudo service octoprint stop pi@octopi:~ $ sudo service octoprint start Job for octoprint.service failed because the control process exited with error code. See "systemctl status octoprint.service" and "journalctl -xe" for details. pi@octopi:~ $ systemctl status octoprint.service ● octoprint.service Loaded: loaded (/etc/init.d/octoprint; generated) Active: failed (Result: exit-code) since Sat 2020-10-17 19:33:58 EDT; 6s ago Docs: man:systemd-sysv-generator(8) Process: 678 ExecStart=/etc/init.d/octoprint start (code=exited, status=203/EXEC) Oct 17 19:33:58 octopi systemd: Starting octoprint.service... Oct 17 19:33:58 octopi systemd: octoprint.service: Failed to execute command: Exec format error Oct 17 19:33:58 octopi systemd: octoprint.service: Failed at step EXEC spawning /etc/init.d/octoprint: Exec format error Oct 17 19:33:58 octopi systemd: octoprint.service: Control process exited, code=exited, status=203/EXEC Oct 17 19:33:58 octopi systemd: octoprint.service: Failed with result 'exit-code'. Oct 17 19:33:58 octopi systemd: Failed to start octoprint.service.
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
RPI 4B 4GB
Please let me know if any additional info would be helpful.
Thanks all for your help!