Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
Ashlin
Posts: 0
Joined: Fri Sep 16, 2016 10:10 am

Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file

Post 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


stark
Posts: 0
Joined: Fri Sep 16, 2016 10:00 am

Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file

Post 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.


Brandon N
Posts: 0
Joined: Thu Apr 05, 2018 11:19 pm

Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file

Post 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


Ashlin
Posts: 0
Joined: Fri Sep 16, 2016 10:10 am

Re: Error: No space left on device: mod_rewrite: Parent could not create RewriteLock file

Post by Ashlin »

Hi Brandon,

That's Works!
Many thanks


If you are looking for assistance in server management, please get in touch with our support.
Post Reply