# Il processo di ricostruzione di Discourse si blocca all'inizializzazione di PostgreSQL con avviso di autenticazione "trust"

**URL:** https://meta.discourse.org/t/discourse-rebuild-process-hangs-at-postgresql-initialization-with-trust-authentication-warning/354578
**Category:** Support
**Tags:** install
**Created:** [26 Febbraio 2025, 9:16am UTC](https://meta.discourse.org/t/discourse-rebuild-process-hangs-at-postgresql-initialization-with-trust-authentication-warning/354578 "2025-02-26T09:16:35Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mwaniki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mwaniki/32/313097_2.png) [@mwaniki](https://meta.discourse.org/u/mwaniki)
#### Post date: [26 Febbraio 2025, 2:48pm UTC](https://meta.discourse.org/t/discourse-rebuild-process-hangs-at-postgresql-initialization-with-trust-authentication-warning/354578/3 "2025-02-26T14:48:10Z")

</div>

> [@pfaffman](#):
>
> > [@J\_J1](#):
> >
> > `cat: /shared/postgres_data/PG_VERSION: No such file or directory`
> 
> Questo è un problema.
> 
> Se hai un backup recente, farei un’installazione pulita e lo ripristinerei.

Concordo.

Dopo aver ripristinato il tuo vecchio database da un backup recente, e la ricostruzione sembra ancora bloccarsi dopo `initdb`, presumo che tu stia ospitando l’installazione di Discourse in [Cina continentale](https://meta.discourse.org/t/selfhost-discourse-in-mainland-china-under-the-gfw/347038). In tal caso, vedi questo argomento.

> [@PostgreSQL update fails from China](https://meta.discourse.org/t/postgresql-update-fails-from-china/350869/19):
>
> I got the upgrade PostgreSQL15 Templates need to be used in sequence postgres.13.template.yml postgres.15.template.yml postgres.template.yml postgres.13.template.yml、postgres.15.template.yml file China network acceleration configuration run: - exec: cat /etc/os-release && psql --version - exec: | if [-f /etc/apt/sources.list]; then sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list else echo "deb http://mirrors.ustc.edu.cn/debian bo…

---

_[View the full topic](https://meta.discourse.org/t/discourse-rebuild-process-hangs-at-postgresql-initialization-with-trust-authentication-warning/354578)._
