Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/metrics endpoint crashes Bodhi on F41 #5825

Open
mattiaverga opened this issue Dec 10, 2024 · 0 comments
Open

/metrics endpoint crashes Bodhi on F41 #5825

mattiaverga opened this issue Dec 10, 2024 · 0 comments

Comments

@mattiaverga
Copy link
Contributor

This only happens on F41, F40 seems fine (for now):

2024-12-10 09:04:31,028 ERROR [gunicorn.error][ThreadPoolExecutor-0_0] Error handling request /metrics
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/gunicorn/workers/gthread.py", line 282, in handle
keepalive = self.handle_request(req, conn)
File "/usr/lib/python3.13/site-packages/gunicorn/workers/gthread.py", line 334, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python3.13/site-packages/paste/deploy/config.py", line 306, in __call__
return self.app(environ, start_response)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyramid/router.py", line 270, in __call__
response = self.execution_policy(environ, self)
File "/usr/lib/python3.13/site-packages/pyramid/router.py", line 276, in default_execution_policy
return router.invoke_request(request)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyramid/router.py", line 255, in invoke_request
self.finish_request(request)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyramid/router.py", line 259, in finish_request
request._process_finished_callbacks()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/pyramid/request.py", line 140, in _process_finished_callbacks
callback(self)
~~~~~~~~^^^^^^
File "/usr/lib/python3.13/site-packages/bodhi/server/webapp.py", line 44, in _complete_database_session
_rollback_or_commit(request)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/bodhi/server/webapp.py", line 84, in _rollback_or_commit
server.Session().commit()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib64/python3.13/site-packages/sqlalchemy/orm/session.py", line 2028, in commit
trans.commit(_to_root=True)
~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "<string>", line 2, in commit
File "/usr/lib64/python3.13/site-packages/sqlalchemy/orm/state_changes.py", line 103, in _go
self._raise_for_prerequisite_state(fn.__name__, current_state)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.13/site-packages/sqlalchemy/orm/session.py", line 996, in _raise_for_prerequisite_state
raise sa_exc.InvalidRequestError(
...<2 lines>...
)
sqlalchemy.exc.InvalidRequestError: This session is in 'committed' state; no further SQL can be emitted within this transaction.
2024-12-10 09:04:31,028 ERROR [gunicorn.error][ThreadPoolExecutor-0_0] Error handling request /metrics

@AdamSaleh you originally wrote the prometheus endpoint, any idea on what's going on? I see prometheus-client has been upgraded to 0.21 on F41, while it's still 0.20 on F40. Do you think it's the culprit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant