# Backup failed with postgresql connection error

**URL:** https://meta.discourse.org/t/backup-failed-with-postgresql-connection-error/67145
**Category:** Development
**Created:** [July 31, 2017, 6:29am UTC](https://meta.discourse.org/t/backup-failed-with-postgresql-connection-error/67145 "2017-07-31T06:29:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xiangzhuyuan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiangzhuyuan/32/120826_2.png) [@xiangzhuyuan](https://meta.discourse.org/u/xiangzhuyuan)
#### Post date: [July 31, 2017, 6:29am UTC](https://meta.discourse.org/t/backup-failed-with-postgresql-connection-error/67145/1 "2017-07-31T06:29:24Z")

</div>

I have tried the latest discourse with official Docker image few days, and I found the regular backup operation would be failed every time, the error log contains:

```plaintext
FATAL: Peer authentication failed for user "postgres"

```

When I typed this issue, I got few similar topic in the right, after I checked them I think this is still a new unfixed problem. And the solution comes from [here](https://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge), as current postgresql installed built in docker image, need change the configuration of postgresql like:

```plaintext
#TYPE DATABASE USER ADDRESS METHOD
local all all trust

```

So with this configuration the backup function would be work. I didn’t checked a lot in current issue list, if there is fix about it, please ignore this.
