Server Crashing Every 15 Minutes

matty4donna

Member
Sep 7, 2003
19
0
151
United Kingdom
Hey guys,

I have a VPS for personal websites and backup, and today it has been crashing every 15 minutes non-stop.

I have to reboot via HyperVM everytime it crashes, otherwise it does not come back up.

I have checked the crontab and there is nothing in there to be causing it to crash every 15 minutes, and also done a few other checks etc...

There is a problem with the cPanel license on the server atm, basically the license is invalid and cannot be updated because of this, so I am awaiting the NOC to sort this out for me.

Is there any chance that this could be linked to an invalid license file?

Also, any idea's as to why it could be crashing so precisely.

Cheers! :)
 

matty4donna

Member
Sep 7, 2003
19
0
151
United Kingdom
Hi, thanks for the response, much appreciated.

If it was hardware related, would the whole server not be going down as opposed to just the VPS (ie. its only the VPS crashing, the actual node is fine because I just reboot the VPS via HyperVM).

Interestingly, I removed the following line from the crontab before the last crash:

*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
I am assuming this was running every 15 minutes from the value of the schedule field. Is it likely that this could have causing the VPS to hang and become unresponsive, because it has this time been up for 23 minutes and still running fine.

How do I check dmesg and what is it?

I usually have an admin to sort these issues for me, but he is not online atm, so although I have some basic knowledge of Linux and cPanel etc, I am more of a Windows guy lol.

Once again, thanks!
 

matty4donna

Member
Sep 7, 2003
19
0
151
United Kingdom
Theres loads of errors in there. Things like time and time again (possibly every time it crashes):

Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'kernel.sysrq'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'fs.file-max'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_fin_timeout'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_keepalive_time'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_window_scaling'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_sack'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_timestamps'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_syncookies'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.icmp_echo_ignore_broadcasts'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.icmp_ignore_bogus_error_responses'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_max_syn_backlog'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_mem'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_wmem'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_rmem'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.core.rmem_max'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.core.rmem_default'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.core.wmem_max'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.core.wmem_default'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.tcp_max_tw_buckets'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.ip_local_port_range'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.ipfrag_high_thresh'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.ipv4.ipfrag_low_thresh'
Sep 14 15:54:49 python sysctl: error: unknown error 1 setting key 'net.core.optmem_max'
Is it likely that say the server tried to update the cPanel without a valid license file, this could have had anything to do with it?

In the upcp report, I got some errors like the following repeatedly:

Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
This also shows up in the message log.

Any ideas??

Thanks once again! :)
 

rachweb

Well-Known Member
Jun 26, 2004
268
0
166
amsterdam
First error: It looks like kernel problem.
What is your linux version/distro? What gives uname -a (ssh)?

For the second error it looks like that you haven't enabled suexec in apache. The best way is to recompile the apache with suexec option
 

matty4donna

Member
Sep 7, 2003
19
0
151
United Kingdom
Hi,

The operating system currently on the VPS is CentOS 4.4 iirc.

The kernel is:

Linux [hostname] 2.6.18-8.1.3.el5.028stab033.1 #1 SMP Mon May 28 22:23:07 MSD 2007 i686 athlon i386 GNU/Linux

Is it advisable to use the easyapache function to re-compile apache?

Also, given the server is a VPS, I am assuming the kernel is on the node rather then the server and anything that needs doing to it would need to be done by the NOC.

Are either of these problems likely to cause intermittent crashes.

Cheers! :)