Log entries - pgbouncer.log
2019-09-13
06:51:47.180 UTC [5752] LOG
C-0x1243020:
testdb/testuser@[::1]:52408
login attempt: db=testdb
user=testuser tls=no
2019-09-13
06:51:47.180 UTC [5752] NOISE
safe_send(12, 9) = 9
2019-09-13
06:51:47.180 UTC [5752] NOISE
resync(12): done=86, parse=86,
recv=86
2019-09-13
06:51:47.180 UTC [5752] NOISE
resync(12): done=0, parse=0,
recv=0
2019-09-13
06:51:47.180 UTC [5752] NOISE
safe_recv(12, 4096) = 14
2019-09-13
06:51:47.180 UTC [5752] NOISE
C-0x1243020:
testdb/testuser@[::1]:52408
read pkt='p' len=14
2019-09-13
06:51:47.180 UTC [5752] DEBUG
C-0x1243020:
testdb/testuser@[::1]:52408
pam_auth_begin():
pam_first_taken_slot=1,
pam_first_free_slot=1
2019-09-13
06:51:47.180 UTC [5752] DEBUG
pam_auth_worker(): processing
slot 1
2019-09-13
06:51:47.180 UTC [5752]
WARNING pam_authenticate()
failed: Authentication failure
2019-09-13
06:51:47.181 UTC [5752] DEBUG
pam_auth_worker():
authorization completed,
status=3
2019-09-13
06:51:47.386 UTC [5752] LOG
C-0x1243020:
testdb/testuser@[::1]:52408
closing because: auth failed
(age=0s)
2019-09-13
06:51:47.386 UTC [5752]
WARNING C-0x1243020:
testdb/testuser@[::1]:52408
pooler error: auth failed
Able to login as testuser
Password:
Last
login: Fri Sep 13 06:21:12 UTC
2019 on pts/1
uid=1001(testuser)
gid=1001(testuser)
groups=1001(testuser)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
The user was created as
follows
uid=1001(testuser)
gid=1001(testuser)
groups=1001(testuser)
Here is the pgbouncer.ini
config
[databases]
testdb
= host=dbhost port=3306
dbname=db1
[users]
[pgbouncer]
logfile
=
/var/log/pgbouncer/pgbouncer.log
pidfile
=
/var/run/pgbouncer/pgbouncer.pid
listen_addr
= *
listen_port
= 5432
auth_type
= pam
Am I missing something? Any
permissions?