Closed hlovdal closed 2 years ago
If it is running through init.d, then this is way too old to be supported for bug reports. For years OctoPi has run through systemd, so there is no point debugging the situation.
The init.d script was deleted with #659
Closing since init.d script is removed from later releases.
For reference, the underlying issue was solved by running pip install -U octoprint
(based on this topic) and then reinstalling the missing plugins (comparing /home/pi/oprint/lib/python3.9/site-packages
to /home/pi/oprint/lib/python3.7/site-packages
). And with that octoprint worked like it should.
However I have trouble getting a camera module working, so I might bite the bullet and reinstall octopi from scratch for that reason.
What were you doing?
Updating an older octopi installation which resulted in some failure, however this bug report is only focused on the behaviour of systemctl.
What did you expect to happen?
sudo systemctl status octoprint.service
should report a failed state.What happened instead?
Notice that systemctl is happy and reports no problems even though octoprint died immediately. If I manually try to start octoprint it exits with a non-zero return code:
The underlying issue here is old packages installed under /home/pi/oprint/lib/python3.7/site-packages while python has been updated to 3.9. However that is only indirectly related to this bug. Regardless of why octoprint fails to start, if it does then systemctl start should also fail.
Did the same happen when running OctoPrint in safe mode?
Not applicable since it fails before any mode comes into play.
Version of OctoPi
Raspbian GNU/Linux 11 (bullseye) - updated from 10/buster. Octoprint 1.7.3 I am not sure what created
/etc/init.d/octoprint
initially,dpkg -S /etc/init.d/octoprint
fails to associate it with any installed program.Printer model & used firmware incl. version
Not applicable.
Screenshot(s)/video(s) showing the problem:
Not applicable.
I have read the FAQ.