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

failed: (psycopg2.InterfaceError) cursor already closed #193

Open
nirmaljani opened this issue Jun 21, 2024 · 2 comments
Open

failed: (psycopg2.InterfaceError) cursor already closed #193

nirmaljani opened this issue Jun 21, 2024 · 2 comments
Labels

Comments

@nirmaljani
Copy link

Describe the bug
we updated the query exporter config.yaml file about changes in the metrics section for some of the queries and names & labels were changed in the databases section.
Post that, we are facing below errors:

failed: (psycopg2.InterfaceError) cursor already closed

2024-06-21T12:49:07.278Z | (Background on this error at: http://sqlalche.me/e/13/rvf5)
2024-06-21T12:49:07.377Z | 2024-06-21 12:49:07,377 - ERROR - query-exporter - query "qe_pg_nonidle_connections" on database "db01_pg2" failed: (psycopg2.InterfaceError) cursor already closed
2024-06-21T12:49:07.377Z | (Background on this error at: http://sqlalche.me/e/13/rvf5)
2024-06-21T12:49:07.378Z | 2024-06-21 12:49:07,378 - ERROR - query-exporter - query "qe_pg_dbsize" on database "db01_pg2" failed: (psycopg2.InterfaceError) cursor already closed
2024-06-21T12:49:07.378Z | (Background on this error at: http://sqlalche.me/e/13/rvf5)
2024-06-21T12:49:07.378Z | 2024-06-21 12:49:07,378 - ERROR - query-exporter - query "qe_pg_wals" on database "db02_pg2" failed: (psycopg2.InterfaceError) cursor already closed
2024-06-21T12:49:07.378Z | (Background on this error at: http://sqlalche.me/e/13/rvf5)
2024-06-21T12:49:07.379Z | 2024-06-21 12:49:07,378 - ERROR - query-exporter - query "qe_pg_sqlstats" on database "db02_pg2" failed: (psycopg2.InterfaceError) cursor already closed
2024-06-21T12:49:07.379Z | (Background on this error at: http://sqlalche.me/e/13/rvf5)
2024-06-21T12:49:09.677Z | 2024-06-21 12:49:09,676 - ERROR - query-exporter - query "qe_pg_sqlstats" on database "db01_pg2" failed: AlreadyQuit
2024-06-21T12:49:09.677Z | 2024-06-21 12:49:09,677 - ERROR - query-exporter - query "qe_pg_topq_by_calls" on database "db03_pg2" failed: AlreadyQuit

@nirmaljani nirmaljani added the bug label Jun 21, 2024
@nirmaljani
Copy link
Author

Anyone please suggest about these errors.

@albertodonato
Copy link
Owner

Could you please provide the (sanitized) config you're using?

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

No branches or pull requests

2 participants