this post was submitted on 28 Jun 2024
10 points (91.7% liked)
Lemmy.nz Support
354 readers
19 users here now
You can ask questions about the Lemmy.nz instance here.
This community also serves as our Meta community, with posts about updates to the Lemmy software on Lemmy.nz or other things relevant to Lemmy.nz users and not relevant to other instances.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It was actually to do with docker rather than postgres itself. Docker limits shared memory to 64MB, and postgres died when it couldn't allocate more. I saw this in the test server as well, but I didn't want to assume so I waited to see it in production before applying the fix.
The error was something about failed to allocate disk space, the solution was to add shm_size: 1GB to the docker compose section for lemmy's postgres.