OpenLiteSpeed stops working.

#1
Hello!

There is WordPress site, plugin responsible for cache is autoptimize. OLS 1.4.50, Ubuntu 18, Somtimes OLS stops working.
According to logs, it stops working after
Code:
RewriteFile [/var/www/html/wp-content/cache/autoptimize/.htaccess] parsed, return 0
Could you please advice how to configure OLS correctly for avoiding this problem?
Here whole log:
Code:
2019-10-22 20:54:48.686596 [NOTICE] [AutoRestarter] child process with pid=17225 received signal=11, a core file is created!
2019-10-22 20:54:48.686638 [NOTICE] [*****] Debug version running, will create core file.
2019-10-22 20:54:49.239580 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 17225 !
2019-10-22 20:54:49.340057 [NOTICE] [AutoRestarter] new child process with pid=17280 is forked!
2019-10-22 20:54:49.340847 [NOTICE] [child: 17280] Successfully change current user to www-data
2019-10-22 20:54:49.340885 [NOTICE] Child: 17280] Core dump is enabled.
2019-10-22 20:54:49.340920 [NOTICE] [Child: 17280] Setup swapping space...
2019-10-22 20:54:49.341013 [NOTICE] [Child: 17280] LiteSpeed/1.4.50 Open starts successfully!
2019-10-22 20:55:32.922732 [INFO] Rewrite directive: <IfModule mod_expires.c> bypassed.
2019-10-22 20:55:32.922782 [INFO] Invalid rewrite directive: ExpiresActive On
2019-10-22 20:55:32.922788 [INFO] Invalid rewrite directive: ExpiresByType text/css A30672000
2019-10-22 20:55:32.922793 [INFO] Invalid rewrite directive: ExpiresByType text/javascript A30672000
2019-10-22 20:55:32.922797 [INFO] Invalid rewrite directive: ExpiresByType application/javascript A30672000
2019-10-22 20:55:32.922802 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-22 20:55:32.922806 [INFO] Rewrite directive: <IfModule mod_headers.c> bypassed.
2019-10-22 20:55:32.922810 [INFO] Invalid rewrite directive: Header append Cache-Control "public, immutable"
2019-10-22 20:55:32.922814 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-22 20:55:32.922819 [INFO] Rewrite directive: <IfModule mod_deflate.c> bypassed.
2019-10-22 20:55:32.922823 [INFO] Invalid rewrite directive: <FilesMatch "\.(js|css)$">
2019-10-22 20:55:32.922828 [INFO] Invalid rewrite directive: SetOutputFilter DEFLATE
2019-10-22 20:55:32.922832 [INFO] Invalid rewrite directive: </FilesMatch>
2019-10-22 20:55:32.922836 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-22 20:55:32.922840 [INFO] Rewrite directive: <IfModule mod_authz_core.c> bypassed.
2019-10-22 20:55:32.922844 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-22 20:55:32.922848 [INFO] Invalid rewrite directive: Require all denied
2019-10-22 20:55:32.922852 [INFO] Invalid rewrite directive: </Files>
2019-10-22 20:55:32.922857 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-22 20:55:32.922861 [INFO] Rewrite directive: <IfModule !mod_authz_core.c> bypassed.
2019-10-22 20:55:32.922865 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-22 20:55:32.922869 [INFO] Invalid rewrite directive: Order deny,allow
2019-10-22 20:55:32.922874 [INFO] Invalid rewrite directive: Deny from all
2019-10-22 20:55:32.922878 [INFO] Invalid rewrite directive: </Files>
2019-10-22 20:55:32.922882 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-22 20:55:32.922888 [INFO] RewriteFile [/var/www/html/wp-content/cache/autoptimize/.htaccess] parsed, return 0.
 
#3
seems some core file generated.
Please upgrade OLS from 1.4.50 to 1.5.7 to see if it helps.
Thank you for answer.
I upgraded OLS to 1.5.7 and looks like so far there is no line
Code:
child process with pid=17225 received signal=11, a core file is created!
Here piece of error log
Code:
2019-10-25 13:45:09.633015 [INFO] [PlainConf] [httpServerConfig:] start parsing file /usr/local/lsws/conf/httpd_config.conf
2019-10-25 13:45:09.633037 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkprivatecache 1]
2019-10-25 13:45:09.633042 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkpubliccache 1]
2019-10-25 13:45:09.633046 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxcacheobjsize 10000000]
2019-10-25 13:45:09.633050 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxstaleage 200]
2019-10-25 13:45:09.633054 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [qscache 1]
Code:
2019-10-25 13:45:09.633057 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [reqcookiecache 1]
2019-10-25 13:45:09.633061 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [respcookiecache 1]
2019-10-25 13:45:09.633065 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorereqcachectrl 1]
2019-10-25 13:45:09.633068 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorerespcachectrl 0]
2019-10-25 13:45:09.633072 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enablecache 0]
2019-10-25 13:45:09.633076 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [expireinseconds 3600]
2019-10-25 13:45:09.633079 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enableprivatecache 0]
2019-10-25 13:45:09.633083 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [privateexpireinseconds 3600]
2019-10-25 13:45:09.633091 [NOTICE] Loading LiteSpeed/1.5.7 Open
    module versions:
    modpagespeed 2.2-1.11.33.4
    cache 1.61
    modinspector 1.1
    uploadprogress LSIAPI_VERSION_STRING
    mod_security 1.1
(built: Wed Oct 16 19:35:24 UTC 2019) ...
2019-10-25 13:45:09.633106 [NOTICE] Using [BoringSSL]
2019-10-25 13:45:09.634227 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7016
2019-10-25 13:45:09.634622 [NOTICE] Recovering server socket: [*:80]
2019-10-25 13:45:09.634655 [NOTICE] Recovering server socket: [*:443]
2019-10-25 13:45:09.634670 [NOTICE] Recovering server socket: [*:7080]
2019-10-25 13:45:09.634711 [NOTICE] chroot is disabled.
2019-10-25 13:45:09.634721 [INFO] old priority: 0, new priority: 0
2019-10-25 13:45:09.634747 [INFO] [config:server:basics2] For better obscurity, server version number is hidden in the response header.
2019-10-25 13:45:09.649864 [NOTICE] [PID: 22874]: forked cgid: 22879
2019-10-25 13:45:09.650032 [INFO] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2019-10-25 13:45:09.651383 [INFO] [Module: modcompress 1.1] has been initialized successfully
2019-10-25 13:45:09.651512 [INFO] [Module: moddecompress 1.1] has been initialized successfully
2019-10-25 13:45:09.651620 [INFO] [Module: cache 1.61] has been initialized successfully
2019-10-25 13:45:09.654354 [NOTICE] The maximum number of file descriptor limit is set to 30000.
2019-10-25 13:45:09.655246 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/Example/vhconf.conf
2019-10-25 13:45:09.656145 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewriteengine On]
2019-10-25 13:45:09.656158 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritecond %{REQUEST_METHOD} OPTIONS]
2019-10-25 13:45:09.656164 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewriterule ^(.*)$ $1 [R=200,L]]
2019-10-25 13:45:09.656603 [INFO] [config:server:vhosts:vhost:Example] config context /.
2019-10-25 13:45:09.656687 [INFO] Rewrite directive: <IfModule LiteSpeed> bypassed.
2019-10-25 13:45:09.656696 [INFO] Invalid rewrite directive: CacheLookup on
2019-10-25 13:45:09.656727 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:45:09.656732 [INFO] Rewrite directive: <IfModule mod_rewrite.c> bypassed.
2019-10-25 13:45:09.656750 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:45:09.656755 [INFO] Rewrite directive: <IfModule mod_rewrite.c> bypassed.
2019-10-25 13:45:09.656760 [INFO] RewriteBase [/] parsed, set to HttpContext 0x1cb83c0.
2019-10-25 13:45:09.656787 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:45:09.656793 [INFO] Rewrite directive: <IfModule Litespeed> bypassed.
2019-10-25 13:45:09.656797 [INFO] Invalid rewrite directive: SetEnv noabort 1
2019-10-25 13:45:09.656801 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:45:09.656805 [INFO] Rewrite directive: <IfModule mod_headers.c> bypassed.
2019-10-25 13:45:09.656809 [INFO] Invalid rewrite directive: Header set Access-Control-Allow-Origin "*"
2019-10-25 13:45:09.656813 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:45:09.656817 [INFO] RewriteFile [/var/www/html/.htaccess] parsed, return 0.
2019-10-25 13:45:09.656825 [INFO] [config:server:vhosts:vhost:Example] config context /phpmyadmin.
2019-10-25 13:45:09.656907 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/ccl.conf
2019-10-25 13:45:09.657552 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-10-25 13:45:09.657584 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/phpsuexec.conf
2019-10-25 13:45:09.658409 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-10-25 13:45:09.658459 [INFO] [PlainConf] [virtualHostTemplate:] start parsing file /usr/local/lsws/conf/templates/rails.conf
2019-10-25 13:45:09.659887 [INFO] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2019-10-25 13:45:09.659913 [NOTICE] [ZConfManager] No VHosts added, do not send!
2019-10-25 13:45:09.660304 [NOTICE] [AutoRestarter] new child process with pid=22880 is forked!
2019-10-25 13:45:09.661015 [NOTICE] [child: 22880] Successfully change current user to www-data
2019-10-25 13:45:09.661050 [NOTICE] Child: 22880] Core dump is enabled.
2019-10-25 13:45:09.661114 [NOTICE] [Child: 22880] Setup swapping space...
2019-10-25 13:45:09.661212 [NOTICE] [Child: 22880] LiteSpeed/1.5.7 Open
    module versions:
    modpagespeed 2.2-1.11.33.4
    cache 1.61
    modinspector 1.1
    uploadprogress LSIAPI_VERSION_STRING
    mod_security 1.1
starts successfully!
2019-10-25 13:45:12.800279 [NOTICE] [Child: 13523] Shut down successfully!
2019-10-25 13:45:12.800320 [NOTICE] [AdminPHP] stop worker processes
2019-10-25 13:45:12.800347 [NOTICE] sendKillCmdToWatchdog: 'extappkill:22867:-3:0'.
2019-10-25 13:49:38.253864 [INFO] Rewrite directive: <IfModule mod_expires.c> bypassed.
2019-10-25 13:49:38.253913 [INFO] Invalid rewrite directive: ExpiresActive On
2019-10-25 13:49:38.253920 [INFO] Invalid rewrite directive: ExpiresByType text/css A30672000
2019-10-25 13:49:38.253925 [INFO] Invalid rewrite directive: ExpiresByType text/javascript A30672000
2019-10-25 13:49:38.253939 [INFO] Invalid rewrite directive: ExpiresByType application/javascript A30672000
2019-10-25 13:49:38.253944 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:49:38.253948 [INFO] Rewrite directive: <IfModule mod_headers.c> bypassed.
2019-10-25 13:49:38.253952 [INFO] Invalid rewrite directive: Header append Cache-Control "public, immutable"
2019-10-25 13:49:38.253957 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:49:38.253961 [INFO] Rewrite directive: <IfModule mod_deflate.c> bypassed.
2019-10-25 13:49:38.253969 [INFO] Invalid rewrite directive: <FilesMatch "\.(js|css)$">
2019-10-25 13:49:38.253974 [INFO] Invalid rewrite directive: SetOutputFilter DEFLATE
2019-10-25 13:49:38.253978 [INFO] Invalid rewrite directive: </FilesMatch>
2019-10-25 13:49:38.253982 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:49:38.253987 [INFO] Rewrite directive: <IfModule mod_authz_core.c> bypassed.
2019-10-25 13:49:38.253991 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-25 13:49:38.253996 [INFO] Invalid rewrite directive: Require all denied
2019-10-25 13:49:38.254000 [INFO] Invalid rewrite directive: </Files>
2019-10-25 13:49:38.254004 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:49:38.254009 [INFO] Rewrite directive: <IfModule !mod_authz_core.c> bypassed.
2019-10-25 13:49:38.254023 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-25 13:49:38.254027 [INFO] Invalid rewrite directive: Order deny,allow
2019-10-25 13:49:38.254031 [INFO] Invalid rewrite directive: Deny from all
2019-10-25 13:49:38.254035 [INFO] Invalid rewrite directive: </Files>
2019-10-25 13:49:38.254038 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-25 13:49:38.254044 [INFO] RewriteFile [/var/www/html/wp-content/cache/autoptimize/.htaccess] parsed, return 0.
 
#5
Hi

Seems no core file anymore. Do update this post if "Sometimes OLS stops working " happens again.

Best
Hi, thank you for answer, I rolled it back to 1.4.50, seems main problem is
Code:
No request delivery notification has been received from LSAPI application, possible dead lock
And it hard to get why it happening. May be try turn on debug logging for OLS?
 
#7
Hello again!

I upgraded OLS to 1.5.7 again and seems core file created again.

Here piece of log:
2019-10-31 14:22:34.156570 [WARN] [T0 void EvtcbQue::run()] called with pObj 0x29eb930 pObj->m_pSession NULL not allowed! SKIPPING
2019-10-31 14:22:35.091083 [WARN] [T0 void EvtcbQue::run()] called with pObj 0x2ab3860 pObj->m_pSession NULL not allowed! SKIPPING
2019-10-31 14:22:35.878132 [WARN] [T0 void EvtcbQue::run()] called with pObj 0x29b28d0 pObj->m_pSession NULL not allowed! SKIPPING
2019-10-31 14:38:10.212909 [INFO] [70.42.131.187:33912:HTTP2-1#Example] [REWRITE] detect external loop redirection with target URL: /wp-content/uploads/font/reg-font.woff, skip.
2019-10-31 14:38:10.213055 [INFO] [70.42.131.187:33912:HTTP2-1#Example] [REWRITE] detect external loop redirection with target URL: /wp-content/uploads/font/reg-font.woff, skip.
2019-10-31 15:07:01.656297 [NOTICE] [AutoRestarter] child process with pid=5620 received signal=11, a core file is created!
2019-10-31 15:07:01.656346 [NOTICE] [*****] Debug version running, will create core file.
2019-10-31 15:07:03.994784 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 5620 !
2019-10-31 15:07:04.000440 [NOTICE] [AutoRestarter] new child process with pid=6650 is forked!
2019-10-31 15:07:04.001427 [NOTICE] [child: 6650] Successfully change current user to www-data
2019-10-31 15:07:04.001465 [NOTICE] Child: 6650] Core dump is enabled.
2019-10-31 15:07:04.001637 [NOTICE] [Child: 6650] Setup swapping space...
2019-10-31 15:07:04.001772 [NOTICE] [Child: 6650] LiteSpeed/1.5.7 Open
module versions:
modpagespeed 2.2-1.11.33.4
cache 1.61
modinspector 1.1
uploadprogress LSIAPI_VERSION_STRING
mod_security 1.1
starts successfully!
2019-10-31 15:07:05.262373 [INFO] Rewrite directive: <IfModule mod_expires.c> bypassed.
2019-10-31 15:07:05.262435 [INFO] Invalid rewrite directive: ExpiresActive On
2019-10-31 15:07:05.262450 [INFO] Invalid rewrite directive: ExpiresByType text/css A30672000
2019-10-31 15:07:05.262465 [INFO] Invalid rewrite directive: ExpiresByType text/javascript A30672000
2019-10-31 15:07:05.262479 [INFO] Invalid rewrite directive: ExpiresByType application/javascript A30672000
2019-10-31 15:07:05.262507 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-31 15:07:05.262520 [INFO] Rewrite directive: <IfModule mod_headers.c> bypassed.
2019-10-31 15:07:05.262533 [INFO] Invalid rewrite directive: Header append Cache-Control "public, immutable"
2019-10-31 15:07:05.262546 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-31 15:07:05.262559 [INFO] Rewrite directive: <IfModule mod_deflate.c> bypassed.
2019-10-31 15:07:05.262571 [INFO] Invalid rewrite directive: <FilesMatch "\.(js|css)$">
2019-10-31 15:07:05.262584 [INFO] Invalid rewrite directive: SetOutputFilter DEFLATE
2019-10-31 15:07:05.262596 [INFO] Invalid rewrite directive: </FilesMatch>
2019-10-31 15:07:05.262609 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-31 15:07:05.262622 [INFO] Rewrite directive: <IfModule mod_authz_core.c> bypassed.
2019-10-31 15:07:05.262634 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-31 15:07:05.262647 [INFO] Invalid rewrite directive: Require all denied
2019-10-31 15:07:05.262659 [INFO] Invalid rewrite directive: </Files>
2019-10-31 15:07:05.262672 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-31 15:07:05.262684 [INFO] Rewrite directive: <IfModule !mod_authz_core.c> bypassed.
2019-10-31 15:07:05.262697 [INFO] Invalid rewrite directive: <Files *.php>
2019-10-31 15:07:05.262721 [INFO] Invalid rewrite directive: Order deny,allow
2019-10-31 15:07:05.262733 [INFO] Invalid rewrite directive: Deny from all
2019-10-31 15:07:05.262751 [INFO] Invalid rewrite directive: </Files>
2019-10-31 15:07:05.262763 [INFO] Rewrite directive: </IfModule> bypassed.
2019-10-31 15:07:05.262777 [INFO] RewriteFile [/var/www/html/wp-content/cache/autoptimize/.htaccess] parsed, return 0.
2019-10-31 15:07:25.877435 [NOTICE] [AutoRestarter] child process with pid=6650 received signal=11, a core file is created!
2019-10-31 15:07:25.877467 [NOTICE] [*****] Debug version running, will create core file.
2019-10-31 15:07:27.373093 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 6650 !
2019-10-31 15:07:27.473729 [NOTICE] [AutoRestarter] new child process with pid=6678 is forked!
2019-10-31 15:07:27.474938 [NOTICE] [child: 6678] Successfully change current user to www-data
2019-10-31 15:07:27.474990 [NOTICE] Child: 6678] Core dump is enabled.
2019-10-31 15:07:27.475097 [NOTICE] [Child: 6678] Setup swapping space...
2019-10-31 15:07:27.475253 [NOTICE] [Child: 6678] LiteSpeed/1.5.7 Open
 

Pong

Administrator
#10
You can check if /tmp/lshttpd/bak_core/core.* , if so, tmp root login should be good enough since our developer will need to login to your server to investigate these core files.
 
Top