How to save a crashed octoprint without reformatting?

I have a non-booting octoprint and I would like to know if there is any way to fix it. I can access the filesystem and there are files there with mod dates that go back to when I must have set it up.

The most recent is:

Dec  1 12:08 config.txt

Is there anything I can look into here or am I just going to have to blow this way and start over? I guess I'll skip all the achievements this time, I have earned a bunch of them more than once, as this is not the first time this has happened.

Too little information provided to offer suggestions. My advice, start over with a new image and when you have it setup to your liking, create and maintain an OctoPrint backup. That way, should you encounter a similar problem in the future, you simply reimage and restore, and get on with the show. Also easy to make and keep a full image backup of your SD card on another device which could be used to reimage your SD card to a working state.

Your current problem could be anything from a failing SD card to an incorrect configuration change. Without any more info, it is impossible for us to tell.

1 Like

As RiverRatDC suggested, maintaining backups will make it quicker to reimage and get running again. I would suggest my Backup Scheduler plugin in conjunction with one of the cloud based backups, GoogleDrive Backup, OneDrive Backup, webdav backup, or OctoPrint-Dropbox-Timelapse (it works for backups too, not just timelapse).

2 Likes

I'd also warn against just pulling power from the pi. That is the most common method of corrupting the pi's operating system. Make sure you properly shutdown the system prior to pulling power.

2 Likes

There's not much more information to provide. It's dead. But the suggested backup scheduler might be in the mix. It probably lost its mind when I power cycled the machine it drives. Maybe taking off that power strip would be good as well. The SD is readable and I have no idea what recent change could have happened. Looking for recently modified files tells me nothing. I guess I'll re-image it.

Looks like the π itself is trashed. Imaging new SD cards doesn't work and the same cards in a model 4B seem to work. Hard to draw any other conclusion. This is less than ideal because the Model 4 I have no longer has a working camera connection, making it less useful as an Octoprint server.

EDIT: Looks like it's not trashed but it sill doesn't load properly. I can SSH into it, so that's something. But the web UI won't load… Socket connection failed. no idea what to do about that. The logs reveal nothing.

2026-03-10 18:31:55,807 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.0.5

and

XMLHttpRequest cannot load http://192.168.0.21/sockjs/info?t=1773192708986 due to access control checks.

in the browser console.

EDIT2: no idea what any of that was about. A couple of reboots in safe mode and now it's back (?).

I did install the backup scheduler (and have had to use a backup to get through this) but I don't see where it stores the backup. There is an option to check a mount point point but I don't see where that gets set.

It keeps doing this "Socket connection failed." thing, no idea why. Stopping/starting at the command line is one solution. Not convenient. Next time I will use the recovery page (which seems unescapable…none of the links work to get back to the UI) to get some logs.

Are you reusing the SD card? Once they fail, they usually have permanent errors. Reload everything on a NEW good quality sd card, not the cheapest one you can find.