What is the problem?
Today i got my OctoPrint back running after about 2 years without maintenance. I updated anything, at the end it was running and i started a print job. For no visible reason the printer got stuck mid printing and Octoprint is unavailable.
I see only:
The OctoPrint server is currently not running
If you just started up your Raspberry Pi, please wait a couple of seconds, then try to refresh this page.
If the issue persists, please log into your Raspberry Pi via SSH and check the following:
- Verify that the process is running:
ps -ef | grep -i octoprint | grep -i python
should show a python process:
pi@octopi:~ $ ps -ef | grep -i octoprint | grep -i python
pi 1441 1 6 11:12 ? 00:00:15 /home/pi/oprint/bin/python
/home/pi/oprint/bin/octoprint --host=127.0.0.1 --port=5000
- If it isn't, the question is why. Take a look into
~/.octoprint/logs/octoprint.log
, there might be an error logged in there that helps to determine what's wrong. - You might also want to try if you can restart the server (if no obvious error is visible):
sudo service octoprint restart
.
If all that doesn't help to trouble shoot the issue, you can seek support on the OctoPrint Mailinglist or in the OctoPrint G+ Community. Please provide your OctoPi and OctoPrint versions, your octoprint.log
(in form of a pastebin link) and explain what you already tried and observed as detailed as possible.
What did you already try to solve it?
tryed to restart, checked the logs. Nothing in the logs, not restarting
tryed to install latest updates again:
bash oprint/bin/pip install --upgrade OctoPrint
response:
import: unable to open X server ' @ error/import.c/ImportImageCommand/364. import: unable to open X server
' @ error/import.c/ImportImageCommand/364.
from: can't read /var/mail/pip._internal.cli.main
oprint/bin/pip: line 7: syntax error near unexpected token (' oprint/bin/pip: line 7:
sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0])'
Have you tried running in safe mode?
I added startOnceInSafeMode: true to the server in config.yaml
Did running in safe mode solve the problem?
no
Systeminfo Bundle
Did not find any functioning documentation, how to get this
WRITE HERE
Additional information about your setup
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: Sat Dec 9 17:12:00 2023 from 192.168.123.31
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named octoprint._version
Access OctoPrint from a web browser on your network by navigating to any of:
http://octopi.local
http://192.168.123.46
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