# Rake:rebake crashes with errors: PG::ConnectionBad: PQsocket

**URL:** https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [February 27, 2023, 6:03am 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:** 8

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [February 28, 2023, 7:15am UTC](https://meta.discourse.org/t/rake-rebake-crashes-with-errors-pg-pqsocket/256344/8 "2023-02-28T07:15:35Z")

</div>

I added a 2GB swapfile, and that seems to have fixed it. The rebaking is only 20% done, but there hasn’t been a single error yet, and RAM usage is just under 100%.

Thank you both for your help.

---

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