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
Linux How to reset a root password on Fedora
Viewed 1764 times since Sun, Dec 6, 2020
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 1431 times since Mon, Feb 18, 2019
www.unixarena.com
Viewed 2043 times since Fri, Jul 27, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 1636 times since Sat, Jun 2, 2018
HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
Viewed 4250 times since Fri, Nov 30, 2018
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 2438 times since Fri, Jul 13, 2018
LVM basic
Viewed 1846 times since Sat, Jun 2, 2018
Lsyncd: live file syncronization across multiple Linux servers
Viewed 6285 times since Wed, Oct 31, 2018
Linux Network (TCP) Performance Tuning with Sysctl
Viewed 10500 times since Fri, Aug 3, 2018
SYS: Configure a local repository. local repo
Viewed 10423 times since Mon, Oct 29, 2018