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
How to manage Linux password expiry with the chage command
Viewed 12300 times since Tue, Sep 11, 2018
Linux Add a Swap File – HowTo
Viewed 11104 times since Fri, Jun 8, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 5038 times since Mon, Oct 29, 2018
Expand or grow a file system on a Linux VMWare VM without downtime
Viewed 12602 times since Fri, Jul 27, 2018
RHCS6: ’fencing’ basics
Viewed 3283 times since Sun, Jun 3, 2018
Fedora 32: Simple Local File-Sharing with Samba CIFS Linux
Viewed 10112 times since Sun, Dec 6, 2020
RHEL: Back-up/Replicate a partition table
Viewed 4604 times since Sun, May 27, 2018
Install Security Patches or Updates Automatically on CentOS and RHEL
Viewed 2847 times since Fri, Oct 26, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 9062 times since Sat, Jun 2, 2018
Enabling automatic updates in Centos 7 and RHEL 7
Viewed 3484 times since Wed, Oct 17, 2018