grignacarbo
New Pleskian
Hello everyone I have a linux server with centos6 plesk11 64-bit, after you made a backup appeared to me a 503 error preventing me to access my plesk control panel, the log showed this error: "No space left on device". Doing a search I found solutions like the one I highlighted in red at the bottom, but without solving the problem, what is wrong? Can you give me some advice?
semget: No space left on device
To see how many semaphores are being used, SSH to your server as root and run the following:
ipcs -s
In order to get Apache started again, we must clear the semaphores. Run this for-loop to flush them:
for whatever in `ipcs -s | awk '{print $2}'`; do ipcrm -s $whatever; done
On older servers that command may not work. In these cases, you may need to do the following:
/sbin/service httpd stop
ipcs -s | grep nobody | gawk '{ print $2 }' | xargs -n 1 ipcrm sem
/sbin/service httpd start
If this is a common problem for you, you may want to increase the semaphore limits on your server. You can do that by adding the following to the /etc/sysctl.conf file:
# Increases the semaphore limits & extend Apache's uptime.
kernel.msgmni = 512
kernel.sem = 250 128000 32 512
semget: No space left on device
To see how many semaphores are being used, SSH to your server as root and run the following:
ipcs -s
In order to get Apache started again, we must clear the semaphores. Run this for-loop to flush them:
for whatever in `ipcs -s | awk '{print $2}'`; do ipcrm -s $whatever; done
On older servers that command may not work. In these cases, you may need to do the following:
/sbin/service httpd stop
ipcs -s | grep nobody | gawk '{ print $2 }' | xargs -n 1 ipcrm sem
/sbin/service httpd start
If this is a common problem for you, you may want to increase the semaphore limits on your server. You can do that by adding the following to the /etc/sysctl.conf file:
# Increases the semaphore limits & extend Apache's uptime.
kernel.msgmni = 512
kernel.sem = 250 128000 32 512