How can I reinstall my Octoprint without an internet connection

What is the problem?

Raspberry Pi works and connects to the network but Octoprint service not running (I'm getting the ' The OctoPrint server is currently not running' page). I would like to reinstall the Octoprint image with this great tutorial but I do not have internet connection on the Pi (restricted through firewall). I could only push files through ssh onto the pi.

What did you already try to solve it?

cannot restart octoprint service, nothing happening or changing. octoprints commands not doing anything ( sudo service octoprint restart)
sudo ps -ef | grep -i octoprint | grep -i python
-> shows nothing

now my idea is to resolve through reinstallation

Have you tried running in safe mode?

I changed the cofig.yaml but octoprint didnt start

Did running in safe mode solve the problem?

nope

Systeminfo Bundle

sorry cant pull it, pi says:

octoprint systeminfo
bash: octoprint: command not found

heres the logs

2023-02-15 18:49:09,301 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 12 mixin implementations, 19 hook handlers
2023-02-15 18:49:09,330 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 8, in
sys.exit(main())
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/init.py", line 936, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 330, in serve_command
disable_color=no_color,
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 145, in run_server
from octoprint.server import CannotStartServerException, Server
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/init.py", line 46, in
from octoprint.systemcommands import system_command_manager
ImportError: cannot import name 'system_command_manager' from 'octoprint.systemcommands' (unknown location)

Additional information about your setup

OctoPrint version : 1.8.2
OctoPi version : 0.18.0
Prusa Mk3s+
Pi 4 connected through barracuda Firewall

I can't really tell you how to do it offline but I've got an alternative option for you:
run an access point (hotspot) on your phone and let it use your mobile internet.

Most of the time this isn't a permanent solution anyway. OctoPrint doesn't just stop working like that by itself - most of the time there are other issues like a corrupted file system or a failing sd card.

I would try to restore OctoPrint via the hotspot, and if you were successful, I would back everything up and start over with a fresh install (I personally would use a new SD card).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.