• No related posts.

      • No related posts.

        • No related posts.

          • No related posts.

              No related posts.

            Fix Apache – No space left on device: Couldn’t create accept lock

            This issue is related to semaphores. To view how many semaphores you have use:

            root@hal [~]# sysctl -a | egrep kernel.sem\|kernel.msgmni
            kernel.sem = 250 32000 32 128
            kernel.msgmni = 16

            You can change this values by adding them in /etc/sysctl.conf and then using sysctl -p to activate them.
            There is no need to reboot.

            To remove sempahores use either one of these commands:

            for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done
            /scripts/restartsrv_httpd

            or in Perl

            ipcs -s | grep nobody | perl -e ‘while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

            or with xargs

            ipcs -s | grep nobody | awk ‘ { print $2 } ‘ | xargs ipcrm

            or bash style

            for ipsemId in $(ipcs -s | grep nobody | cut -f 2 -d ‘ ‘); do ipcrm $ipsemId;done

            Other errors :

            Cannot create SSLMutex

            add in httpd.conf

            SSLMutex sem

            Related posts:

            1. Script to autorestart httpd server if it fails
            2. Sysctl Linux
            3. Monitor server stats
            4. Perl script to read .dbx files
            This entry was posted in Centos, Debian, Fedora, Linux, Redhat, Ubuntu and tagged , , , , , , , , , , , .

            Leave a Reply