Results 1 to 6 of 6

Thread: Server hangs on boot

  1. #1
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    260
    Distro
    Ubuntu 12.04 Precise Pangolin

    [Solved] Server hangs on boot

    I'm trying to track down a problem with my server. Basically, I can get it to boot with a LiveCD and do rescue stuff with it - I just can no longer get it to boot.

    I've been slowly working my way through all of the error messages that come up during the boot process, and knocking them off one by one. Right now, they're fairly minor.

    I'm trying to find out what the big issue is by looking at the logs. The last thing that it does is bring up apache2, says [OK] and then hangs. I've tried to do ls -lustR on /var/log to see what's the last log touched, and that's syslog or boot.log, but the last entry says something along the lines of Apache2 is up and running.

    Where else should I look?
    Last edited by matthewboh; August 1st, 2010 at 01:19 PM.
    Impari Systems, Inc
    http://www.imparisystems.com

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: Server hangs on boot

    Check Apache error logs.

  3. #3
    Join Date
    Jul 2007
    Location
    The Internet
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Server hangs on boot

    Try looking at /var/log/messages .

    If you're feeling ambitious, you could try adding

    echo "Here I am in such-in-such init script" >> mylogfile
    ...
    echo "Now leaving such-in-such init script" >> mylogfile

    statements in the "start" sections of the init scripts in /etc/init.d to track down where the problem is happening...

  4. #4
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    260
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Server hangs on boot

    That's one of the things I'm currently trying to do is figure out where those init scripts are -

    Should I be looking at all of the init.d scripts or is it in each of the rcx.d directories?

    Sorry for the noob questions....

    Figured that I need to look at rcS.d and rs2.d - and started to put in echoes - looks like it's the headless soffice install
    Last edited by matthewboh; July 27th, 2010 at 10:12 PM.
    Impari Systems, Inc
    http://www.imparisystems.com

  5. #5
    Join Date
    Jul 2010
    Beans
    13

    Re: Server hangs on boot

    Have you tried booting it up without the network cable plugged in. Might get you a little further, helped me once.

  6. #6
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    260
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Server hangs on boot

    Woohoo! Fixed it - thanks everyone! I went into rc2.d and looked at all the jobs and started putting in echo statements for each one - found out that the problem was with the headless OpenOffice jobs - changed the ability for them to execute to off with chmod -x statement, and had to do a little fooling around with the /etc/network/interfaces file - eBox install apparently did something to it - and now I'm up and running.
    Impari Systems, Inc
    http://www.imparisystems.com

Tags for this Thread

Bookmarks

Posting Permissions

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