Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: HTTPD dead but subsys locked

  1. #1
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  2. #2
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    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.

  3. #3
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  4. #4
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    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.

  5. #5
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  6. #6
    Contributors sweta's Avatar
    Join Date
    Feb 2005
    Location
    New Delhi
    Posts
    225
    Thanks
    20
    Thanked 12 Times in 12 Posts
    Rep Power
    12

    Default

    Is it Redhat Linux?

  7. #7
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Yes it is.
    Last edited by surmandal; 27th July 2007 at 07:52 AM.
    HACKER VS CRACKER

  8. #8
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks everyone for help. I removed the httpd from /var/lock/subsys then it works.
    HACKER VS CRACKER

  9. #9
    Member
    Join Date
    Mar 2007
    Location
    Kathmandu
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  10. #10
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 804 Times in 511 Posts
    Rep Power
    10

    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.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. httpd.conf deleted! How to re-generate? Any Scripts?
    By vivekv in forum Shell scripting
    Replies: 1
    Last Post: 17th July 2008, 05:13 PM
  2. httpd.conf deleted! How to re-generate?
    By vivekv in forum Getting started tutorials
    Replies: 2
    Last Post: 17th January 2008, 03:45 PM
  3. httpd process
    By vimalgoel in forum Getting started tutorials
    Replies: 1
    Last Post: 8th October 2007, 12:40 AM
  4. Linux create self signed ssl certificate for Apache httpd server
    By raj in forum Getting started tutorials
    Replies: 0
    Last Post: 5th May 2007, 01:23 AM
  5. logwatch httpd
    By kavi2 in forum Linux software
    Replies: 3
    Last Post: 22nd September 2005, 09:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •