Backup fails on localhost with docker

I’m having issues with creating a backup from the admin section, running discourse from the docker container on localhost.

The error I’m getting is:
pg_dump: error: connection to database "discourse development" failed: FATAL: Peer authentication failed for user "postgres".

I checked the pg_hba.conf file, and have all options set to trust.

Would be great if I could get some assistance on how to get this to work.

I tried on Ubuntu as well as on MacOSX. Everything else from the discourse instance is working fine on both (creating Posts, API…) except for the backup functionality.

That could be a regression. It should be using user discourse, I’d think.

Where could I change the user being used by discourse?

How did you install?

Following this tutorial:

As I said, everything works fine, except for the backup.

1 Like