# Rake:rebake 出现错误导致崩溃：PG::ConnectionBad: PQsocket

**URL:** <https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2023年二月27日 06:03 UTC](https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344 "2023-02-27T06:03:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2023年二月27日 14:40 UTC](https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344/2 "2023-02-27T14:40:31Z")

</div>

首先，请参阅 [更改 Discourse 的域名或重命名](https://meta.discourse.org/t/change-the-domain-name-or-rename-your-discourse/16098)（另一种解决方案是备份然后使用新主机名恢复）。

我猜是你的数据库连接数耗尽了，但这并不是我预期的错误。

这是标准安装还是你正在使用其他 PG 服务器？

---

_[View the full topic](https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344)._
