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

pq: unknown authentication response #20

Open
xQuai opened this issue Jun 8, 2022 · 6 comments
Open

pq: unknown authentication response #20

xQuai opened this issue Jun 8, 2022 · 6 comments

Comments

@xQuai
Copy link

xQuai commented Jun 8, 2022

Hello everyone,

I wanted to use the go program in combination with prometheus-sql to monitor a postgres database.
However, I get an error when trying to connect to the database.
following error:
503 Service Unavailable: problem connecting to database: pq: unknown authentication response: 10

Is it possible that the problem occurs due to a postgres go library that is too old in combination with a database version that is too new?

If so, could you please update the Postgres library in the program?

The Postgres go library used in this program is from 2018.

Regards,
xQuai

@bruth
Copy link
Contributor

bruth commented Jun 8, 2022

Hi @xQuai, it certainly is possible. We are going to do a round of development shortly to get everything updated.

@xQuai
Copy link
Author

xQuai commented Jun 9, 2022

Thank you. 👍

@brokenintuition
Copy link
Collaborator

Hi @xQuai,

We've pushed a new version with the updated postgres library (and a few other updates) to dbhi/sql-agent:latest. Please try out the new version. Thanks!

@xQuai
Copy link
Author

xQuai commented Jun 30, 2022

Hi @brokenintuition,

its working for me now. Thank you. 🙂

@VladoDemcak
Copy link

looks like the issue is still there for postgres 14. however the latest dbhi/sql-agent:latest version from Jun 2022 works well with postgres 13.7.

@brokenintuition

@brokenintuition
Copy link
Collaborator

@VladoDemcak my apologies, I never actually committed the lib/pq version update in the last change and tested with a database that was old enough that I didn't catch it. I pushed a new version to dbhi/sql-agent:latest that appears to work with postgres 14

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

4 participants