Page 1 of 1
Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Posted: Tue May 01, 2018 8:59 am
by Ashlin
Hi,
I am getting below error on the apache error log. Please help
Apache error: No space left on device: mod_rewrite: Parent could not create RewriteLock
semget: [emerg] (28) No space left on device OR Apache: No space left on device: Couldn’t create accept lock
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Posted: Fri May 11, 2018 12:21 pm
by stark
Hi,
You will have to kill the active semaphore processes in order to start Apache service successfully.
To list the PIDs of the active semaphore processes
ipcs -s
If seen more than one process you use this script to delete all semaphores
ipcs -s | grep nobody | awk '{print $2}' | xargs -n 1 ipcrm sem
Try to restart apache now.
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Posted: Fri May 11, 2018 12:22 pm
by Brandon N
Hi,
The above tweak will fix the issue temporarily as it will re-occur when Semaphores get full.
To fix this permanently, you can increase the limit of Semaphore in the server.
Add the following lines in the file /etc/sysctl.conf
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
Do you need professional help with this? Please open a support ticket to support@nixtree.com we'll fix it for you!
Brandon N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree
Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file
Posted: Wed May 16, 2018 7:02 pm
by Ashlin
Hi Brandon,
That's Works!
Many thanks