LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-14-2004, 09:50 AM   #1
alexisb
LQ Newbie
 
Registered: Jun 2003
Location: Lima, Peru
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
Apache not starting - No space left on device


Hello, i have a RedHat 7.2 Linux server with Plesk 5.0.5 RPM installed, this box is using Apache 1.3.27.

I also have an Apache 2.0.48 installed manually for some testing which works perfect and has nothing to do with Plesk.

Now both Apaches are not working.

In both httpd.conf i put LogLevel debug to get more detailed error messages when starting and i get this from error_log:

error_log from Apache 1.3.27

[Wed Jan 14 10:34:23 2004] [error] (28)No space left on device: MutexCreate(/var/spool/mod_watch/SharedHash.lock) failed
[Wed Jan 14 10:34:23 2004] [crit] (28)No space left on device: shCreate(80865b4, 991, /var/spool/mod_watch/) failed in watchInit()

error_log from Apache 2.0.48

[Wed Jan 14 10:29:43 2004] [warn] pid file /usr/local/apache-2.0.48/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jan 14 10:29:43 2004] [emerg] (28)No space left on device: Couldn't create accept lock

It seems as if there is no space on my hard disk (by the way, how do i know how much swap space i have?, i did "df /sda1/swap but i'm not too sure on that procedure) but here is my output from df commands:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 7.0G 5.8G 873M 88% /
/dev/sda2 48M 31M 14M 68% /boot
none 125M 0 125M 0% /dev/shm

df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 8372224 295184 8077040 4% /
/dev/sda2 56280 45 56235 1% /boot
none 32131 1 32130 1% /dev/shm

I don't have lots of space but i've been working with no problem using this space for months!.

Any ideas please?.

Regards.
 
Old 01-14-2004, 10:10 AM   #2
alexisb
LQ Newbie
 
Registered: Jun 2003
Location: Lima, Peru
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Hello, i've found the solution at: http://www2.goldfisch.at/knowledge/224 , thanks a lot to Peter Pilsl for his information.

I copy part of Peter's solution (he used "nobody" as Apache user, I guess most of us use "apache" so you have to change that accordingly):

Only reboot of the system helped out of my crisis.

Solution: There were myriads of semaphore-arrays left, owned by my apache-user.

ipcs -s | grep nobody

Removing this semaphores immediately solved the problem.

ipcs -s | grep nobody | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cp: No space left on device, but df does not agree! Correador Linux - General 5 04-18-2011 08:26 AM
Trying to dd a FC image into floppies: No space left on device guarriman Linux - General 1 05-23-2005 09:25 AM
no space left on device, but it has enough!!! help!!! sarah21 Red Hat 3 02-03-2005 08:37 PM
No space left on device xfgao Red Hat 27 01-13-2005 04:06 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:19 AM.

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