I need a bit of help - my Octopi stopped working last night - I thought it would just require a reboot but it seems to be a bit more of a problem than I thought.
I get a page saying "The OctoPrint server is currently not running" and giving some instructions on what to do.
I followed the instructions - the ps -ef command returns nothing at all
I checked the Octoprint log for errors - there is one, but it was from prior to the current problem, and no new entries are being written to the log when I reboot/restart
I ran the restart server command but nothing appears to happen
Are there any other logs I can check ?
I have uploaded the octoprint log in case it gives any clues to those more experienced than I am
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
from: can't read /var/mail/pip._internal
/home/pi/oprint/bin/pip: line 10: syntax error near unexpected token `('
/home/pi/oprint/bin/pip: line 10: ` sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'
Does it look like pip is broken or (more likely) am I doing something wrong ?
Hi @OutsourcedGuru
Thanks for the reply but that doesn't work either β¦
pi@octopi:~ $ ~/oprint/bin/pip uninstall Octoprint_ABL_Expert
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
from: can't read /var/mail/pip._internal
/home/pi/oprint/bin/pip: line 10: syntax error near unexpected token `('
/home/pi/oprint/bin/pip: line 10: ` sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'
Do you think I need to rebuild this Octopi all over again ?
Oh, I thought that was from your earlier attempt to run pip freeze but I see that it shows this for any pip-related command, it would seem.
The X server is the GUI-based desktop subsystem in Linux-based computers. Normally here in the OctoPi-imaged Raspberry Pi, it would be completely absent. (There's an option to add it in your ~/scripts folder, however.)
I would be curious to know what led to this predicament but the easiest fix is to grab another microSD and start over from scratch by installing the OctoPi image.
If you wanted to play with it some more, you could try to manually startup in Safe Mode and then try again to remove that plugin (using the version I gave you). If that fails, then something within your Raspbian thinks that you should have the Desktop version (versus the Lite version). If it works then you should bring this to the attention of that plugin author on his/her repository.
@OutsourcedGuru - Yeah I think it's probably easier to go for a new install - It will clean things up anyway.
I have no idea what caused this - I did a clean shutdown on Sunday and then turned the machine on again on Sunday evening with no joy at all
Thanks for all the help though
Ben
Once you get that going again and all configured, shut the printer, pull the microSD and use something like ApplePi-Baker to burn a ZIP image of the card. This has saved me many times.
Once 1.4.0 comes out, you'll have the ability to backup/restore things more easily.
@OutsourcedGuru Thanks to you and others for your help. I rebuilt Octopi last night and backed up an image. I'll take another image when I have installed all the plugins I want.
I'm sure with time that I could have sorted the old version out, but time is at a premium at the moment so a rebuild was the sensible option.