Failed backup #396

Closed
opened 2026-04-05 16:16:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @boxofammo on 11/20/2025

Hi,
I'm trying to make backup of database on external host.
But I have got an erorr:

PostgreSQL authentication failed. Check username and password. stderr: pg_dump: error: connection to server at "192.168.100.100", port 5432 failed: FATAL: password authentication failed for user "backup" password retrieved from file "/tmp/pgpass2092618990/.pgpass"

When I read docker logs, I see that app is trying to make backup with --no-password

pgBin=/usr/lib/postgresql/16/bin/pg_dump args="[-Fc --no-password -h 192.168.100.100 -p 5432 -U backup -d database --verbose --compress=zstd:5]"

while password is defined in backup config.

I have also tried to run backup manually inside container but without --no-password and it works.

Any solution?

Regards

*Originally created by @boxofammo on 11/20/2025* Hi, I'm trying to make backup of database on external host. But I have got an erorr: `PostgreSQL authentication failed. Check username and password. stderr: pg_dump: error: connection to server at "192.168.100.100", port 5432 failed: FATAL: password authentication failed for user "backup" password retrieved from file "/tmp/pgpass2092618990/.pgpass"` When I read docker logs, I see that app is trying to make backup with `--no-password` `pgBin=/usr/lib/postgresql/16/bin/pg_dump args="[-Fc --no-password -h 192.168.100.100 -p 5432 -U backup -d database --verbose --compress=zstd:5]"` while password is defined in backup config. I have also tried to run backup manually inside container but without `--no-password` and it works. Any solution? Regards
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#396