Need to restart virtualmin once per week

5 posts / 0 new
Last post
#1 Fri, 02/14/2014 - 04:42
gstarr

Need to restart virtualmin once per week

Hi,

I have a strange problem where I have to restart virtualmin once per week. Symptoms I have a problem are: 1. When posting new post, i get an error 2. I cant get in Wordpress admin, site works however. 3. Virtualmin interface doesn't open.

I have restarted the server now, but I wen't to check apache logs just be sure problem is not apache related. Errors I see are: (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server Premature end of script headers: index.php (14)Bad address: mod_fcgid: error reading data from FastCGI server mod_fcgid: read data timeout in 31 seconds Premature end of script headers: wp-cron.php (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function (14)Bad address: mod_fcgid: error reading data from FastCGI server (22)Invalid argument: mod_fcgid: can't lock process table in pid 8755 script not found or unable to stat: /home/domain/cgi-bin/php script not found or unable to stat: /home/domain/cgi-bin/php5 script not found or unable to stat: /home/domain/cgi-bin/php-cgi script not found or unable to stat: /home/domain/cgi-bin/php.cgi script not found or unable to stat: /home/domain/cgi-bin/php4 mod_fcgid: stderr: WordPress database error Got error -1 from storage engine for query mod_fcgid: stderr: WordPress database error Got error 28 from storage engine for query mod_fcgid: stderr: WordPress database error Got error -1 from storage engine (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server .... I have no idea why would I get this errors. I was able to find log for Apache, but to I don't know how to find log for virtualmin to see why virtualmin is failing as well.

Can anyone help me solve this problem?

Fri, 02/14/2014 - 04:49
Locutus

Are you by chance on an OpenVZ based VPS? Those cause regular trouble with web hosting by randomly killing processes when resource limits are exceeded. Your PHP processes, as well as Webmin's "miniserv" might have gotten killed. You should find corresponding messages in your syslog or kernel log in /var/log in that case.

You might also want to check your /proc/user_beancounters file for values >0 in the "fail" column.

Fri, 02/14/2014 - 05:38 (Reply to #2)
gstarr

Hi,

Both logs look ok. I don't know what they use. I am on Digitalocean. Funny thing is that I have 2 VPS. One which is serving one site works fine, the other which host another website has this problem.

Both have the same spec, the same Ubuntu x64...

I didn't find /proc/user_beancounters. It's not there.

Fri, 02/14/2014 - 06:12
Locutus

Okay then it's probably not OpenVZ-based. When the problem with Virtualmin occurs, you might want to check if the process is still running by doing

ps aux | grep miniserv
netstat -tpln | grep :10000

It's a bit hard to say what could cause the issues you're having. Maybe out of memory. free -m shows the available memory. The tool "atop" records historical resource usage and can help identify memory issues. Otherwise if processes get killed due to memory or other issues, it should note so in the syslog/kernel log.

Fri, 02/14/2014 - 08:45
andreychek

Also, I notice this error in your Apache logs:

WordPress database error Got error 28 from storage engine

That appears to be an "Out of disk space" related error... you may want to run "df -h" to make sure that you have plenty of free space.

-Eric

Topic locked