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

Can't reconnect until invalid transaction is rolled back. #205

Open
msavdert opened this issue Nov 27, 2024 · 6 comments
Open

Can't reconnect until invalid transaction is rolled back. #205

msavdert opened this issue Nov 27, 2024 · 6 comments
Labels

Comments

@msavdert
Copy link

Describe the bug

Thanks for writing this great exporter.

I can get metrics from oracle database with query-exprter without any problem.

However, when the database is restarted, I encounter the following errors. Despite the database being up and running, these errors continue to occur during each scrape, and the metric collection process stops. Problem fix after restarting the query-exporter.

Nov 27 01:40:13 ora02 query-exporter[58203]: 2024-11-27 01:40:13,620 - ERROR - query-exporter - query "oracledb_fra_stats" on database "orclgg" failed: Can't reconnect until invalid transaction is rolled back. Please rollback() fully before proceeding (Background on this error at: https://sqlalche.me/e/20/8s2b)

@msavdert msavdert added the bug label Nov 27, 2024
@msavdert msavdert changed the title Can't reconnect until invalid transaction is rolled back, when database is restarted. Can't reconnect until invalid transaction is rolled back. Nov 27, 2024
@albertodonato
Copy link
Owner

Could you please provide which version are you using, and possibly log with debug enabled? (passing -L DEBUG)

@RubenNL
Copy link

RubenNL commented Dec 12, 2024

I have the same issue with a Postgres database.

query-exporter version 2.11.1 (latest on docker currently)

I included my config and the log with debugging enabled. I manually restarted the database here to trigger the error.

query-exporter-log.txt

query-exporter-config.yaml.txt

@RubenNL
Copy link

RubenNL commented Dec 16, 2024

I'm now getting this error with debugging disabled. Might not be related:

ERROR - query-exporter - error from database "ov": AssertionError

@RubenNL
Copy link

RubenNL commented Dec 30, 2024

I just tested this with the latest 3.0.0 release, and got a new log. This log is exported from Kubernetes with Helm, and got timestamps. It also got some pretty error messages, but I have no idea how to make that more readable in a log file...

So this is the raw one:

app.log

@albertodonato
Copy link
Owner

Do you happen to have autocommit: false set on your database configuration?

@RubenNL
Copy link

RubenNL commented Jan 9, 2025

No, should I try that option?

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

3 participants