What is the problem?
OctoPrint does not start.
Would love to have it working and back to printing without starting from scratch (new installation and all changes gone etc.)
What did you already try to solve it?
- Tried to restart Raspberry multiple times
- Checked if the OctoPrint is running
ps -ef | grep -i octoprint | grep -i python
, it was not. - Checked the log
~/.octoprint/logs/octoprint.log
and the last lines are from 2022-08-08 - Tried the steps provided in: OctoPrint do not start anymore - #4 by foosel
- When trying to start it I get the following error:
pi@piocto:~ $ source ~/oprint/bin/activate
(oprint) pi@piocto:~ $ octoprint serve --debug --host 127.0.0.1
2022-08-15 11:41:57,470 - octoprint.startup - CRITICAL - Could not initialize settings manager: source code string cannot contain null bytes
2022-08-15 11:41:57,471 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Could not initialize settings manager: source code string cannot contain null bytes
There was a fatal error starting up OctoPrint.
- And same in safe mode:
(oprint) pi@piocto:~ $ octoprint serve --safe --debug --host 127.0.0.1
2022-08-15 12:22:27,942 - octoprint.startup - CRITICAL - Could not initialize settings manager: source code string cannot contain null bytes
2022-08-15 12:22:27,943 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Could not initialize settings manager: source code string cannot contain null bytes
There was a fatal error starting up OctoPrint.
Have you tried running in safe mode?
Yes, same error when tried to start
Did running in safe mode solve the problem?
No
Systeminfo Bundle
Not able to start OctoPrint so don't able to provide this info from the UI.
And from the command line:
(oprint) pi@piocto:~ $ octoprint systeminfo
Could not initialize settings manager: source code string cannot contain null bytes
There was a fatal error initializing the platform.
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OctoPrint version : 1.8.1
OctoPi version : 0.18.0
Operating system: OctoPi
Printer: Ender 3 Pro
Firmware: Marlin 2.0.9.3
Browser(s): Firefox 103.0.2
Space of the Raspberry (I have 32GB card):
(oprint) pi@piocto:~ $ df -H
Filesystem Size Used Avail Use% Mounted on
/dev/root 31G 2.4G 27G 9% /
devtmpfs 423M 0 423M 0% /dev
tmpfs 458M 0 458M 0% /dev/shm
tmpfs 458M 18M 440M 4% /run
tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs 458M 0 458M 0% /sys/fs/cgroup
/dev/mmcblk0p1 265M 51M 214M 20% /boot
tmpfs 92M 0 92M 0% /run/user/1000
Last time working: 2022-08-08 when there was a power cut. Was not printing anything at that time.