R
Railway5mo ago
Kurdiez

Just received PostgresDB shared memory problem "No space left on device"

The actual error message was
could not resize shared memory segment "/PostgreSQL.502371020" to 4194304 bytes: No space left on device
could not resize shared memory segment "/PostgreSQL.502371020" to 4194304 bytes: No space left on device
Looking at the charts, it did hit the max 3 GB at one point. Is there a way to increase the size?
No description
Solution:
you are on the Pro plan, so you can indeed increase the shm size. for context the default shim size is 64MB. set a service variable RAILWAY_SHM_SIZE_BYTES to 134217728 to increase the shared memory to 128MB...
Jump to solution
10 Replies
Percy
Percy5mo ago
Project ID: 3747f720-8c9c-4d81-9b13-1e420ceabd6c
Kurdiez
Kurdiez5mo ago
3747f720-8c9c-4d81-9b13-1e420ceabd6c
ThallesComH
ThallesComH5mo ago
You can increase it by upgrading to the Pro plan
Duchess
Duchess5mo ago
New reply sent from Help Station thread:
Yes and my company is already paying for the Pro plan. So how do I upgrade it?
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Hmm this error seems to be related to PostgresDB Service's docker container shm_size limit issue. I wonder what the default value of that is as I didn't add any environment variable to that service. As the error message suggests, we went over like 4MB.
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Hmm this error seems to be related to PostgresDB Service's docker container shm_size limit issue. I wonder what the default value of that is as I didn't add any environment variable to that service. As the error message suggests, we went over like 4MB. damn i need some sleep, i read storage in your screenshot for some reason. unfortunately Railway doesnt support docker cli flags so changing the shm_size is not supported on Railway.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Solution
Brody
Brody5mo ago
you are on the Pro plan, so you can indeed increase the shm size. for context the default shim size is 64MB. set a service variable RAILWAY_SHM_SIZE_BYTES to 134217728 to increase the shared memory to 128MB
Brody
Brody5mo ago
@Kurdiez @ThallesComH for visibility
ThallesComH
ThallesComH5mo ago
oh didnt know Railway included that variable
Brody
Brody5mo ago
neither did i, until they told me but even though you both are Pro, its best to be conservative with the value
ThallesComH
ThallesComH5mo ago
Brody
Brody5mo ago
we talked about this, and we think its best to keep it on the down low for now you are welcome to dm me if you want to know why
Want results from more Discord servers?
Add your server