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

At the moment it says:

               total        used        free      shared  buff/cache   available
Mem:           3.8Gi       2.1Gi       160Mi       1.0Gi       1.6Gi       488Mi
Swap:             0B          0B          0B

I don’t see oom, but the word memory appears in a few places about reserving and freeing memory.

The server was created with 4GB RAM, so Discourse didn’t automatically create a swapfile. Do you think it’s worth adding?