Tell HN: Unable to login to HN from Firefox, a Lovecraftian tale
andregarzia.com
andregarzia.com
When I do that, I see behaviour like you are describing it: when I e.g. tried upvoting jedberg's comment with cookies disallowed, it actually worked. I was redirected to the login page and back to the discussion without staying logged in. After undoing the permission change, logging in and having a look at the exact comment, I saw that the vote actually went through. Posting a new comment showed the same behaviour.
You can find that permission on the "page info" dialog (shortcut Ctrl+I if that isn't localized?)?
Edit: the error message on the console would be different though. The described procedure leads to the message "Setting cookie ... has been denied because of a permission set by the user" (translated from German, so the actual message will be different). It looks like I was only describing the behaviour when cookies are unavailable and not the actual reason.
The screenshot is probably out of date but here's how to use it https://everything.curl.dev/usingcurl/copyas#from-firefox
If you do this in chrome you'll get a long curl command that ends like this:
--data-raw 'goto=item%3Fid%3D30166448&acct=ghiculescu&pw=(YOUR PW)' \
--compressed
I found it most helpful to change that to --data-raw 'goto=item%3Fid%3D30166448&acct=ghiculescu&pw=(YOUR PW)' -v
So you can also see the response headers etc.Start doing a plugin bisection and see if you can find the offending plugin.
I did try two different versions of Firefox on the same machine though (with different profiles).
Probably worth checksumming the whole Firefox install against what it should be (or the poor man's checksum: uninstall it and reinstall it). If that fixes it, it might have been a one-time thing, or it might be the start of the end of that machine.
Ages ago, I had a machine administered by a company with a very robust binary check-summer. All of a sudden, one of the system libraries started failing to run... The check-summer would block any executable that tried to run with a hash that didn't match one on the allow-list. Took it to company IT, and they checked a couple things and said "No, this is a legit block... Your checksum doesn't match what the binary should be. Have you been having any problems with this machine?"
Wasn't until somebody asked that I realized the once-in-a-blue-moon kernel panics the machine would give were probably worth mentioning to someone. They concluded I probably had a disk controller with just enough badness to fail very, very occasionally... Usually the failure would manifest as a kernel panic, but I must have gotten unlucky and had it fail during a write operation without tripping a validation error. Replaced the machine; no further problems.
With strict ETP turned on, extensions like Cookie AutoDelete stopped working due to some new access restriction[0], and cookies that had been set while strict ETP was turned on—even when it was turned off again—became zombies that could only be deleted through about:preferences.
I’ve had to manually set `privacy.purge_trackers.enabled` to `false` to get it to stop automatically erasing (first-party!) login cookies several times per week. I do not understand what kind of heuristic is being used to decide something is a tracker, but it seems to be not good at it.
For a while, Firefox would also randomly prompt me for a master password after running for about 24 hours. This seemed to stop when I turned off strict ETP, but other people reporting the same problem said they didn’t even have strict ETP turned on to begin with, so who knows? It’s all just so random.
I still have situations today where I navigate (via the address bar or the browser history) to HN, or GitHub, or some other site where I have a valid login cookie, and Firefox just decides that it’s not going to send the cookie this time. If I reload the page, it decides now it will send the cookie. If I perform the exact same navigation that broke a moment ago, now it works fine.
I have no idea what changed, and everything that happens—just like the OP’s problem—is so weird and vague that I cannot even submit a decent bug report. At least this bug is consistent; most of my problems seem to be data races. I hope they are able to figure out what is going wrong and, ideally, that it leads to some fixes for whatever broken logic is causing so much trouble with credential management in general.
[0] https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/issue...
I expect an update post when you finally get to the bottom of this!
UPDATE: I can log in using private browsing... holy shit, what is going on!
https://support.mozilla.org/en-US/kb/containers
Containers do not share cookies, local storage, caches, or other persisted data.
https://support.mozilla.org/en-US/kb/profile-manager-create-...
Anyway, my last attempt will be to create a new profile. I was avoiding that because it feels like quitting. It feels like destroying everything and replanting the soil hoping for a better outcome even though you have no idea what happened before.
The successful login with private browsing makes me hopeful though. Maybe I'll find a solution :-)
My FF profile was corrupted once and a lot of sites stopped working mysteriously. Clearing cache didn’t help either. It has to be a new profile.
Has happened to me for Chrome and Firefox. Creating a new profile works. Or if you're feeling paranoid, remove any trace of it from the system and do a fresh install.
If problem persists, new profile.
If problem continues, reinstall FF.
The only plugins in the Plugins section of about:addons should be the OpenH264 plugin and the Widevine plugin (only if DRM is enabled). Both can be disabled there.
I just switch to chrome when it happens, and it seems to resolve itself at random. Last time it happened was a few months ago.
One thing I’d try would be to make a new profile - you can launch Firefox with the -P option to bring up the profile manager. I know it doesn’t work with either of your existing Stable or Nightly profiles, but maybe a clean profile will do the trick?
You were probably rate limited. I've gotten the "We're having trouble serving your request" thing many times when I accidentally open 20+ HN bookmarks.
The book ends with Ged accepting that the devil/shadow is part of him, I’m hoping this story has a happier ending!
I too am hoping this has a happier ending. All wisdom here points towards making a new profile, which is something I'm avoiding, but if there is no other choice I might try it later.
May be you can try:
1. Check the clock on your machine. Make sure it's not running at a time beyond 2038.
2. Check the disk space on your machine, especially where the profile is stored. Out of space error can be causing other errors.
3. Check the file system read/write permission on the profile folder.
4. Make sure there's not another instance of Firefox running. In fact, reboot just to be sure.
5. Try older versions of Firefox, with the portable versions. There's a command line argument to use an existing profile or a new one. Try those. This would narrow the problem down to whether it's caused by your machine or versions of Firefox. https://mozilla-firefox-portable.en.uptodown.com/windows/ver...
Good luck.
If the server is fine, the only cause I can imagine is that the request after login does not report the cookie as set. Wireshark should help confirm whether the request is ok.
Then run strace on Firefox and check that the request written out by FF is ok. If that's fine too, then Mac OS must be fudging the request somewhere between when FF writes to the socket and when it actually leaves your machine?
I'm inclined to believe there is something funky going on with both my profiles. The odds of that happening is very low, but I don't see other options.
Considering it worked with new profile it is very likely that is what happened here. I am not sure if the profile migration is still there though.
So I'd guess this is a user-specific issue?
I'd also be curious to diff the HTTP requests sent from each browser, particularly FF vs FF forks.
" Then I deleted all the ai_user cookies because if I’m having a bad time, so should Google Analytics. "
And preventing you from using a real ad blocker.
And running background processes on your computer that tell Google what other programs you have installed, the visible SSIDs from your WiFi chipset, etc.
Not even the slightest problem.