nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 05:32 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
My distro: Ubuntu and Redhat
Posts: 33
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
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 10:59 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 564
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 07-26-2007, 08:44 AM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
My distro: Ubuntu and Redhat
Posts: 33
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 07-26-2007, 04:31 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 564
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #5 (permalink)  
Old 07-26-2007, 05:25 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
My distro: Ubuntu and Redhat
Posts: 33
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 07-27-2007, 06:55 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 151
Rep Power: 4
sweta will become famous soon enough
Default

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

Yes it is.
__________________
HACKER VS CRACKER

Last edited by surmandal; 07-27-2007 at 07:52 AM.
Reply With Quote
  #8 (permalink)  
Old 07-27-2007, 08:04 AM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
My distro: Ubuntu and Redhat
Posts: 33
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 07-30-2007, 04:08 PM
Member
User
 
Join Date: Mar 2007
Location: Kathmandu
My distro: Ubuntu and Redhat
Posts: 33
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 07-31-2007, 05:24 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 919
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


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 On

Similar Threads

Thread Thread Starter Forum Replies Last Post
httpd.conf deleted! How to re-generate? Any Scripts? vivekv Shell scripting 1 07-17-2008 05:13 PM
httpd.conf deleted! How to re-generate? vivekv Getting started tutorials 2 01-17-2008 03:45 PM
httpd process vimalgoel Getting started tutorials 1 10-08-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 09-22-2005 09:28 PM


All times are GMT +5.5. The time now is 11:23 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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