LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Litespeed restarts every 10-20 mins (http://www.litespeedtech.com/support/forum/showthread.php?t=6186)

semprot 08-23-2012 10:14 AM

Litespeed restarts every 10-20 mins
 
After i gracefully restarted my whole server (litespeed + mysql + etc from whm), suddenly litespeed started to restart every 10-20 mins. It never happens before the restart.

here is what i got from error log. Any idea what's going on? :confused:
Code:

2012-08-23 11:50:58.991        NOTICE        Server Restart Request via Signal...
2012-08-23 11:50:58.992        NOTICE        [PID: 13272]: start cgid: 13761, /usr/local/lsws/bin/lscgid
2012-08-23 11:50:58.992        INFO        Pass listener 127.0.0.1:443.
2012-08-23 11:50:58.992        INFO        Pass listener 127.0.0.1:80.
2012-08-23 11:50:58.992        INFO        Pass listener 172.17.4.87:443.
...truncated....
2012-08-23 11:50:58.993        NOTICE        [Child: 13275] Start shutting down gracefully ...
....truncated...
2012-08-23 11:50:59.156        NOTICE        Loading LiteSpeed/4.1.13 Enterprise ...
2012-08-23 11:50:59.157        NOTICE        [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7452
2012-08-23 11:50:59.157        NOTICE        Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
.....truncated....
2012-08-23 11:50:59.159        NOTICE        Recovering server socket: [*:7080]
2012-08-23 11:50:59.159        NOTICE        [config] chroot is disabled.
2012-08-23 11:50:59.159        INFO        old priority: -19, new priority: -19
2012-08-23 11:50:59.159        INFO        [config:server:basic] For better obscurity, server version number is hidden in the response header.
2012-08-23 11:50:59.160        NOTICE        [PID: 13778]: start cgid: 13779, /usr/local/lsws/bin/httpd
2012-08-23 11:50:59.161        WARN        [config:server:listener] No listener is available for normal virtual host!
2012-08-23 11:50:59.161        NOTICE        The maximum number of file descriptor limit is set to 16384.
2012-08-23 11:50:59.161        NOTICE        [config:server:epsr:lsphp4]'Process Limit' probably is too low, adjust the limit to: 310.
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/includes/pre_main_global.conf
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/includes/pre_main_2.conf
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/php.conf
2012-08-23 11:50:59.162        NOTICE        [/usr/local/apache/conf/php.conf:13] Ignore Action direcitve for 'application/x-httpd-php'
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/includes/errordocument.conf
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/modsec2.conf
2012-08-23 11:50:59.162        INFO        Processing config file: /usr/local/apache/conf/modsec2.user.conf
2012-08-23 11:50:59.188        INFO        Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_global.conf
2012-08-23 11:50:59.188        INFO        Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_global.conf
2012-08-23 11:50:59.188        INFO        Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_2.conf
2012-08-23 11:50:59.188        INFO        Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_2.conf
2012-08-23 11:50:59.189        INFO        Processing config file: /usr/local/apache/conf/includes/post_virtualhost_global.conf
2012-08-23 11:50:59.189        INFO        Processing config file: /usr/local/apache/conf/includes/post_virtualhost_global.conf
2012-08-23 11:50:59.189        INFO        Processing config file: /usr/local/apache/conf/includes/post_virtualhost_2.conf
2012-08-23 11:50:59.189        INFO        Processing config file: /usr/local/apache/conf/includes/post_virtualhost_2.conf
2012-08-23 11:50:59.197        NOTICE        litespeed (13778) is ready
2012-08-23 11:50:59.197        NOTICE        [AutoRestarter] new child process with pid=13780 is forked!
2012-08-23 11:50:59.197        INFO        Stop listener 127.0.0.1:443.
2012-08-23 11:50:59.197        NOTICE        [AutoRestarter] new child process with pid=13781 is forked!
.......truncated...
2012-08-23 11:50:59.198        NOTICE        [child: 13780] Successfully change current user to nobody
2012-08-23 11:50:59.198        NOTICE        [Child: 13780] Core dump is enabled.
2012-08-23 11:50:59.198        INFO        Stop listener 96.30.53.97:443.
2012-08-23 11:50:59.198        INFO        Stop listener 96.30.53.97:80.
2012-08-23 11:50:59.198        INFO        Stop listener 96.30.53.99:443.
2012-08-23 11:50:59.198        INFO        Stop listener 96.30.53.99:80.
2012-08-23 11:50:59.198        INFO        Stop listener *:7080.
2012-08-23 11:50:59.198        NOTICE        [child: 13781] Successfully change current user to nobody
2012-08-23 11:50:59.198        NOTICE        [Child: 13781] Core dump is enabled.
2012-08-23 11:50:59.198        NOTICE        [Child: 13780] Setup swapping space...
2012-08-23 11:50:59.198        NOTICE        [Child: 13780] LiteSpeed/4.1.13 Enterprise starts successfully!
2012-08-23 11:50:59.198        NOTICE        [Child: 13781] Setup swapping space...
2012-08-23 11:50:59.198        NOTICE        [Child: 13781] LiteSpeed/4.1.13 Enterprise starts successfully!
2012-08-23 11:50:59.200        INFO        [HTAccess] Updating configuration from [/home/XXXXXXXXXX/public_html/.htaccess]
2012-08-23 11:50:59.200        NOTICE        New litespeed process is ready, litespeed (13274) stops listeners
......truncaed...
2012-08-23 11:50:59.204        NOTICE        New litespeed process is ready, litespeed (13275) stops listeners
....truncated...
2012-08-23 11:51:00.203        NOTICE        [AutoUpdate] Checking for new releases..., pid=13789
2012-08-23 11:51:00.350        INFO        [AutoUpdate] No new update.
2012-08-23 11:51:00.402        INFO        [HTAccess] Updating configuration from [/home/XXXXXXXXxx/public_html/XXXXXXX/.htaccess]
2012-08-23 11:51:00.729        NOTICE        Start to clean up cache directory, pid=13790
....truncated...
2012-08-23 11:51:39.855        NOTICE        [Child: 13275] Shut down successfully!
2012-08-23 11:51:39.904        NOTICE        [lsphp5] stop worker processes
2012-08-23 11:51:39.907        NOTICE        [AutoRestarter] cleanup children processes and unix sockets of process with pid=13275 !
2012-08-23 11:51:39.907        INFO        [CLEANUP] Clean up child process with pid: 13292
2012-08-23 11:51:40.001        NOTICE        [AutoRestarter] child process with pid=13275 exited with status=0!
...truncated...
2012-08-23 11:52:11.865        NOTICE        [Child: 13274] Shut down successfully!
2012-08-23 11:52:12.150        NOTICE        [lsphp5] stop worker processes
2012-08-23 11:52:12.167        NOTICE        [AutoRestarter] cleanup children processes and unix sockets of process with pid=13274 !
2012-08-23 11:52:12.168        INFO        [CLEANUP] Clean up child process with pid: 13280
2012-08-23 11:52:12.168        INFO        [CLEANUP] Clean up child process with pid: 13464
2012-08-23 11:52:12.269        NOTICE        [AutoRestarter] child process with pid=13274 exited with status=0!
2012-08-23 11:52:12.269        NOTICE        [PID:13272] Server Stopped!
...truncated..
2012-08-23 11:55:59.002        NOTICE        Graceful stop process group lead by pid: 13786
...truncated...
2012-08-23 11:56:19.004        NOTICE        All pending requests are finished, stop process group lead by pid: 13786
...truncated..
2012-08-23 11:56:30.017        INFO        Remove pid: 13786, exitcode: 129


webizen 08-23-2012 10:45 AM

Quote:

Originally Posted by semprot (Post 34777)
After i gracefully restarted my whole server (litespeed + mysql + etc from whm), suddenly litespeed started to restart every 10-20 mins. It never happens before the restart.

here is what i got from error log. Any idea what's going on? :confused:
Code:

2012-08-23 11:50:58.991        NOTICE        Server Restart Request via Signal...
...


Restart via Signal indicates it is WHM/cPanel that tries to restart httpd(litespeed).

You can check /usr/local/lsws/log/ap_cmd_param.log and see the command WHM sends to litespeed for the restart.

semprot 08-23-2012 10:53 AM

Quote:

Originally Posted by webizen (Post 34779)
Restart via Signal indicates it is WHM/cPanel that tries to restart httpd(litespeed).

You can check /usr/local/lsws/log/ap_cmd_param.log and see the command WHM sends to litespeed for the restart.

Thanks, i got this
Code:

Thu Aug 23 09:39:15 CDT 2012: -DSSL -t -f /usr/local/apache/conf/httpd.conf.work.ri5R2Uo9KXisJLn7
Thu Aug 23 09:44:26 CDT 2012: -k stop -DSSL
Thu Aug 23 09:44:26 CDT 2012: -k start -DSSL
Thu Aug 23 09:49:38 CDT 2012: -k stop -DSSL
Thu Aug 23 09:49:38 CDT 2012: -k start -DSSL
Thu Aug 23 09:54:50 CDT 2012: -k stop -DSSL
Thu Aug 23 09:54:50 CDT 2012: -k start -DSSL
Thu Aug 23 10:00:03 CDT 2012: -k stop -DSSL
Thu Aug 23 10:00:03 CDT 2012: -k start -DSSL
Thu Aug 23 10:05:22 CDT 2012: -k stop -DSSL
Thu Aug 23 10:05:22 CDT 2012: -k start -DSSL
Thu Aug 23 10:07:48 CDT 2012: -v
Thu Aug 23 10:10:34 CDT 2012: -k stop -DSSL
Thu Aug 23 10:10:34 CDT 2012: -k start -DSSL
Thu Aug 23 10:15:47 CDT 2012: -k stop -DSSL
Thu Aug 23 10:15:47 CDT 2012: -k start -DSSL
Thu Aug 23 10:13:55 CDT 2012: -k start -DSSL
Thu Aug 23 10:14:45 CDT 2012: -k stop -DSSL
Thu Aug 23 10:14:45 CDT 2012: -k start -DSSL
Thu Aug 23 10:14:50 CDT 2012: -V
Thu Aug 23 10:14:51 CDT 2012: -l
Thu Aug 23 10:14:51 CDT 2012: -v
Thu Aug 23 11:03:15 CDT 2012: resrtart
Thu Aug 23 11:03:22 CDT 2012: -k restart -DSSL
Thu Aug 23 11:03:47 CDT 2012: -k restart -DSSL
Thu Aug 23 11:04:37 CDT 2012: -v
Thu Aug 23 11:05:13 CDT 2012: -k restart -DSSL
Thu Aug 23 11:06:26 CDT 2012: -v
Thu Aug 23 11:10:08 CDT 2012: -k restart -DSSL
Thu Aug 23 11:16:29 CDT 2012: -k restart -DSSL
Thu Aug 23 11:20:24 CDT 2012: -k restart -DSSL
Thu Aug 23 11:26:29 CDT 2012: -v
Thu Aug 23 11:36:37 CDT 2012: -k restart -DSSL
Thu Aug 23 11:44:03 CDT 2012: -k restart -DSSL
Thu Aug 23 11:50:58 CDT 2012: -k restart -DSSL
Thu Aug 23 12:16:22 CDT 2012: -v
Thu Aug 23 12:20:14 CDT 2012: -l
Thu Aug 23 12:20:14 CDT 2012: -V
Thu Aug 23 12:25:31 CDT 2012: -v

What does that mean?

webizen 08-23-2012 11:28 AM

Quote:

Originally Posted by semprot (Post 34780)
Thanks, i got this
Code:

...
Thu Aug 23 11:50:58 CDT 2012: -k restart -DSSL
...

What does that mean?

This is the entry you should look for which matches with the restart in error_log (same timestamp). command 'service httpd restart' was issued. It could be httpd.conf changed via whm (like adding account, etc) so whm restart httpd to make the change effective or the command was manually issued from console.

semprot 08-23-2012 11:31 AM

Quote:

Originally Posted by webizen (Post 34781)
This is the entry you should look for which matches with the restart in error_log (same timestamp). command 'service httpd restart' was issued. It could be httpd.conf changed via whm (like adding account, etc) so whm restart httpd to make the change effective or the command was manually issued from console.

ok thanks it seems litespeed restart does not happen again. thanks for the help :)


All times are GMT -7. The time now is 07:50 AM.