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 20 Netstat Commands for Linux Network Management
Viewed 461 times since Mon, Sep 21, 2020
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 914 times since Wed, Apr 22, 2020
Testing TLS/SSL encryption
Viewed 1105 times since Thu, Jan 16, 2020
ZPOOL: Grow a zpool by adding new device(s)
Viewed 1020 times since Sun, Jun 3, 2018
Linux – How to check the exit status of several piped commands
Viewed 1717 times since Wed, Jul 25, 2018
Secure NTP with NTS
Viewed 196 times since Sun, Dec 6, 2020
Linux - How to shutdown or reboot
Viewed 711 times since Fri, Jun 8, 2018
12 Linux Rsync Options in Linux Explained
Viewed 1117 times since Wed, Oct 31, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 4922 times since Sun, May 27, 2018
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 2315 times since Sun, May 20, 2018