litespeed is not running and Can not Login at WebAdmin, but CyberPanel is OK

#1
CyberPanel is Ok ,and can Login in. But WebAdmin can not . And LiteSpeed is always not running.
Hope you can help me to solve it. Many time to reboot , it is not useful.

# /usr/local/lsws/bin/lswsctrl reload
[ERROR] litespeed is not running.

Command is not useful:
systemctl restart lsws
systemctl restart lscpd

Ubantu Version:
# uname -a
Linux C20210814185128 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Vertion of OpenLiteSpeed:
# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.7.15 Open (BUILD built: Tue Feb 22 16:27:52 UTC 2022)
module versions:
lsquic 3.0.4
modgzip 1.1
cache 1.64
mod_security 1.4

Status of Lshttpd.service:
# systemctl status lshttpd.service
● lshttpd.service - OpenLiteSpeed HTTP Server
Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
Active: activating (start) since Tue 2022-04-19 22:33:05 CST; 2s ago
Cntrl PID: 5980 (lswsctrl)
CGroup: /system.slice/lshttpd.service
├─5980 /bin/sh /usr/local/lsws/bin/lswsctrl start
├─6005 sleep 2
└─6024 openlitespeed (lscgid)

Apr 19 22:33:05 C20210814185128 systemd[1]: Starting OpenLiteSpeed HTTP Server...
Apr 19 22:33:06 C20210814185128 lswsctrl[5980]: [OK] litespeed: pid=5999.
Apr 19 22:33:07 C20210814185128 lswsctrl[5937]: [OK] litespeed: pid=6021.

~# journalctl -xe
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit lshttpd.service has exited.
--
-- The process' exit code is 'dumped' and its exit status is 11.
Apr 19 22:33:29 C20210814185128 systemd[1]: lshttpd.service: Failed with result 'core-dump'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit lshttpd.service has entered the 'failed' state with result 'core-dump'.
Apr 19 22:33:31 C20210814185128 kernel: [UFW BLOCK] IN=ens17 OUT= MAC=64:3b:0f:00:07:ad:00:52:56:00:00:22:08:00 SRC=92.255.85.135 DST=10.13.68.2 LEN=60 TOS=0x00 PREC=0x00 TTL=56 ID=32978 DF PROTO=TCP SPT=39772 DPT=22 WINDOW=42340 RES=0x00 S>
Apr 19 22:33:34 C20210814185128 systemd[1]: lshttpd.service: Scheduled restart job, restart counter is at 3.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit lshttpd.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Apr 19 22:33:34 C20210814185128 systemd[1]: Stopped OpenLiteSpeed HTTP Server.
-- Subject: A stop job for unit lshttpd.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit lshttpd.service has finished.
--
-- The job identifier is 6074 and the job result is done.
Apr 19 22:33:34 C20210814185128 systemd[1]: Starting OpenLiteSpeed HTTP Server...
-- Subject: A start job for unit lshttpd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit lshttpd.service has begun execution.
--
-- The job identifier is 6074.
Apr 19 22:33:34 C20210814185128 lswsctrl[6167]: [OK] litespeed: pid=6200.
Apr 19 22:33:34 C20210814185128 kernel: litespeed[6200]: segfault at 8 ip 00000000004d66e4 sp 00007ffdd7e37fa8 error 4 in openlitespeed[400000+787000]
Apr 19 22:33:34 C20210814185128 kernel: Code: 07 f0 48 0f c1 14 f0 e9 0c ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 8b 57 34 48 8b 46 48 66 85 d2 48 8b 48 70 78 50 44 0f bf c2 <44> 3b 41 08 7d 46 41 56 41 55 48 0f bf c2 41 54 55 53 31 db 48 81



The Error Log is follow:

# tail -100 /usr/local/lsws/logs/error.log
bypassed. 22:39:35.188455 [INFO] [8839] Rewrite directive: </IfModule>
2022-04-19 22:39:35.188464 [INFO] [8839] RewriteFile [.htaccess] parsed, return 0.
2022-04-19 22:39:35.188472 [INFO] [8839] [config:server:vhosts:vhost:Example] config context /blocked/.
2022-04-19 22:39:35.188491 [INFO] [8839] [config:server:vhosts:vhost:Example] config context /cgi-bin/.
2022-04-19 22:39:35.188513 [INFO] [8839] [config:server:vhosts:vhost:Example] config context /docs/.
2022-04-19 22:39:35.188532 [INFO] [8839] [config:server:vhosts:vhost:Example] config context /phpinfo.php.
2022-04-19 22:39:35.188726 [INFO] [8839] [config:server:vhosts:vhost:Example] config context /protected/.
2022-04-19 22:39:38.219419 [INFO] [config:server:basics] httpdWorkers: 2, Num of Processors: 2
2022-04-19 22:39:38.219454 [INFO] [config:server:basics] enableLVE: 0
2022-04-19 22:39:38.219462 [INFO] [config:server:basics] bubbleWrap: 0, cmd: '(null)'
2022-04-19 22:39:38.227088 [INFO] [PlainConf] [httpServerConfig:] start parsing file /usr/local/lsws/conf/httpd_config.conf
2022-04-19 22:39:38.227107 [INFO] [PlainConf] [httpServerConfig:] Finished parsing file /usr/local/lsws/conf/httpd_config.conf
2022-04-19 22:39:38.227113 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkprivatecache 1]
2022-04-19 22:39:38.227119 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [checkpubliccache 1]
2022-04-19 22:39:38.227124 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxcacheobjsize 10000000]
2022-04-19 22:39:38.227139 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [maxstaleage 200]
2022-04-19 22:39:38.227146 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [qscache 1]
2022-04-19 22:39:38.227151 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [reqcookiecache 1]
2022-04-19 22:39:38.227156 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [respcookiecache 1]
2022-04-19 22:39:38.227161 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorereqcachectrl 1]
2022-04-19 22:39:38.227166 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [ignorerespcachectrl 0]
2022-04-19 22:39:38.227172 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enablecache 0]
2022-04-19 22:39:38.227177 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [expireinseconds 3600]
2022-04-19 22:39:38.227182 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [enableprivatecache 0]
2022-04-19 22:39:38.227187 [INFO] [PlainConf] [httpServerConfig:] module [cache] add param [privateexpireinseconds 3600]
2022-04-19 22:39:38.227192 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [modsecurity on]
2022-04-19 22:39:38.227197 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [modsecurity_rules `]
2022-04-19 22:39:38.227202 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secdebugloglevel 3]
2022-04-19 22:39:38.227207 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secdebuglog /usr/local/lsws/logs/modsec.log]
2022-04-19 22:39:38.227212 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secauditengine on]
2022-04-19 22:39:38.227217 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secauditlogrelevantstatus "^(?:5|4(?!04))"]
2022-04-19 22:39:38.227222 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secauditlogparts ABCIJDEFHZ]
2022-04-19 22:39:38.227227 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secauditlogtype Serial]
2022-04-19 22:39:38.227232 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secauditlog /usr/local/lsws/logs/auditmodsec.log]
2022-04-19 22:39:38.227237 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secruleengine On]
2022-04-19 22:39:38.227242 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secrequestbodyaccess On]
2022-04-19 22:39:38.227248 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [secresponsebodyaccess On]
2022-04-19 22:39:38.227253 [INFO] [PlainConf] [httpServerConfig:] module [mod_security] add param [` ]
2022-04-19 22:39:38.227268 [NOTICE] Loading LiteSpeed/1.7.15 Open (lsquic 3.0.4, modgzip 1.1, cache 1.64, mod_security 1.4) BUILD (built: Tue Feb 22 16:27:52 UTC 2022) ...
2022-04-19 22:39:38.227294 [NOTICE] Using [BoringSSL]
2022-04-19 22:39:38.228171 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7423, fd 6.
2022-04-19 22:39:38.228467 [NOTICE] [8860] chroot is disabled.
2022-04-19 22:39:38.228487 [INFO] [8860] old priority: 0, new priority: 0
2022-04-19 22:39:38.228686 [INFO] [8860] [config:server:basics2] For better obscurity, server version number is hidden in the response header.
2022-04-19 22:39:38.231075 [INFO] [8860] setuid is allowed in Ext Apps
2022-04-19 22:39:38.231408 [NOTICE] [8860] [PID: 8860]: forked cgid: 8863
2022-04-19 22:39:38.231732 [INFO] [8860] Add QUIC.cloud IPs from admin/conf/quic-cloud-ips to trusted ACL ...
2022-04-19 22:39:38.231893 [INFO] [8860] Add CloudFlare Subnets to trusted ACL ...
2022-04-19 22:39:38.233620 [INFO] [8860] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2022-04-19 22:39:38.236556 [INFO] [8860] [PlainConf] [adminConfig:] Finished parsing file /usr/local/lsws/admin/conf/admin_config.conf
2022-04-19 22:39:38.237418 [INFO] [8860] QuicEngine::init(), pid: 8860, log level [warn].
2022-04-19 22:39:38.243348 [INFO] [8860] [Module:mod_security] ParseConfig entry, level 1, Mod_Security v3.0.5
2022-04-19 22:39:38.244281 [INFO] [8860] [Module:mod_security] Enable flag interpreted as 1
2022-04-19 22:39:38.244298 [INFO] [8860] [Module:mod_security] setSecRule value:
secdebugloglevel 3
secdebuglog /usr/local/lsws/logs/modsec.log
secauditengine on
secauditlogrelevantstatus "^(?:5|4(?!04))"
secauditlogparts ABCIJDEFHZ
secauditlogtype Serial
secauditlog /usr/local/lsws/logs/auditmodsec.log
secruleengine On
secrequestbodyaccess On
secresponsebodyaccess On
, type: 1
2022-04-19 22:39:38.245088 [INFO] [8860] [Module: modcompress 1.1] has been initialized successfully
2022-04-19 22:39:38.245214 [INFO] [8860] [Module: moddecompress 1.1] has been initialized successfully
2022-04-19 22:39:38.245370 [INFO] [8860] [Module: cache 1.64] has been initialized successfully
2022-04-19 22:39:38.245554 [INFO] [8860] [Module: mod_security mod_security 1.4] has been initialized successfully
2022-04-19 22:39:38.246864 [NOTICE] [8860] Created new Listener [adminListener].
2022-04-19 22:39:38.246933 [NOTICE] [8860] [*:7080] enabled QUIC UDP
2022-04-19 22:39:38.247017 [INFO] [8860] [*:80] Enable SO_REUSEPORT .
2022-04-19 22:39:38.247031 [NOTICE] [8860] [*:80] Add SO_REUSEPORT socket, #1 to #2
2022-04-19 22:39:38.247072 [NOTICE] [8860] Created new Listener [Default].
2022-04-19 22:39:38.247689 [INFO] [8860] [*:443] Enable SO_REUSEPORT .
2022-04-19 22:39:38.247711 [NOTICE] [8860] [*:443] Add SO_REUSEPORT socket, #1 to #2
2022-04-19 22:39:38.247780 [NOTICE] [8860] Created new Listener [SSL].
2022-04-19 22:39:38.247803 [INFO] [8860] [*:443] Enable SO_REUSEPORT .
2022-04-19 22:39:38.247845 [NOTICE] [8860] [UDP *:443] SO_REUSEPORT #1 socket started, fd: 39
2022-04-19 22:39:38.247868 [NOTICE] [8860] [UDP *:443] SO_REUSEPORT #2 socket started, fd: 40
2022-04-19 22:39:38.247874 [NOTICE] [8860] [*:443] enabled QUIC UDP
2022-04-19 22:39:38.247902 [INFO] [8860] [*:8089] Enable SO_REUSEPORT .
2022-04-19 22:39:38.247915 [NOTICE] [8860] [*:8089] Add SO_REUSEPORT socket, #1 to #2
2022-04-19 22:39:38.247959 [NOTICE] [8860] Created new Listener [8089].
2022-04-19 22:39:38.247980 [NOTICE] [8860] The maximum number of file descriptor limit is set to 50000.
2022-04-19 22:39:38.251036 [INFO] [8860] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/Example/vhconf.conf
2022-04-19 22:39:38.254686 [INFO] [8860] [PlainConf] [virtualHostConfig:] Finished parsing file /usr/local/lsws/conf/vhosts/Example/vhconf.conf
2022-04-19 22:39:38.254712 [INFO] [8860] [PlainConf] [context:/] rewrite [] add rules [rewritefile .htaccess]
2022-04-19 22:39:38.254726 [INFO] [8860] [PlainConf] [module:mod_security] urlfilter [/wp-content/litespeed/css/] add param [secruleengine Off]
2022-04-19 22:39:38.254734 [INFO] [8860] [PlainConf] [module:mod_security] urlfilter [/wp-content/litespeed/js/] add param [secruleengine Off]
2022-04-19 22:39:38.255714 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /.
bypassed. 22:39:38.255788 [INFO] [8860] Rewrite directive: <IfModule mod_rewrite.c>
2022-04-19 22:39:38.255801 [INFO] [8860] Invalid rewrite directive: Options +FollowSymlinks -Multiviews
bypassed. 22:39:38.255863 [INFO] [8860] Rewrite directive: </IfModule>
2022-04-19 22:39:38.255882 [INFO] [8860] RewriteFile [.htaccess] parsed, return 0.
2022-04-19 22:39:38.255918 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /blocked/.
2022-04-19 22:39:38.255946 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /cgi-bin/.
2022-04-19 22:39:38.255982 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /docs/.
2022-04-19 22:39:38.256018 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /phpinfo.php.
2022-04-19 22:39:38.256360 [INFO] [8860] [config:server:vhosts:vhost:Example] config context /protected/.
 
#2
# /usr/local/lsws/bin/lswsctrl status
[ERROR] litespeed is not running.
# /usr/local/lsws/bin/lswsctrl stop
[OK] litespeed: stopped.
# /usr/local/lsws/bin/lswsctrl start
[OK] litespeed: pid=67279.
[OK] litespeed: pid=67317.
# /usr/local/lsws/bin/lswsctrl status
[ERROR] litespeed is not running.
 
#7
I too have been having this problem regularly, OpenLiteSpeed will be running for days, or sometime weeks at a time and then I'll get uptime notices that all of the websites are down. The CyberPanel on port 8090 is running but the OpenLiteSpeed web panel, on port 7080 is down. I'll attempt to restart LiteSpeed from within CyberPanel but it doesn't resolve the issue and I have no solution but to reboot my entire server instance.
 
#11
Hi,
Has anyone figured out what was causing that?
I am experiencing a similar issue, with error messages such as the one below in the syslog:

litespeed[2592]: segfault at 8 ip 00000000005d6632 sp 00007ffd4327dee0 error 4 in openlitespeed[400000+7f4000]

And the same thing happened as at @timnolte. I couldn't even reboot the entire server. I had to power it off through the cloud console, which is similar as pressing the power button for a long time.

It seems strange that this would cause such an issue, especially preventing the whole server from rebooting itself. But this is the only such error message I found in any logs.
 
Last edited:

Cold-Egg

Administrator
#12
Hi @papa zulu
When the issue happens, please make sure you are using latest OLS version, and check if the server has enough CPU/Memory and disk space. If all looks fine, raise a ticket with us.
 
Top