-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document that high db pool size requires increased shared memory for postgres #260
Comments
|
Also it looks like lowering db pool size really did fix the issue. |
It's a bit old but have a look at the docker settings: https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device |
Thanks, that works! I added the following to docker-compose.yml as suggested in the stackoverflow link.
Gonna move this to the docs repo. |
same here lemmy-1 | 2024-12-27T08:28:34.985792Z ERROR lemmy_server::scheduled_tasks: Failed to update community stats: could not resize shared memory segment "/PostgreSQL.2099602730" to 4194304 bytes: No space left on device
lemmy-1 | 2024-12-27T08:28:35.901155Z ERROR lemmy_server::scheduled_tasks: Failed to update community stats: could not resize shared memory segment "/PostgreSQL.2755052454" to 16777216 bytes: No space left on device
lemmy-1 | 2024-12-27T08:28:41.223878Z ERROR lemmy_server::scheduled_tasks: Failed to update community stats: could not resize shared memory segment "/PostgreSQL.4110098354" to 8388608 bytes: No space left on device already had bumped it to |
Setting a high db pool size causes various sql query errors, most notably logins failing entirely. To fix it, shared memory for postgres needs to be increased with the following line in docker-compose.yml. This should be documented, but not sure where it fits.
Original Lemmy issue
Logins on lemmy.ml are consistently failing with known working user/password. Server logs show the following error:
A lemmy restart fixes the problem temporarily. There is plenty of free disk space on the server.
The problem might be related to the fact that I set the db pool size to 95 because of LemmyNet/lemmy#3661. I lowered it to the previous value of 32 now, lets see if the problem happens again.
Version: 0.18.2
The text was updated successfully, but these errors were encountered: