Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: open

Server Messages

Where are 'var/log/messages'

   
7:36 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Hi,

I have a server that's stopped on me twice in the last three days. I have been told to check the 'var/log/messages' for clues but having never checked them before I can't work out where i'm supposed to be looking for them.

Server has WHM/Cpanel, any help would be great.

8:08 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Log in as the root user using telnet or (preferbly) SSH.

Then type:

more /var/log/messages

That will let you see the contents of the file one page at a time!

HTH,
JP

8:10 pm on Nov 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or handy if they're big files:

tail /var/log/messages

You can also view the last n lines with:

tail -n /var/log/messages
9:06 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Thanks Guys, unfortunately there is nothing pointing to why it is shutting down.
9:08 pm on Nov 1, 2004 (gmt 0)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Pan, there should be other logfiles in /var/log...

If you can post snippets of the logs leading up to the shutdown, we may be able to help you.

9:42 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Sorry about taking time to respond.

Having discovered 0% more actually meant there was more and a lot more. I was unable to copy anything so have taken a series of snapshots as I scrolled (with my staple gun wedging down the return key) for an hour through the logs.

The last image, 39 was taken after re-boot all the others at different stages before reboot.

h**p://fetch4.com/server-var-log/

Thanks for any help.

9:50 pm on Nov 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In Image20.jpg, you can see that the swap file is full, then httpd gets killed.

Increase the swap / find out what is using/leaking memory.

9:58 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Thanks for the fast responce.

Sorry but I have had to up three servers before i'd even had time to learn how the first one works.

>>>Increase the swap
How do I do that?

10:02 pm on Nov 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you the server admin? - since you mentioned WHM/Cpanel, I'm guessing the answer is no.
10:06 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



They are my servers, there is no one else on them.

Puzzles me why this one the last one I set up is causing problems when it was set up the same way as the others.

10:09 pm on Nov 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this particular one running something more heavy-duty web wise than the others? Have you also looked at the Apache error log?
10:28 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



I'm basically using it as a file store.

There are at max 92mb of files i'm pulling off for use on another site, nothing technical.

I'm probably only pulling 40mb of them off at that, around 20gig a day total.

There is 1024mb of ram and a 100mbps uplink so it shouldn't struggle.

>>>Apache error log?
As I say i'm not up to speed, if WHM has no button for it I haven't been there. I have 'Apache Status' but not seen the error log. I thought that was what the images were from. :)

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month