zabbix linux How to solve apache error No space left on device: Cannot create SSLMutex

Diagnosis

When Apache does not start and shows the following result while prompting it to start, check the error_log file,

Starting httpd : [Failed]

The following error in error_log file may be causing the issue ( /var/log/httpd/error_log )

[error] (28)No space left on device: Cannot create SSLMutex

Cause

These errors mean that there are no available IPC (inter-process communication) resources in the system, such as semaphores or shared memory segments.

To check the allocated semaphores use the command ipcs -us

Solution

Option 1:

Run this command as root,

# ipcs | grep apache

If you see a list of semaphores, apache has not cleaned itself. Use the following command to clean it,

# ipcs -s | grep apache | awk ’ { print $2 } ’ | xargs -n 1 ipcrm -s

Option 2:

Increase the limits in /etc/sysctl.conf

kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024

Load the new sysctl settings from  /etc/sysctl.conf

# sysctl -p
Updated on March 1, 2017
https://www.agix.com.au/automatically-block-intruders-with-pfsense/
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Red Hat Enterprise Linux - Allow Root Login From a Specific IP Address Only
Viewed 2897 times since Wed, Oct 3, 2018
RHEL: Remove existing SAN LUNs
Viewed 14190 times since Sat, Jun 2, 2018
How to manage Linux password expiry with the chage command
Viewed 11305 times since Tue, Sep 11, 2018
awk printf
Viewed 15356 times since Wed, Aug 19, 2020
linux unix aix banner /etc/issue
Viewed 2071 times since Fri, Aug 3, 2018
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 11099 times since Wed, Jul 25, 2018
RHEL: Retrieve and generate a unique SCSI identifier
Viewed 3202 times since Sat, Jun 2, 2018
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 3394 times since Thu, Apr 18, 2019
Prosty skaner portów TCP w bash
Viewed 3396 times since Thu, May 24, 2018
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 15987 times since Tue, Aug 6, 2019