Skip to content

Postgres dump failes when password is needed #99

@cmlnet

Description

@cmlnet

I receive the following error when trying to back up a Postgres database container that requires a password for pg_dump:

pg_dump: error: connection to server at "adventurelog-db" (172.18.0.2), port 5432 failed: fe_sendauth: no password supplied

The password is provided in an .env file (POSTGRES_PASSWORD). However, it does not seem to be used by stack-back.

When executing pg_dump directly in the database container, it asks for a password, and if provided, the dump succeeds.

As other database containers, e.g., for immich, do not require a password, when using pg_dump within the container, I suspect that the database container used by AdventureLog might have a special configuration. But as far as I understand, that should be no problem, as stack-back should take the password from the env variable and pass it to pg_dump when backing up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions