# Discourse随机不运行或重建

**URL:** https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231
**Category:** Self-hosting
**Tags:** postgres
**Created:** [2025 年3 月 20 日 21:28 UTC](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231 "2025-03-20T21:28:11Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### 作者： ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### 发布日期： [2025 年3 月 20 日 22:17 UTC](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231/4 "2025-03-20T22:17:41Z")

</div>

这可能会提供一些线索：

> [@Cannot rebuild app,](https://meta.discourse.org/t/cannot-rebuild-app/350172/3?u=canapin):
>
> socat[33] E connect(, AF=1 “/shared/postgres\_run/.s.PGSQL.5432”, 36): Connection refused Based on that error, it appears the database did not shut down cleanly when you stopped the app container. This typically happens when you have some application(s) still connecting to the database. I [posted a reply](https://meta.discourse.org/t/postgresql-15-update/349515/69) in the other topic.

---

_[View the full topic](https://meta.discourse.org/t/discourse-randomly-does-not-run-or-rebuild/358231)._
