What is the problem?
The problem occured after i updated to octoprint version 0.18.0
When trying to access the gui from browser it displays The OctoPrint server is currently not running message. When i connected with ssh to the pi and run systemctl status octoprint service, i got the following message:
Unit service.service could not be found.
β octoprint.service - The snappy web interface for your 3D printer
Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-03-25 17:18:23 EET; 31s ago
Process: 2017 ExecStart=/home/pi/oprint/bin/octoprint serve --host=${HOST} --port=${PORT} (code=exited, status=1/FAILURE)
Main PID: 2017 (code=exited, status=1/FAILURE)
Mar 25 17:18:23 octopi octoprint[2017]: from octoprint import main
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap>", line 983, in _find_and_load
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap_external>", line 724, in exec_module
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap_external>", line 857, in get_code
Mar 25 17:18:23 octopi octoprint[2017]: File "<frozen importlib._bootstrap_external>", line 525, in _compile_bytecode
Mar 25 17:18:23 octopi octoprint[2017]: ValueError: bad marshal data (unknown type code)
Mar 25 17:18:23 octopi systemd[1]: octoprint.service: Main process exited, code=exited, status=1/FAILURE
Mar 25 17:18:23 octopi systemd[1]: octoprint.service: Failed with result 'exit-code'.
What did you already try to solve it?
Have tried powercycling the pi and restarting the octoprint service though ssh with systemctl
Have you tried running in safe mode?
Yes
Did running in safe mode solve the problem?
No
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
Since the service cannot start i cannot generate a systeminfo bundle
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
pi 3
octoprint version 0.18.0
python 3.7.3
running Raspbian GNU/Linux 10 (buster) on pi