nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

HTTPD dead but subsys locked

This is a discussion on HTTPD dead but subsys locked within the Web servers forums, part of the Mastering Servers category; I am running centos 2.6.9-55.0.2.EL. When I tried to start httpd it gives me the error https dead but subsys ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-07-2007, 05:32 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default HTTPD dead but subsys locked

I am running centos 2.6.9-55.0.2.EL. When I tried to start httpd it gives me the error https dead but subsys locked. I fount the there is no pid file on /var/run. What should i do. Please hel
__________________
HACKER VS CRACKER
Reply With Quote
  #2 (permalink)  
Old 25-07-2007, 10:59 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Quote:
Originally Posted by surmandal View Post
I am running centos 2.6.9-55.0.2.EL. When I tried to start httpd it gives me the error https dead but subsys locked. I fount the there is no pid file on /var/run. What should i do. Please hel
Run killall command:
Code:
killall -9 httpd
And start again:
Code:
service httpd start
netstat -tulpn
tail -f /var/log/messages
tail -f /var/log/httpd/error_log
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 26-07-2007, 08:44 AM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default

error_log gives me this error.

[Wed Jul 25 19:36:21 2007] [error] (2No space left on device: could not create /etc/httpd/run/httpd.pid
[Wed Jul 25 19:36:21 2007] [error] httpd: could not log pid to file /etc/httpd/run/httpd.pid
[Thu Jul 26 08:57:24 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 26 08:57:24 2007] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 26 08:57:24 2007] [notice] Digest: done
[Thu Jul 26 08:57:24 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Jul 26 08:57:24 2007] [notice] LDAP: SSL support unavailable
[Thu Jul 26 08:57:24 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Jul 26 08:57:25 2007] [error] (2No space left on device: could not create /etc/httpd/run/httpd.pid
[Thu Jul 26 08:57:25 2007] [error] httpd: could not log pid to file /etc/httpd/run/httpd.pid
__________________
HACKER VS CRACKER
Reply With Quote
  #4 (permalink)  
Old 26-07-2007, 04:31 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

You are out of disk space, either delete files or add more disk space
[Wed Jul 25 19:36:21 2007] [error] (2No space left on device: could not create /etc/httpd/run/httpd.pid
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #5 (permalink)  
Old 26-07-2007, 05:25 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default

Thanks for reply but I have still 23% space left on /var. any suggestion

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 10104268 499072 9091924 6% /
none 509320 0 509320 0% /dev/shm
/dev/hda6 497829 10547 461580 3% /tmp
/dev/hda2 25197252 1778232 22139044 8% /usr
/dev/hda5 1035660 750192 232860 77% /var
__________________
HACKER VS CRACKER
Reply With Quote
  #6 (permalink)  
Old 27-07-2007, 06:55 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Default

Is it Redhat Linux?
__________________
Reply With Quote
  #7 (permalink)  
Old 27-07-2007, 07:50 AM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default

Yes it is.
__________________
HACKER VS CRACKER

Last edited by surmandal; 27-07-2007 at 07:52 AM.
Reply With Quote
  #8 (permalink)  
Old 27-07-2007, 08:04 AM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default

Thanks everyone for help. I removed the httpd from /var/lock/subsys then it works.
__________________
HACKER VS CRACKER
Reply With Quote
  #9 (permalink)  
Old 30-07-2007, 04:08 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
OS: Ubuntu and Redhat
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
surmandal
Send a message via MSN to surmandal
Default

Few days back...Same problem:-
this is Disk spaces uses

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 10104268 355024 9235972 4% /
none 509320 0 509320 0% /dev/shm
/dev/hda6 497829 10547 461580 3% /tmp
/dev/hda2 25197252 1778232 22139044 8% /usr
/dev/hda5 1035660 770012 213040 79% /var

and inside the /var

total 180
drwxr-xr-x 2 root root 4096 Jan 18 2007 account
drwxr-xr-x 5 root root 4096 May 10 2003 alchemist
drwxr-xr-x 3 root root 4096 Jul 21 04:02 cache
drwxr-xr-x 3 netdump netdump 4096 May 3 05:02 crash
drwxr-xr-x 3 root root 4096 May 10 2003 db
drwxr-xr-x 3 root root 4096 May 10 2003 empty
drwxr-xr-x 2 root root 4096 Mar 21 12:24 htb.init
drwxr-xr-x 21 root root 4096 Jun 16 12:20 lib
drwxr-xr-x 2 root root 4096 Feb 22 2005 local
drwxrwxr-x 6 root lock 4096 Jul 21 04:02 lock
drwxr-xr-x 10 root root 4096 Jul 29 10:04 log
drwx------ 2 root root 4096 May 11 2003 lost+found
lrwxrwxrwx 1 root root 10 May 10 2003 mail -> spool/mail
drwxr-xr-x 14 root root 4096 Jun 17 04:02 man
drwx------ 2 root root 4096 Jul 30 14:38 net-snmp
drwxr-xr-x 2 root root 4096 Feb 22 2005 nis
drwxr-xr-x 2 root root 4096 Feb 22 2005 opt
drwxr-xr-x 2 root root 4096 Feb 22 2005 preserve
drwxr-xr-x 18 root root 4096 Jul 30 15:40 run
drwxr-xr-x 16 root root 4096 May 10 2003 spool
drwxr-xr-x 2 root root 4096 May 3 23:16 systemtap
drwxrwxrwt 2 root root 4096 Jul 21 04:19 tmp
drwx------ 2 root root 4096 Feb 21 2005 tux
drwxr-xr-x 2 root root 4096 Jul 27 13:01 usermin
drwx------ 2 root bin 4096 Jun 19 20:05 webmin
drwxr-xr-x 3 root root 4096 Jul 27 10:55 www
drwxr-xr-x 3 root root 4096 May 3 07:44 yp
drwxr-xr-x 6 root root 4096 May 5 18:53 yum

this is the disk spaces uses by services under the /var directory.

When I tryed to start the httpd,crond I got no space left on Devices error.
please help
__________________
HACKER VS CRACKER
Reply With Quote
  #10 (permalink)  
Old 31-07-2007, 05:24 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

What is the output of mount command? Is your /var is read only due to error? I suggest you take filesystem off line and run fsck on it.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
httpd.conf deleted! How to re-generate? Any Scripts? vivekv Shell scripting 1 17-07-2008 05:13 PM
httpd.conf deleted! How to re-generate? vivekv Getting started tutorials 2 17-01-2008 03:45 PM
httpd process vimalgoel Getting started tutorials 1 08-10-2007 12:40 AM
Linux create self signed ssl certificate for Apache httpd server raj Getting started tutorials 0 05-05-2007 01:23 AM
logwatch httpd kavi2 Linux software 3 22-09-2005 09:28 PM


All times are GMT +5.5. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38