#7685 Error 500 when trying to connect to src.fp.o
Opened 4 months ago by jibecfed. Modified 23 days ago


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:

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

4 months ago

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)

4 months ago

@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)

4 months ago

@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?

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?

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)

3 months ago

Metadata Update from @jibecfed:
- Issue status updated to: Open (was: Closed)

23 days ago

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!


Login to comment on this ticket.