# PostgreSQL 13 update from PostgreSQL 10 fails

**URL:** https://meta.discourse.org/t/postgresql-13-update-from-postgresql-10-fails/192865
**Category:** Self-hosting
**Created:** [June 6, 2021, 5:03pm UTC](https://meta.discourse.org/t/postgresql-13-update-from-postgresql-10-fails/192865 "2021-06-06T17:03:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![CamilleRoux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/camilleroux/32/119575_2.png) [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)
#### Post date: [June 6, 2021, 5:28pm UTC](https://meta.discourse.org/t/postgresql-13-update-from-postgresql-10-fails/192865/2 "2021-06-06T17:28:00Z")

</div>

I saw that it’s require to stop de data container before:

> [@PostgreSQL 13 update](https://meta.discourse.org/t/postgresql-13-update/172563/1):
>
> If you are running a setup with a dedicated data container based in the sample supplied in our discourse\_docker repository, you want to be sure you are shutting down PostgreSQL in a safe and clean way.
> 
> Nowadays, we have background jobs running queries spanning several minutes, so shutting down the web container will help the data container be shutdown safely.
> 
> ```plaintext
> ./launcher stop web_only
> ./launcher stop data
> ./launcher rebuild data
> ./launcher rebuild data
> ./launcher rebuild web_only
> 
> ```

Here is what I get I run `tail -f shared/data/log/var-log/postgres/current` after stopping the 2 containers:

```plaintext
2021-06-06 16:38:37.411 UTC [113] HINT: The server must be started by the user that owns the data directory.
2021-06-06 16:38:38.424 GMT [114] LOG: skipping missing configuration file "/shared/postgres_data/postgresql.auto.conf"
2021-06-06 16:38:38.424 UTC [114] FATAL: data directory "/shared/postgres_data" has wrong ownership
2021-06-06 16:38:38.424 UTC [114] HINT: The server must be started by the user that owns the data directory.
2021-06-06 16:38:39.439 GMT [115] LOG: skipping missing configuration file "/shared/postgres_data/postgresql.auto.conf"
2021-06-06 16:38:39.439 UTC [115] FATAL: data directory "/shared/postgres_data" has wrong ownership
2021-06-06 16:38:39.439 UTC [115] HINT: The server must be started by the user that owns the data directory.
2021-06-06 16:38:40.461 GMT [116] LOG: skipping missing configuration file "/shared/postgres_data/postgresql.auto.conf"
2021-06-06 16:38:40.461 UTC [116] FATAL: data directory "/shared/postgres_data" has wrong ownership
2021-06-06 16:38:40.461 UTC [116] HINT: The server must be started by the user that owns the data directory.

```

It’s probably the source of the problem, how can I fix that?

---

_[View the full topic](https://meta.discourse.org/t/postgresql-13-update-from-postgresql-10-fails/192865)._
