#18293 closed bug (fixed)

Cannot login to Gerrit

Reported by: bitigchi Owned by: kallisti5
Priority: normal Milestone: Unscheduled
Component: Website/Gerrit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I get a "Forbidden", then a "Server error" after a refresh.

Attachments (2)

forbidden.png (40.9 KB ) - added by bitigchi 21 months ago.
first
server_error.png (40.1 KB ) - added by bitigchi 21 months ago.
second

Download all attachments as: .zip

Change History (11)

comment:1 by kallisti5, 21 months ago

I'm not seeing this here. Could you provide some step-by-step context on how you were logging in?

Also could use:

  • Browser
  • Time / Date of login attempt
  • Screenshots of issue

comment:2 by bitigchi, 21 months ago

  • I've tried with Web+, Epiphany, and Safari on both Haiku and macOS.
  • 2023/03/03, around 11:20 GMT +3
  • Screenshots attached

by bitigchi, 21 months ago

Attachment: forbidden.png added

first

by bitigchi, 21 months ago

Attachment: server_error.png added

second

comment:3 by kallisti5, 21 months ago

yikes. ok. I'm going to walk through some gerrit upgrades today to see if it helps. We have fallen behind a bit in upgrading gerrit.

comment:4 by kallisti5, 21 months ago

I went ahead and upgraded us from Gerrit 3.4 to 3.6. Could you give it another try and let me know if you still run into this?

Last edited 21 months ago by kallisti5 (previous) (diff)

comment:5 by bitigchi, 21 months ago

Still ongoing. Tried with variations of Wi-Fi, Cellular, Adblock-Pihole turned off, and Github mobile authentication disabled.

Please let me know if you need anything specific from me.

comment:6 by kallisti5, 21 months ago

Ok. The suspect cause was a large number of email adjustments over time in github and in gerrit.

I tried to resolve it unsuccessfully by doing the following...

  • Checkout All-Users.git
  • git fetch origin refs/meta/external-ids:external
  • echo -n "username:bitigchi" | sha1sum
  • git rm xx/xxxxxxxxxxxxxxxxxxxxxx
  • git commit -a -m "doing stuff"
  • git push origin

Didn't work :sigh: "com.google.gerrit.server.account.AccountException: Cannot assign external ID "username:bitigchi" to account 1000XXX; external ID already in use."

comment:7 by kallisti5, 21 months ago

Ok. We noticed in IRC that while bitigchi only had a username:bitigchi mapping, the rest of us (tm) had:

$ grep -R "externalId" | cut -d" -f2 | sort | cut -d: -f1 | uniq -c
447 github-oauth
145 mailto
453 username

I also realized I pushed to that external-ids ref wrong. I redid it and am waiting on bitigchi to test/confirm

  • Checkout All-Users.git
  • git fetch origin refs/meta/external-ids:external
  • echo -n "username:bitigchi" | sha1sum
  • git rm xx/xxxxxxxxxxxxxxxxxxxxxx
  • git commit -a -m "doing stuff"
  • git push origin HEAD:refs/meta/external-ids

comment:8 by bitigchi, 21 months ago

Confirmed fixed! Thank you kallisti5 very much for your continuous effort!

comment:9 by kallisti5, 21 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.