Description of problem: Couldn't log into review.gluster.org with my GitHub account, I got the response of "forbidden". I have tried logging out and logging in GitHub again, but still have the same result. I have been successfully logging into review.gluster.org before, but it was > 2 years ago. Username of my GitHub account is zhanghuan. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hi Zhang, so you might be one of the people affected by the Gerrit migration we did last year when Gerrit enforced a few username-related values. I'll get Gerrit staging up again and we can work out how to get your account working again.
Hi Zhang, Staging is back online. Could you confirm that logging in fails for you on staging: https://gerrit-stage.rht.gluster.org
No, logging in still fails with the result of "Forbidden".
Can you try again now?
I've added an entry to your account that *should* potentially make gerrit-github auth work again. Let's see if it pulls it off.
Nigel, No, still doesn't work. Same output. I thought it might be helpful if I revoke OAuth authorization to gluster.org. After doing that, I cannot even open that link. The output is "Server Error" :-)
Okay, let's see if we can get Gerrit to create you a new account. Can you try to login now. I've removed some evidence of your old account. Hopefully, this means Gerrit will create a new account for you.
Reminder, try this on https://gerrit-stage.rht.gluster.org
Yes, it is https://gerrit-stage.rht.gluster.org that I opened. I do that again just now. the output is "Server Error".
Ah, the Server Error could have been my fault. Can you give it a shot again?
I can log in via link https://gerrit-stage.rht.gluster.org, and I can list issues now. But there are problems while opening code changes, the output is page not found. Also, I tried opening review.gluster.org, but the output is "server error" now. I can open it yesterday.
Excellent. The code changes problem is expected. There's a bug in our ansible configuration that we've not gotten around to fixing. Problems with review.gluster.org is also expected since I haven't made any of the DB changes there that I've done on staging. Now that we know it's working, I'll make the db changes in production as well.
I've made the changes for review.gluster.org database. Could you try to login now?
No, still has the output of "server error"
I see this: Server returned HTTP response code: 401 for URL: https://api.github.com/user Can you try deleting the oauth permissions for review.gluster.org and try again?
There is no oauth authorization for review.gluster.org, I have deleted it yesterday. There is only authorization for gerrit-stage.rht.gluster.org, which should be created this morning. I have tried delete it then open review.gluster.org again, but still get the "server error".
That's strange. So when you click "Sign-in with Github", you're not redirected to Github at all? You just see Server Error?
It is OK now. I can log in via my GitHub account and I can list changes and code changes of them. The problem should be related to cookie or cache of my browser. After I deleted them, I could open the page and then login is OK. Sorry for the mess, and thank you for your help.
Hurray! Thank you for your patience as I fixed things up.