"Remember me" checkbox not working, recurring issue with Octoprint

Longtime user (since 2010 ish), first time poster. I think I've reached out on Github before though.

I set up a new Octoprint instance (via OctoPi the image: version 1.10.3) for another printer and the "Remember Me" checkbox was not working on multiple computers. I did some searching and found that every so often there's the same problem from a user perspective, albeit a different problem in the code. I found ~6 different occurrences over the years, but nothing current on the net (forum, reddit, etc) nor Github.

Today I tried using the .local name to connect, instead of just the hostname. It's been a few hours (not much time to tell if it worked), and so far it's worked.

Is there a known issue in this version of Octoprint?

I have the hostname(s) whitelisted in NoScript, and the cookies allowed via Cookie AutoDelete, which works fine with the other 3 printers I have OctoPrint running on, and this has worked for many years. I use Waterfox, and browsers on these computers are setup similarly, and only this one instance of Octoprint has an issue.

I am in the process of setting up 3 new instances, and will be re-imaging 2 more, and would rather not use a version with this issue in it if I could help it.

Hello @allanonmage !

What happened to this:

What is the problem?

WRITE HERE

What did you already try to solve it?

WRITE HERE

Have you tried running in safe mode?

WRITE HERE

Did running in safe mode solve the problem?

WRITE HERE

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

WRITE HERE

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

WRITE HERE

I suspect that the issue you are trying to describe is a local network issue.

The first thing to check is that all of the OctoPi instances have unique hostnames. If there were ever any duplicates, this can confuse the DHCP / DNS server (usually your router) in your network. A reboot of the router and all of the other systems in the network may be necessary to get a clean DNS database and clear any host DNS caches.

Your router (which you should identify when you take care of adding the stuff @Ewald_Ikemann asked for) should have a web interface and from there, you should be able to verify that all the hostnames have been assigned IP addresses. You should then be able to ping those hostnames and IP addresses from any freshly booted desktop system (i.e. the systems with browsers).

If this is not the case, then please provide details of your local area network.

I find that using AutoLoginLocal (with the AutoLoginConfig plugin) a much simpler method. Make sure to read the readme and agree that everyone in your LAN can be trusted.

1 Like

Thanks for taking the time to reply, but I have to say, your random guesses are way off base and borderline disrespectful. I've done tech support for many years, so I can appreciate your attempts at triage. However, given that this is a repeating problem, your immediate pivot to something that's obviously not the problem is bad triage, and bad troubleshooting.

The "Remember Me" checkbox gives a cookie to the browser, and that cookie is what keeps you logged in, aka lets the server remember you. This is how things were built because HTTP )and therefore HTTPS) are connectionless protocols. This is why I explained my setup as far as cookie management, and that older instances of Octoprint are able to successfully negotiate the cookies properly. This also shows that my cookie management is not the issue. I also brought to your attenion that this has been a reocurring problem. In today's post, I found several reports and have linked them below.

To address your question, my "router" is a pfSense box, which is a computer running an enterprise-grade purposebuilt BSD distro that acts as a firewall, and has all the normal "router" functionality. Yes, each instance of Octoprint has it's own hostname. You could have inferred as much by the fact I told you the others all worked fine.

I set up a new instance of Octoprint yesterday, and both of the new ones (OctoPrint 1.10.3 Python 3.9.2 OctoPi* 1.0.0 (build 2024.11.05.092907)) had the same issue again today.

I suspected the issue might be with the local time of the Pi, and it's certainly way out of whack. I'm not sure why NTP is missing, but that explains why it's not working. If you don't know why that's relevent, I suggest that you keep digging, because that's probably the root of my problem.

No Longer 'Remember Me' auto login
Da_Hai_Zhu September 18, 2019, 1:42am 1
https ://community.octoprint.org/t/no-longer-remember-me-auto-login/12098

Octopi.local asking to log in every time even though I mark "Remember Me"
Jan 2019
https ://github.com/guysoft/OctoPi/issues/568

Remember Me not working in 1.3.10
Dec 2018
https ://github.com/OctoPrint/OctoPrint/issues/2971

1.4.0rc* Login sessions not persistent even with "Remember me" selected
Feb 2020
https ://github.com/OctoPrint/OctoPrint/issues/3459

Login Screen - Remember Me doesn't work with Touch UI
https ://community.octoprint.org/t/login-screen-remember-me-doesnt-work-with-touch-ui/8250

[1.40rc3] "Remember me" doesn't stick
Jan 2020
https ://github.com/OctoPrint/OctoPrint/issues/3426

Remember Me fails with http after closing and re-opening browser a couple of times OctoPrint 1.8.3
Sept 2022
https ://github.com/OctoPrint/OctoPrint/issues/4650

Web interface ignores saved password when accessing through a link
Sept 2022
https ://community.octoprint.org/t/web-interface-ignores-saved-password-when-accessing-through-a-link/46741

Why does remember me always forget me?
https ://community.octoprint.org/t/why-does-remember-me-always-forget-me/847

octoprint-systeminfo-20220922140757.zip (276.3 KB)

I meant no disrespect and by your detailed answer, you are obviously knowledgeable. Hopefully this additional information will help someone else help you with your issue.

Respectfully, this isn't the best way to seek help from volunteers who are generously giving their time. @b-morgan's suggestions are valid and constructive, especially considering the limited details in your original post and the lack of adherence to the required format, including missing logs. What he did—offering suggestions to help despite the incomplete information—is far from disrespectful. Criticizing someone who’s trying to assist with free and open-source software, however, is. Following the guidelines and engaging with mutual respect helps ensure productive conversations for everyone.

Good luck in resolving this issue. I believe I may have experienced something similar before, so I genuinely hope you find a resolution. Happy holidays!

1 Like