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
SSL HowTo: Decode CSR
Viewed 6089 times since Mon, Feb 18, 2019
Top 20 OpenSSH Server Best Security Practices - good article
Viewed 12251 times since Mon, Oct 1, 2018
How to clear swap memory in Linux
Viewed 3186 times since Mon, Nov 23, 2020
How to encrypt a partition using LUKS?
Viewed 2769 times since Fri, Jul 13, 2018
Easily Monitor CPU Utilization in Linux Terminal With Stress Terminal UI
Viewed 5602 times since Thu, Apr 18, 2019
INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6
Viewed 13818 times since Fri, Nov 30, 2018
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 4418 times since Thu, Apr 18, 2019
How To Ping Specific Port Number
Viewed 6691 times since Mon, Jun 1, 2020
A Simple Guide to Oracle Cluster File System (OCFS2) using iSCSI on Oracle Cloud Infrastructure
Viewed 10461 times since Sat, Jun 2, 2018
How to maximise SSD performance with Linux
Viewed 10085 times since Fri, May 15, 2020