LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-16-2013, 07:11 AM   #1
bigmen58
LQ Newbie
 
Registered: Jul 2013
Posts: 18

Rep: Reputation: Disabled
Apache, No space left on device, Couldn't create the proxy mutex


Hello,

I have Apache 2.4.6 http server and sometimes after 7 - 15 days from last reboot Apache crashing. When i'm trying start httpd in error_log i have this:

Quote:
[Mon Dec 14 00:54:15.131973 2013] [lbmethod_heartbeat:notice] [pid 871455:tid 140283000383424] AH02282: No slotmem from mod_heartmonitor
[Mon Dec 14 00:54:15.133058 2013] [core:emerg] [pid 871455:tid 140283000383424] (28)No space left on device: AH00023: Couldn't create the fcgid-pipe mutex
[Mon Dec 14 00:55:01.876934 2013] [:notice] [pid 871508:tid 140395925907392] mod_hostinglimits: version 1.0-7. LVE mechanism enabled
[Mon Dec 14 00:55:01.877007 2013] [:notice] [pid 871508:tid 140395925907392] mod_hostinglimits: found apr extention version 2
[Mon Dec 14 00:55:01.877011 2013] [:notice] [pid 871508:tid 140395925907392] mod_hostinglimits: apr_lve_environment_init_group check ok
[Mon Dec 14 00:55:02.000159 2013] [core:emerg] [pid 871508:tid 140395925907392] (28)No space left on device: AH00023: Couldn't create the proxy mutex
[Mon Dec 14 00:55:02.000189 2013] [proxy:crit] [pid 871508:tid 140395925907392] (28)No space left on device: AH02478: failed to create proxy mutex
AH00016: Configuration Failed
I found somewhere that Apache don't release semaphores. Then resolve is manually remove opened semaphores:

Quote:
ipcs | grep apache | awk '{print $2}' > sem.txt
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;
After that httpd started.

I've noticed that after httpd restart "ipcs | grep apache | wc -l" return about 21 items. Before restart, after httpd crash same command return 125.

How prevent it in future? Why it happens?
 
Old 12-16-2013, 07:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I do not really understand you. No space left on device means disk full. Have you checked your drives? (df -h)
 
Old 12-16-2013, 07:55 AM   #3
bigmen58
LQ Newbie
 
Registered: Jul 2013
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I do not really understand you. No space left on device means disk full. Have you checked your drives? (df -h)
Yes, all paritions have free space.

I think "No space left on device" refers to semaphores and shared memory limits also, not only hard drive space.

A few minutes ago i was increased kernel.sem to:

kernel.sem = 500 64000 64 1024 (before: 250 32000 32 128)

Maybe it would help, but i don't know why apache use more than 100 semaphores.

Any ideas?

Last edited by bigmen58; 12-16-2013 at 07:57 AM.
 
Old 12-17-2013, 08:59 AM   #4
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
You could have plenty of space on a system and be out of inodes. I have seen that happen before.

I would run a df -i and see if you are out of inodes on any of your volumes.
 
1 members found this post helpful.
Old 12-17-2013, 03:18 PM   #5
bigmen58
LQ Newbie
 
Registered: Jul 2013
Posts: 18

Original Poster
Rep: Reputation: Disabled
Yeah i know about inodes - in my case all partitions have a lot of free inodes.

As I said, I changed kernel.sem limit, and I'm waiting - It's OK, for the time being.
 
Old 09-26-2014, 08:43 AM   #6
Jan-E
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
@bigmen58: I had the same. Apache 2.4.10 on Centos 6 would not restart after an uptime of 448 days. There were 124 semaphores in use. After releasing them only 8 were left and Apache started once again. Thanks for the solution.
 
Old 09-27-2014, 01:16 AM   #7
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
The updated sysctl settings should help with the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 02:50 PM
mkdir: cannot create directory `abc': No space left on device UNIX Zyklon Linux - Server 2 05-14-2012 01:16 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
"Cannot create directory: No space left on device" but I have 7.1G available !!!! fr_laz Linux - General 3 12-09-2005 04:44 PM
Apache not starting - No space left on device alexisb Red Hat 1 01-14-2004 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration