Hello,
I can't connect to https://src.fedoraproject.org with my FAS account. It alwas send me an error message:
Fatal Error (500) A fatal error has occurred, we're sorry
Last URL was: https://src.fedoraproject.org/_flask_fas_openid_handler/?janrain_nonce=2019-04-03T16%3A24%3A54Zgjqq4n&<removed>
Is there some requirement? Contributors from i18n told me there shouldn't be any.
Thanks a lot for your help
Metadata Update from @puiterwijk: - Issue private status set to: True
I marked this as private because it contains personal information, and it contains an OpenID signature. By now, it has likely expired, but for certainty I marked it private.
Edit: unlocked after removing the confidential part of the URL.
Metadata Update from @puiterwijk: - Issue private status set to: False (was: True)
@pingou here's the traceback:
[Wed Apr 03 16:24:58.323280 2019] [:error] [pid 14599] 2019-04-03 16:24:58,319 [ERROR] pagure.flask_app: Error while proc essing request [Wed Apr 03 16:24:58.323311 2019] [:error] [pid 14599] Traceback (most recent call last): [Wed Apr 03 16:24:58.323316 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app [Wed Apr 03 16:24:58.323320 2019] [:error] [pid 14599] response = self.full_dispatch_request() [Wed Apr 03 16:24:58.323323 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request [Wed Apr 03 16:24:58.323326 2019] [:error] [pid 14599] rv = self.handle_user_exception(e) [Wed Apr 03 16:24:58.323330 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception [Wed Apr 03 16:24:58.323333 2019] [:error] [pid 14599] reraise(exc_type, exc_value, tb) [Wed Apr 03 16:24:58.323337 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request [Wed Apr 03 16:24:58.323340 2019] [:error] [pid 14599] rv = self.dispatch_request() [Wed Apr 03 16:24:58.323343 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request [Wed Apr 03 16:24:58.323346 2019] [:error] [pid 14599] return self.view_functions[rule.endpoint](**req.view_args) [Wed Apr 03 16:24:58.323349 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask_fas_openid.py", lin e 121, in flask_fas_openid_handler [Wed Apr 03 16:24:58.323352 2019] [:error] [pid 14599] return self._handle_openid_request() [Wed Apr 03 16:24:58.323355 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/flask_fas_openid.py", lin e 189, in _handle_openid_request [Wed Apr 03 16:24:58.323359 2019] [:error] [pid 14599] return self.postlogin_func(return_url) [Wed Apr 03 16:24:58.323362 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/pagure/ui/fas_login.py", line 70, in set_user [Wed Apr 03 16:24:58.323365 2019] [:error] [pid 14599] keydir=pagure_config.get("GITOLITE_KEYDIR", None), [Wed Apr 03 16:24:58.323396 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/pagure/lib/query.py", lin e 3527, in set_up_user [Wed Apr 03 16:24:58.323401 2019] [:error] [pid 14599] update_user_ssh(session, user, ssh_key, keydir) [Wed Apr 03 16:24:58.323404 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/pagure/lib/query.py", line 3579, in update_user_ssh [Wed Apr 03 16:24:58.323408 2019] [:error] [pid 14599] creator=user, [Wed Apr 03 16:24:58.323411 2019] [:error] [pid 14599] File "/usr/lib/python2.7/site-packages/pagure/lib/query.py", line 1059, in add_sshkey_to_project_or_user [Wed Apr 03 16:24:58.323422 2019] [:error] [pid 14599] raise pagure.exceptions.PagureException("SSH key already exists.") [Wed Apr 03 16:24:58.323455 2019] [:error] [pid 14599] PagureException: SSH key already exists.
@pingou any ideas here?
@jibecfed Is this still happening?
Metadata Update from @kevin: - Issue priority set to: Waiting on Assignee (was: Needs Review)
@kevin this should have been fixed and released upstream in 5.4, so if it happens again, it is likely a new bug :)
Hello, thanks for fixing the error 500. I now have a 404, but I assume it's normal because I'm not a packager? <img alt="Screenshot_20190502-110028.png" src="/fedora-infrastructure/issue/raw/files/e8c8b2bdad9a332bd7b7a4cb7a785f3140595de8ca042b2103daba0bb7617d52-Screenshot_20190502-110028.png" /> <img alt="Screenshot_20190502-110007.png" src="/fedora-infrastructure/issue/raw/files/988df983ce85d616e5f603199913bcc2aaf0f1780ab425f5e7d544ddbd1c41db-Screenshot_20190502-110007.png" />
Well, sorry for double answer, but the 404 error is on every single page. Precenting to access any content.
So your user has not been created because that ssh key is already associated with another user and pagure does not allow this as otherwise there is no way to see who accessed/committed to what. You'll need to remove the ssh key from the other account or use a different one.
Any way to know which account it may be?
Do you have so many? :) For us we would have to go and get the ssh key form FAS then go query the DB directly.
:) As far as I know, I have only one, but years ago I think I had trouble t= o create my account=2E Because doing '=2Efas jibecfed' on IRC gives me a lo= ng list of content, while others have only one Nick and one email=2E I have= no idea why
The irc plugin 'fas' command is a wildcard. If you say 'fas foo' it's like doing 'ls foo' (ie any account that has foo anywhere in it.
If I do that for jibecfed I get:
jibecfedora 'Jean-Baptiste' jb@holcroft.fr - jibecfed 'Jean-Baptiste Holcroft' jean-baptiste@holcroft.fr
So, jibecfedora might be the other one?
I guess the issue here is solved upstream, so closing this upstream.
If you are still getting 404's can you let us know and we can try and track down the user? Or you could make a new ssh key?
Metadata Update from @kevin: - Issue close_status updated to: Upstream - Issue status updated to: Closed (was: Open)
Metadata Update from @jibecfed: - Issue status updated to: Open (was: Closed)
I still have an error 404 with: "SSH key already exists."
Here are the account the zodbot told me could exist: jibec .fas jibec zodbot jibec: jibec 'Holcroft' jb.holcroft@gmail.com - jibecfedora 'Jean-Baptiste' jb@holcroft.fr - jibecfed 'Jean-Baptiste Holcroft' jean-baptiste@holcroft.fr - jibectest 'jean-baptiste test' jibectest@holcroft.fr
(Note: jibec, jibecfedora and jibectest can safely be removed)
I connected to all of them, only my main account jibecfed has an ssh key.
Thanks a lot for your help!
<img alt="Screenshot_2019-07-29_Page_not_found__-_src_fedoraproject_org.png" src="/fedora-infrastructure/issue/raw/files/7c7015fb6a52e657bc86c2349f6d89dbad5c0f8f6a46905b7a3f45c5a4031829-Screenshot_2019-07-29_Page_not_found__-_src_fedoraproject_org.png" />
@pingou I guess we need to remove the ssh key from all of those on the pagure side? Is there a way to do that easily, or needs poking the db?
I'm poking at the DB, I'm not seeing any of jibec* users and I'm looking for the ssh key that is in FAS associated with jibecfed but not finding in the DB either of them :(
Oh, I see, there are two ssh keys stored in FAS but they are identical, so pagure tries to add the first one, then the second and fails at the second since it's a duplicate of the first.
@jibecfed could you change your FAS account so there is only one key or the two keys differ?
Metadata Update from @pingou: - Issue priority set to: Waiting on Reporter (was: Waiting on Assignee)
I just removed my ssh keys and added a new one. No idea on why I had two. Same error when trying to connect.
Did this ever get resolved?
yes, but I don't know why/how as last time I tried it failed. Thank you anyway team :)
Metadata Update from @jibecfed: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.