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 connect to pgbouncer via jdbc. unknown pkt from client: 90 #1065

Open
vaibhavarora opened this issue May 7, 2024 · 8 comments
Open

Comments

@vaibhavarora
Copy link

vaibhavarora commented May 7, 2024

I can connect to pgbouncer from psql and query database via that

but when connecting from the app via the JDBC, get back errors

"unknown pkt from client: 90/0x5a"

PgBouncer 1.22.1

@JelteF
Copy link
Member

JelteF commented May 8, 2024

Could you share how you are connecting to PgBouncer with JDBC? And which JDBC version are you using? Also did this work before and did it break after some change, or is it the first time you are trying it?

@vaibhavarora
Copy link
Author

@JelteF - i am connecting via jdbc:postgresql://127.0.0.1:6432/dbname

pgbouncer version - PgBouncer 1.22.1

this is the first time i am using pgbouncer. i am able to get the psql client to connect to pgbouncer. thanks for your help

@JelteF
Copy link
Member

JelteF commented May 8, 2024

can you share your pgbouncer config file? And can you share logs of pgbouncer when running in very verbose mode (start it with -vvv or add verbose = 3 to the [pgbouncer] section of the config)

@JelteF
Copy link
Member

JelteF commented May 8, 2024

Also double checking the dbname you use is not pgbouncer right? Because that is the admin database.

@eulerto
Copy link
Member

eulerto commented May 8, 2024

What's the JDBC version? Is it a specific transaction that causes it? If so, could you share it?

@vaibhavarora
Copy link
Author

ini file

[databases]
postgres = host=localhost port=5432 dbname=postgres

[pgbouncer]
listen_port = 6432
listen_addr = localhost
auth_type = trust
auth_file = userlist.txt
logfile = pgbouncer.log
pidfile = pgbouncer.pid
admin_users = xxx
ignore_startup_parameters = extra_float_digits, application_version, application_name

@vaibhavarora
Copy link
Author

this is happening at the first connection from jdbc

@vaibhavarora
Copy link
Author

"Also double checking the dbname you use is not pgbouncer right?"

No, it's not

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

3 participants