Openlitespeed listeners turned Red

Hello there,
Using Openlitespeed, Ubuntu 22.04,
All basic settings nothing tweaked musch excpet php memory limit and upload limit in cyberpanel.

Now coming to Issue, I was tweaking openlitespeed webadmin console settings. server configuration settings only. I hardly touched anything, I tried to tweak cache parameters in modules tab (server configuration>modules>cache parameters)

And then in Virtual Hosts Tab (mysite.com) i turned off Geo location and did graceful restart. Listener ports auto turned off…

This is not the 1st time. it happened multiple times and no matter what i do like restart, reload, kill, start server, It doesnt turn on. even after freeing the ports.

Now since i had bad experience multiple times in the past, I took a backup of httpd_config.conf before tweaking and i tried restoring old version of mine and restarted litepseed surpirsingly all listeners are turned on.

Unfortunately this is happening all versions of Ubuntu like 18.04, 20.04, 22.04 and on all openlitespeed version too, and that includes on last three cyberpanel versions too.

Is there any solution to this or any steps to get listeners turned on ? Or is it a bug ?

Hello @bgmsquad

Post the contents of /usr/local/lsws/logs/error.log after you reboot your server

At the end “No listener is available, stop server!”
was kept repeating until i restored old file and restarted.

2023-03-02 11:05:40.363358 [NOTICE] [958633] Server restart request from admin interface!
2023-03-02 11:05:40.363694 [NOTICE] [958635] Start shutting down gracefully …
2023-03-02 11:05:40.363769 [NOTICE] [958635] Event-loop lingering start.
2023-03-02 11:05:40.363881 [NOTICE] [958636] Start shutting down gracefully …
2023-03-02 11:05:40.363922 [NOTICE] [958636] Event-loop lingering start.
2023-03-02 11:05:40.365435 [NOTICE] [958633] Forked [958936] for graceful restart.
2023-03-02 11:05:40.365538 [NOTICE] [958633] Start passing listener sockets through forked child [958936].
2023-03-02 11:05:40.365589 [INFO] [958936] [UDP :7080] pass listener, copy fd 22 to 1011.
2023-03-02 11:05:40.365617 [INFO] [958936] [
:7080] Pass listener, copy fd 18 to 1010.
2023-03-02 11:05:40.365628 [INFO] [958936] [UDP [::]:443], SO_REUSEPORT #1, pass listener copy fd 17 to 1009.
2023-03-02 11:05:40.365638 [INFO] [958936] [UDP [::]:443], SO_REUSEPORT #2, pass listener copy fd 16 to 1008.
2023-03-02 11:05:40.365648 [INFO] [958936] [TCP [::]:443], SO_REUSEPORT #1, pass listener copy fd 15 to 1007.
2023-03-02 11:05:40.365657 [INFO] [958936] [TCP [::]:443], SO_REUSEPORT #2, pass listener copy fd 14 to 1006.
2023-03-02 11:05:40.365667 [INFO] [958936] [UDP *:443], SO_REUSEPORT #1, pass listener copy fd 13 to 1005.
2023-03-02 11:05:40.365676 [INFO] [958936] [UDP *:443], SO_REUSEPORT #2, pass listener copy fd 12 to 1004.
2023-03-02 11:05:40.365685 [INFO] [958936] [TCP *:443], SO_REUSEPORT #1, pass listener copy fd 11 to 1003.
2023-03-02 11:05:40.365694 [INFO] [958936] [TCP *:443], SO_REUSEPORT #2, pass listener copy fd 10 to 1002.
2023-03-02 11:05:40.365703 [INFO] [958936] [TCP :80], SO_REUSEPORT #1, pass listener copy fd 9 to 1001.
2023-03-02 11:05:40.365712 [INFO] [958936] [TCP :80], SO_REUSEPORT #2, pass listener copy fd 8 to 1000.
2023-03-02 11:05:40.365738 [NOTICE] [958936] Starting new instance: execute ‘/usr/local/lsws/bin/litespeed’.
2023-03-02 11:05:40.397025 [INFO] [config:server:basics] httpdWorkers: 2, Num of Processors: 2
2023-03-02 11:05:40.397082 [INFO] [config:server:basics] enableLVE: 0
2023-03-02 11:05:40.397093 [INFO] [config:server:basics] bubbleWrap: 0, cmd: ‘(null)’
2023-03-02 11:05:40.404955 [INFO] [PlainConf] [httpServerConfig:] start parsing file /usr/local/lsws/conf/httpd_config.conf
2023-03-02 11:05:40.404991 [INFO] [PlainConf] [module:cache] RCS checkin config file /usr/local/lsws/conf/httpd_config.conf0 OK.
2023-03-02 11:05:40.405002 [INFO] [PlainConf] [module:cache] Finished parsing file /usr/local/lsws/conf/httpd_config.conf
2023-03-02 11:05:40.405014 [WARN] [PlainConf] [module:cache] parseFile find ‘{’ and ‘}’ do not match in the end of file /usr/local/lsws/conf/httpd_config.conf, rootTag httpServerConfig.
2023-03-02 11:05:40.405025 [INFO] [PlainConf] [module:cache] module [cache] add param [storagepath $SERVER_ROOT/cachedata]
2023-03-02 11:05:40.405035 [INFO] [PlainConf] [module:cache] module [cache] add param [checkprivatecache 1]
2023-03-02 11:05:40.405046 [INFO] [PlainConf] [module:cache] module [cache] add param [checkpubliccache 1]
2023-03-02 11:05:40.405053 [INFO] [PlainConf] [module:cache] module [cache] add param [maxcacheobjsize 10000000]
2023-03-02 11:05:40.405060 [INFO] [PlainConf] [module:cache] module [cache] add param [maxstaleage 200]
2023-03-02 11:05:40.405067 [INFO] [PlainConf] [module:cache] module [cache] add param [qscache 1]
2023-03-02 11:05:40.405074 [INFO] [PlainConf] [module:cache] module [cache] add param [reqcookiecache 1]
2023-03-02 11:05:40.405080 [INFO] [PlainConf] [module:cache] module [cache] add param [respcookiecache 1]
2023-03-02 11:05:40.405102 [INFO] [PlainConf] [module:cache] module [cache] add param [ignorereqcachectrl 1]
2023-03-02 11:05:40.405110 [INFO] [PlainConf] [module:cache] module [cache] add param [ignorerespcachectrl 0]
2023-03-02 11:05:40.405117 [INFO] [PlainConf] [module:cache] module [cache] add param [enablecache 0]
2023-03-02 11:05:40.405123 [INFO] [PlainConf] [module:cache] module [cache] add param [expireinseconds 3600]
2023-03-02 11:05:40.405130 [INFO] [PlainConf] [module:cache] module [cache] add param [enableprivatecache 0]
2023-03-02 11:05:40.405137 [INFO] [PlainConf] [module:cache] module [cache] add param [privateexpireinseconds 3600]
2023-03-02 11:05:40.405143 [INFO] [PlainConf] [module:cache] module [mod_security] add param [modsecurity on]
2023-03-02 11:05:40.405150 [INFO] [PlainConf] [module:cache] module [mod_security] add param [modsecurity_rules ] 2023-03-02 11:05:40.405157 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secdebugloglevel 0] 2023-03-02 11:05:40.405163 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secdebuglog /usr/local/lsws/logs/modsec.log] 2023-03-02 11:05:40.405170 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secauditengine on] 2023-03-02 11:05:40.405177 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secauditlogrelevantstatus "^(?:5|4(?!04))"] 2023-03-02 11:05:40.405183 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secauditlogparts AFH] 2023-03-02 11:05:40.405256 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secauditlogtype Serial] 2023-03-02 11:05:40.405264 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secauditlog /usr/local/lsws/logs/auditmodsec.log] 2023-03-02 11:05:40.405271 [INFO] [PlainConf] [module:cache] module [mod_security] add param [secruleengine On] 2023-03-02 11:05:40.405278 [INFO] [PlainConf] [module:cache] module [mod_security] add param [ ]
2023-03-02 11:05:40.405285 [INFO] [PlainConf] [module:cache] module [mod_security] add param [modsecurity_rules_file /usr/local/lsws/conf/modsec/rules.conf]
2023-03-02 11:05:40.405292 [INFO] [PlainConf] [module:cache] module [mod_security] add param [modsecurity_rules_file /usr/local/lsws/conf/modsec/owasp-modsecurity-crs-3.0-master/owasp-master.conf]
2023-03-02 11:05:40.405306 [NOTICE] Loading LiteSpeed/1.7.16 Open (lsquic 3.1.1, modgzip 1.1, cache 1.64, mod_security 1.4) BUILD (built: Thu Nov 17 16:18:46 UTC 2022) …
2023-03-02 11:05:40.405325 [NOTICE] Using [BoringSSL]
2023-03-02 11:05:40.406527 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7735, fd 6.
2023-03-02 11:05:40.406786 [NOTICE] [958951] [
:80] Recovering server socket, fd: 8
2023-03-02 11:05:40.406814 [NOTICE] [958951] Recv listener :80, copy fd 1000 to 8.
2023-03-02 11:05:40.406833 [NOTICE] [958951] [
:80] SO_REUSEPORT #2, recovering server socket, fd: 9.
2023-03-02 11:05:40.406847 [NOTICE] [958951] [
:443] Recovering server socket, fd: 10
2023-03-02 11:05:40.406861 [NOTICE] [958951] Recv listener :443, copy fd 1002 to 10.
2023-03-02 11:05:40.406876 [NOTICE] [958951] [
:443] SO_REUSEPORT #2, recovering server socket, fd: 11.
2023-03-02 11:05:40.406915 [NOTICE] [958951] [UDP :443] Recovering server socket, SO_REUSEPORT #2, fd: 13
2023-03-02 11:05:40.406940 [NOTICE] [958951] [[::]:443] Recovering server socket, fd: 14
2023-03-02 11:05:40.406961 [NOTICE] [958951] Recv listener [::]:443, copy fd 1006 to 14.
2023-03-02 11:05:40.406980 [NOTICE] [958951] [[::]:443] SO_REUSEPORT #2, recovering server socket, fd: 15.
2023-03-02 11:05:40.407018 [NOTICE] [958951] [UDP [::]:443] Recovering server socket, SO_REUSEPORT #2, fd: 17
2023-03-02 11:05:40.407033 [NOTICE] [958951] [
:7080] Recovering server socket, fd: 18
2023-03-02 11:05:40.407047 [NOTICE] [958951] Recv listener *:7080, copy fd 1010 to 18.
2023-03-02 11:05:40.407085 [NOTICE] [958951] chroot is disabled.
2023-03-02 11:05:40.407101 [INFO] [958951] old priority: 0, new priority: 0
2023-03-02 11:05:40.409534 [INFO] [958951] setuid is allowed in Ext Apps
2023-03-02 11:05:40.409976 [NOTICE] [958951] [PID: 958951]: forked cgid: 958952
2023-03-02 11:05:40.410281 [INFO] [958951] Add QUIC.cloud IPs from admin/conf/quic-cloud-ips to trusted ACL …
2023-03-02 11:05:40.410460 [INFO] [958951] Add CloudFlare Subnets to trusted ACL …
2023-03-02 11:05:40.410571 [INFO] [958951] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2023-03-02 11:05:40.411023 [INFO] [958951] [PlainConf] [adminConfig:] Finished parsing file /usr/local/lsws/admin/conf/admin_config.conf
2023-03-02 11:05:40.411313 [WARN] [958951] [config:server:tuning] invalid value of :1048576, use default=4096
2023-03-02 11:05:40.411812 [INFO] [958951] QuicEngine::init(), pid: 958951, log level [warn].
2023-03-02 11:05:40.412600 [INFO] [958951] [Module: modcompress 1.1] has been initialized successfully
2023-03-02 11:05:40.412788 [INFO] [958951] [Module: moddecompress 1.1] has been initialized successfully
2023-03-02 11:05:40.413030 [INFO] [958951] [Module: cache 1.64] has been initialized successfully
2023-03-02 11:05:40.414074 [NOTICE] [958951] Reuse current listener [adminListener].
2023-03-02 11:05:40.414180 [WARN] [958951] [config:server:listener] No listener is available for normal virtual host!
2023-03-02 11:05:40.414196 [NOTICE] [958951] The maximum number of file descriptor limit is set to 50000.
2023-03-02 11:05:40.415315 [NOTICE] [958951] [config:server:epsr:lsphp] Possible mis-configuration: ‘Instances’=8, ‘Max connections’=10, unless one Fast CGI process is capable of handling multiple connections, you should set ‘Instances’ greater or equal to ‘Max connections’.
2023-03-02 11:05:40.415524 [NOTICE] [958951] [ZConfManager] No VHosts added, do not send!
2023-03-02 11:05:40.415537 [NOTICE] [958951] Stop listener *:443, fd 10.
2023-03-02 11:05:40.415567 [NOTICE] [958951] Stop listener [::]:443, fd 14.
2023-03-02 11:05:40.415582 [NOTICE] [958951] Stop listener *:80, fd 8.
2023-03-02 11:05:40.416330 [NOTICE] [958951] Instance is ready for service. m_fdCmd 8, m_fdAdmin 6.
2023-03-02 11:05:40.416721 [NOTICE] [958951] [AutoRestarter] new child process with pid=958953 is forked!
2023-03-02 11:05:40.417058 [NOTICE] [958951] [AutoRestarter] new child process with pid=958954 is forked!
2023-03-02 11:05:40.417166 [INFO] [958953] [UDP:0.0.0.0:7080] initPacketsIn: allocated 100 packets
2023-03-02 11:05:40.417355 [NOTICE] [958953] AIO is not supported on this machine!
2023-03-02 11:05:40.417396 [NOTICE] [958953] Successfully change current user to nobody
2023-03-02 11:05:40.417408 [NOTICE] [958953] Core dump is enabled.
2023-03-02 11:05:40.417466 [INFO] [958953] [lsphp]: locked pid file [/tmp/lshttpd/lsphp.sock.pid].
2023-03-02 11:05:40.417479 [INFO] [958953] [lsphp] remove unix socket for detached process: /tmp/lshttpd/lsphp.sock
2023-03-02 11:05:40.417553 [NOTICE] [958953] [LocalWorker::workerExec] Config[lsphp]: suExec uid 65534 gid 65534 cmd /usr/local/lsws/lsphp74/bin/lsphp, final uid 65534 gid 65534, flags: 0.
2023-03-02 11:05:40.417860 [NOTICE] [958953] [lsphp] add child process pid: 958955
2023-03-02 11:05:40.417954 [INFO] [958953] [lsphp]: unlocked pid file [/tmp/lshttpd/lsphp.sock.pid].
2023-03-02 11:05:40.417905 [NOTICE] [958954] Stop listener *:7080, fd 18.
2023-03-02 11:05:40.417979 [NOTICE] [958953] Setup swapping space…
2023-03-02 11:05:40.418061 [NOTICE] [958953] LiteSpeed/1.7.16 Open starts successfully!
2023-03-02 11:05:40.418226 [NOTICE] [958954] AIO is not supported on this machine!
2023-03-02 11:05:40.418293 [NOTICE] [958954] Successfully change current user to nobody
2023-03-02 11:05:40.418310 [NOTICE] [958954] Core dump is enabled.
2023-03-02 11:05:40.418341 [ERROR] [958954] No listener is available, stop server!
2023-03-02 11:05:40.418354 [NOTICE] [958954] HttpServerImpl::releaseAll called.
2023-03-02 11:05:40.419795 [NOTICE] [958951] [AutoRestarter] cleanup children processes and unix sockets belong to process 958954 !
2023-03-02 11:05:40.465781 [NOTICE] [958636] New litespeed process is ready, stops listeners
2023-03-02 11:05:40.465842 [INFO] [958636] Stop all listeners.
2023-03-02 11:05:40.465850 [NOTICE] [958636] Stop listener *:80, fd 9.
2023-03-02 11:05:40.465863 [NOTICE] [958636] Stop listener *:443, fd 11.
2023-03-02 11:05:40.465872 [NOTICE] [958636] Stop listener [::]:443, fd 15.
2023-03-02 11:05:40.465895 [NOTICE] [958636] Event-loop lingering done.
2023-03-02 11:05:40.465901 [NOTICE] [958636] Shut down successfully!
2023-03-02 11:05:40.465909 [NOTICE] [958636] HttpServerImpl::releaseAll called.
2023-03-02 11:05:40.469273 [NOTICE] [958635] New litespeed process is ready, stops listeners
2023-03-02 11:05:40.469293 [INFO] [958635] Stop all listeners.
2023-03-02 11:05:40.469298 [NOTICE] [958635] Stop listener *:80, fd 8.
2023-03-02 11:05:40.469306 [NOTICE] [958635] Stop listener *:443, fd 10.
2023-03-02 11:05:40.469312 [NOTICE] [958635] Stop listener [::]:443, fd 14.
2023-03-02 11:05:40.469317 [NOTICE] [958635] Stop listener *:7080, fd 18.
2023-03-02 11:05:40.469534 [NOTICE] [958633] [AutoRestarter] cleanup children processes and unix sockets belong to process 958636 !
2023-03-02 11:05:40.519982 [NOTICE] [958951] [AutoRestarter] child process with pid=958954 exited with status=0!
2023-03-02 11:05:40.520422 [NOTICE] [958951] [AutoRestarter] new child process with pid=958956 is forked!
2023-03-02 11:05:40.521336 [NOTICE] [958956] Stop listener *:7080, fd 18.
2023-03-02 11:05:40.521700 [NOTICE] [958956] AIO is not supported on this machine!
2023-03-02 11:05:40.521782 [NOTICE] [958956] Successfully change current user to nobody
2023-03-02 11:05:40.521806 [NOTICE] [958956] Core dump is enabled.

What about the results of running command service lsws status

All the time it was active. Even when listerens where stopped it was active.

If it helps… At the time of restoring httpd. I’ve noticed the difference between original file and corrupted file.

In corrupted file, all text is turned into small letters and at places spaces were removed. Similar issue was reported earlierin community but he had unknown characters in httpd file. I believe Something is happening while tweaking webadmin console.