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
WatchDog watchdog.sh script for checking server running
Viewed 5156 times since Tue, Jul 31, 2018
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 3000 times since Sat, Jun 2, 2018
6 easy steps to setup offline two factor authentication in Linux
Viewed 12165 times since Mon, Apr 6, 2020
Tips to Solve Linux & Unix Systems Hard Disk Problems
Viewed 3948 times since Fri, May 15, 2020
HowTo: Kill TCP Connections in CLOSE_WAIT State
Viewed 15168 times since Thu, Feb 14, 2019
Jak wygenerować silne hasła jednorazowe w Linuksie?
Viewed 2147 times since Thu, May 24, 2018
RHEL: Enabling standard ftp/telnet
Viewed 3212 times since Sun, May 27, 2018
OCFS2 Cluster File System Setup Guide in Linux
Viewed 6847 times since Sat, Jun 2, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 1877 times since Sat, Jun 2, 2018
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 2846 times since Tue, Jul 17, 2018