8 Replies Latest reply: Jun 20, 2012 11:26 AM by gracoat
bslindgreen Level 1 Level 1 (0 points)

hello

 

at 2.30 last night "uptimerobot" and "mxwatch" reported that my server was down.

when i woke up and saw the messages i opend apple remote desktop to see what the problem was.

but i could'nt connect. therefor i drove out to the house where my server is to see if it was a powerproblem.

when i came i pluged a mouse and screen in my server so i could try to solve the problem.

but the whole system was frozed, i could'nt do anything so i decided to force it to shut down by holding the power button down.

when the server had restarted i recieved a message from mxwatch that the mail connect was back up.

and all on the server works great.

"now you all think this is a nice little story, but where is the question", it comes here:

the only problem is that my websites was'nt back up.

in server admin the server is set as on.

but now i realised that web service did'nt work. the first sign is that "start time and apache version" is set as not available.

the second pretty clear sign is that all logs of web has dissappered. not only in "server admin" but also the originatly file position at /var/log/

it's like half of the web service has been deleted. i dont want to restore the whole system to get the service back.

i have a backup of all files on my server (even the hidden) what files do you think that i should recreate to the server??? or what do you think i should do???


Xserve, Mac OS X (10.6.6)
  • 1. Re: web service disappered
    Camelot Level 8 Level 8 (45,790 points)

    What you should do is dig further into what caused the server to crash.

     

    I think restoring the entire server is a bit much, but you don't say whether the web content is missing, whether the web site configuration (/etc/apache2/sites/..) file still exists, whether you're running multiple sites and they're all affected, or what Apache has to say.

     

    If Apache can't create its logs it will refuse to start, so it might be as simple as recreating the /var/log/apache2 directory

     

    However, this is a very unusual event, so I'd want to know more about what happened. For example, was your machine hacked and the problem caused by the hacker trying to cover his tracks?

    Did some disk error occur that corrupted the logs directory?

  • 2. Re: web service disappered
    bslindgreen Level 1 Level 1 (0 points)

    thank you for the quick answer

     

    however it didn't work, here are the answers from your questions

    the web content isn't missing.

    the web site configuration files still exists.

    the log folder is still there, and i have just found out that the two files "access_log" and "error_log" still exists (but they isn't showed in "server admin".

    i dont know what you mean by "what Apache has to say"

    i am running multiple sites

  • 3. Re: web service disappered
    Camelot Level 8 Level 8 (45,790 points)

    i dont know what you mean by "what Apache has to say"

     

    What I mean is just what I said... what does Apache have to say about the problem.

     

    If the OS is trying to start apache, but can't because there's some kind of error then Apache will log this error in the error_log (typically /var/log/apache2/error_log) so the first thing to do is check this log for any relevant messages about why Apache isn't starting.

     

    If the problem is that the OS isn't trying to start Apache then try starting Apache manually (sudo apachectl restart) and look at the status. If that looks OK then the problem is with the OS configuration and not apache, and that's useful to know.

  • 4. Re: web service disappered
    bslindgreen Level 1 Level 1 (0 points)

    hello

     

    the error log just stops at 2.30 without any explanation. I tried "sudo apachectl restart" in the terminal. the only thing it did was wipe the error log clean. it didn't start the webserver.

  • 5. Re: web service disappered
    bslindgreen Level 1 Level 1 (0 points)

    hello

     

    error log wasn't deleted.

    and when i wrote "sudo apachectl restart" terminal didn't react (it's like it doesn't know the command

  • 6. Re: web service disappered
    bslindgreen Level 1 Level 1 (0 points)

    are there anyone who have an idea what may have caused this problem.

  • 7. Re: web service disappered
    bslindgreen Level 1 Level 1 (0 points)

    i solved it by restoring the server.

  • 8. Re: web service disappered
    gracoat Level 3 Level 3 (660 points)

    I bet it's a bad hard drive.

    Strange unexpected failure of a server like that...  Files vanishing...

     

    I bet that it'll happen again!

    You should certainly run disk utility on the drive or some other software that'll check the consitency of things.

     

    -Graham