#13060 500 when merging https://pagure.io/fedora-infra/ansible/pull-request/3052
Closed: Fixed with Explanation by zlopez. Opened by zlopez.

Describe what you would like us to do:


I got 500 as well when trying to merge https://pagure.io/fedora-infra/ansible/pull-request/3052

Looking at the pagure error logs I found this

[Mon Jan 19 12:48:45.671689 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804] [2026-01-19 12:48:45,671] ERROR in flask_app: Error while processing request
[Mon Jan 19 12:48:45.671691 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804] Traceback (most recent call last):
[Mon Jan 19 12:48:45.671693 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
[Mon Jan 19 12:48:45.671695 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     response = self.full_dispatch_request()
[Mon Jan 19 12:48:45.671696 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
[Mon Jan 19 12:48:45.671700 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     rv = self.handle_user_exception(e)
[Mon Jan 19 12:48:45.671702 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
[Mon Jan 19 12:48:45.671704 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     reraise(exc_type, exc_value, tb)
[Mon Jan 19 12:48:45.671706 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
[Mon Jan 19 12:48:45.671707 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     raise value
[Mon Jan 19 12:48:45.671709 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
[Mon Jan 19 12:48:45.671711 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     rv = self.dispatch_request()
[Mon Jan 19 12:48:45.671713 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
[Mon Jan 19 12:48:45.671714 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Jan 19 12:48:45.671716 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/pagure/internal/__init__.py", line 716, in task_info
[Mon Jan 19 12:48:45.671718 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     if task.ready():
[Mon Jan 19 12:48:45.671720 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/result.py", line 313, in ready
[Mon Jan 19 12:48:45.671722 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self.state in self.backend.READY_STATES
[Mon Jan 19 12:48:45.671723 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/result.py", line 473, in state
[Mon Jan 19 12:48:45.671725 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self._get_task_meta()['status']
[Mon Jan 19 12:48:45.671727 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/result.py", line 412, in _get_task_meta
[Mon Jan 19 12:48:45.671729 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self._maybe_set_cache(self.backend.get_task_meta(self.id))
[Mon Jan 19 12:48:45.671730 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/backends/base.py", line 386, in get_task_meta
[Mon Jan 19 12:48:45.671732 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     meta = self._get_task_meta_for(task_id)
[Mon Jan 19 12:48:45.671734 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/backends/base.py", line 730, in _get_task_meta_for
[Mon Jan 19 12:48:45.671736 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self.decode_result(meta)
[Mon Jan 19 12:48:45.671738 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/backends/base.py", line 305, in decode_result
[Mon Jan 19 12:48:45.671739 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     return self.meta_from_decoded(self.decode(payload))
[Mon Jan 19 12:48:45.671741 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/backends/base.py", line 301, in meta_from_decoded
[Mon Jan 19 12:48:45.671743 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     meta['result'] = self.exception_to_python(meta['result'])
[Mon Jan 19 12:48:45.671746 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]   File "/usr/lib/python3.6/site-packages/celery/backends/base.py", line 281, in exception_to_python
[Mon Jan 19 12:48:45.671748 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804]     exc = cls(*exc_msg if isinstance(exc_msg, tuple) else exc_msg)
[Mon Jan 19 12:48:45.671751 2026] [wsgi:error] [pid 1189139:tid 140529258628864] [remote ::1:46804] TypeError: __init__() missing 2 required positional arguments: 'params' and 'orig'

The error started happening at 2026-01-19 06:56:47,586 UTC and it's happening over and over again.

When do you need this to be done by? (YYYY/MM/DD)


I'm not sure if it's affecting only this PR or it's wide spread issue. In first case it's not that urgent, in second it's urgent.


Found another PR that fails during rebase https://pagure.io/fedora-infra/ansible/pull-request/3051

So the error is related to problems with creating exception.

The actual error that is a problem is ['(psycopg2.OperationalError) FATAL: password authentication failed for user "pagure"\\n']

Metadata Update from @zlopez:
- Issue assigned to zlopez

There was a password change that happened on Friday, but something is still a miss. I ran the pagure playbook and it changed the password to the new one in pagure.cfg.

So the user really couldn't authenticate when using the new password.

psql -d pagure -U pagure -W
Password: 
psql: error: FATAL:  Peer authentication failed for user "pagure"

I will try to manually change the password for user in postgresql.

I tried to manually change the password using ALTER, but the authentication error remains.

It seems that something was caching the credentials for git operations and they were failing. After restarting pagure01 it started working again. Closing this as fixed.

And thanking @gwmngilfen for help.

Metadata Update from @zlopez:
- Issue close_status updated to: Fixed with Explanation
- Issue status updated to: Closed (was: Open)

Metadata