Trying to recover/backup my octoprint install

What is the problem?

After installing a plugin, octoprint fails and exits, cannot even start safe mode

nick@pi4-4-octopi:~ sudo systemctl status octoprint ● 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 Fri 2024-02-09 12:19:13 EST; 3s ago Process: 844 ExecStart=/home/nick/oprint/bin/octoprint serve --host={HOST} --port=${PORT} (code=exited, status=1/FAILURE)
Main PID: 844 (code=exited, status=1/FAILURE)
CPU: 2.589s

Feb 09 12:19:13 pi4-4-octopi octoprint[844]: File "/home/nick/oprint/lib/python3.9/site-packages/octoprint/server/init.py", line 32, in
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: from flask_babel import Babel, gettext, ngettext # noqa: F401
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: File "/home/nick/oprint/lib/python3.9/site-packages/flask_babel/init.py", line 21, in
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: from pytz import timezone, UTC
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: File "/home/nick/oprint/lib/python3.9/site-packages/pytz/init.py", line 19, in
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: from pytz.lazy import LazyDict, LazyList, LazySet # noqa
Feb 09 12:19:13 pi4-4-octopi octoprint[844]: ModuleNotFoundError: No module named 'pytz.lazy'
Feb 09 12:19:13 pi4-4-octopi systemd[1]: octoprint.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 12:19:13 pi4-4-octopi systemd[1]: octoprint.service: Failed with result 'exit-code'.
Feb 09 12:19:13 pi4-4-octopi systemd[1]: octoprint.service: Consumed 2.589s CPU time.

What did you already try to solve it?

I tried restarting the pi, the service, and safe mode. I also tried reinstalling pytz

Have you tried running in safe mode?

yes

Did running in safe mode solve the problem?

no

Systeminfo Bundle

how can I download this from the CLI? the octoprint server will not start the gui

Additional information about your setup


OctoPrint version : 1.9.3
OctoPi version : 1.0.0

I can access the pi via ssh and do whatever is needed. Ideally I'd like to trigger a backup and export it via WinSCP. I don't care about reimaging, I just want to keep my sliced files and folder structure.

I can't seem to generate systeminfo from CLI - any ideas?

nick@pi4-4-octopi:~ $ ~/oprint/bin/octoprint systeminfo .
nick@pi4-4-octopi:~ $

the bundle should be in a zip file in /home/nick

I don't see it. I never get the output saying it completed

nick@pi4-4-octopi:~ $ ls -la
total 52
drwxr-xr-x  8 nick nick 4096 Feb  9 12:45 .
drwxr-xr-x  3 root root 4096 Sep 21  2022 ..
-rw-------  1 nick nick 1038 Feb  9 12:45 .bash_history
-rw-r--r--  1 nick nick  220 Sep 21  2022 .bash_logout
-rw-r--r--  1 nick nick 3557 Sep 21  2022 .bashrc
drwxr-xr-x  3 nick nick 4096 Oct 26  2022 .cache
drwxr-xr-x  5 nick nick 4096 Oct 26  2022 .local
lrwxrwxrwx  1 nick nick   18 Oct 26  2022 mjpg-streamer -> /opt/mjpg-streamer
drwxr-xr-x 14 nick nick 4096 Feb  9 11:06 .octoprint
drwxr-xr-x  2 nick nick 4096 Oct 23  2019 OctoPrint
drwxr-xr-x  4 nick nick 4096 Oct 26  2022 oprint
-rw-r--r--  1 nick nick  807 Sep 21  2022 .profile
drwxr-xr-x  2 nick nick 4096 Sep 21  2022 scripts
-rw-------  1 nick nick   58 Feb  9 12:45 .Xauthority
nick@pi4-4-octopi:~ $