OctoPrint keeps forgetting my login credentials

What is the problem?

I use my printer once every few months.
For the last year and a half, every time I go to start a print job, I try to log into Octoprint, but for some reason, it refuses my login credentials. I have kept a list of every username and password combo I have used in a note so I'm certain the credentials are correct.

Each time, I have had to re-image the microSD card with OctoPi, and then I am able to log in, re-setup the printer, get all my plugins working right, ...and then I use the printer once, and then leave it for few months, rinse and repeat, can't log in.

It has happened too many times and today I am finally annoyed enough to post about it here.

What did you already try to solve it?

Reinstalling OctoPi. Repeatedly.

Have you tried running in safe mode?

Can't do that if I can't log in.

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog... no bundle, no support, unless the reason you couldn't retrieve the bundle is your network issues

Can't retrieve that because I can't log in.

Additional information about your setup

Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ... as much data as possible

OctoPrint running on a Raspberry Pi 4, trying to log in from a Windows 10 laptop (Firefox and Chrome), an Apple iMac (Safari and Chrome), and even the Home Assistant add-on. The OctoPrint Raspberry Pi is connected to my network via Ethernet cable. I have a Ubiquiti UniFi router and that shows the Pi as being online.

Importantly, I am able to access the login screen just fine; it simply refuses my login credentials, which I know are correct.

A look at related topics

This post, unanswered.
This other post suggests disabled noscript if I have it installed. I don't. That seems to be a spam filtering service. So even if I did have that installed, it shouldn't prevent login, and even if it somehow did, then it wouldn't be effecting my Home Assistant add-on as well. This must be an issue with OctoPrint itself.

Thank you in advance for any suggestions that get me back into my OctoPrint instance, preferably without having to reinstall OctoPrint yet again...

I am very sorry I can not help with your problem. However, once you are running again, make a damn backup! During the 'First Run Wizard', you can use the backup to restore all your plugins and all the settings. You go right back to the day you made the backup.
If you have SSH access to OctoPi, you can manually generate a SystemInfo bundle and start OctoPrint in safe mode (that's why those those are links).

1 Like

Windows just did a big security update. If your login credentials aren't there and you have to login manually every time, it's not octoprint. You might have noticed other sites that have the same issue. If you can't login try and clear your cache and cookies on your browser.

Thanks for your reply.

I already have backups; I still need to re-image the system to begin with, though.

I was able to use the recovery page http://octopi.local/recovery
That did not load correctly the first three times, but on the fourth time, I was able to log in, but it loaded with all the UI elements disabled, and text buttons all squashed up on the left side of the browser window. None of the links were clickable.
However, I had a bookmark to the settings page, and was able to use that to load and then apply updates to the system.
Updating the entire system (OctoPrint plus add-ons), and then restarting the entire Octoprint instance, solved the immediate problem of not being able to log in.

Now that I am able to access the system, I will generate the SystemInfo bundle and will post that here. I will do so later this week as things are a bit hectic here.

This isn't a Windows issue, as explained in my post.