OLS not starting

#1
Hi guys,

I had applied recommended settings for OLS web server. N that it stopped to start. Here's the status error. Preciate that who can help asap coz the server is down.

Code:
● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2020-09-13 19:01:53 UTC; 6min ago
    Process: 630 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
   Main PID: 679 (code=exited, status=1/FAILURE)

Sep 13 19:01:48 website-vm systemd[1]: Starting OpenLiteSpeed HTTP Server...
Sep 13 19:01:48 website-vm lswsctrl[630]: [OK] litespeed: pid=679.
Sep 13 19:01:51 website-vm systemd[1]: Started OpenLiteSpeed HTTP Server.
Sep 13 19:01:53 website-vm systemd[1]: lshttpd.service: Main process exited, code=exited, status=1/FAILURE
Sep 13 19:01:53 website-vm systemd[1]: lshttpd.service: Failed with result 'exit-code'.
I tried to kill PID 679 or 630 which are not responding.
 

Cold-Egg

Administrator
#2
Any more error shows if you run follow commands?
Code:
/usr/local/lsws/bin/lswsctrl stop
/usr/local/lsws/bin/lswsctrl start
Any output from ps?
Code:
ps axu | grep -i http
 
#3
Code:
root@web-vm:~# /usr/local/lsws/bin/lswsctrl stop
[ERROR] litespeed is not running.
root@web-vm:~# /usr/local/lsws/bin/lswsctrl start
[OK] litespeed: pid=2226.
[OK] litespeed: pid=2266.
root@web-vm:~# ps axu | grep -i http
root        2274  0.0  0.1   8156   736 pts/0    S+   10:02   0:00 grep --color=auto -i http
 
#4
Code:
root@web-vm:/dev/shm/ols# service lsws restart
Job for lshttpd.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status lshttpd.service" and "journalctl -xe" for details.
Code:
root@web-vm:/dev/shm/ols# systemctl status lshttpd.service
● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: protocol) since Mon 2020-09-14 10:39:27 UTC; 58s ago
    Process: 3178 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)

Sep 14 10:39:25 web-vm systemd[1]: Starting OpenLiteSpeed HTTP Server...
Sep 14 10:39:25 web-vm lswsctrl[3178]: [OK] Send SIGUSR1 to 3104
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Failed with result 'protocol'.
Sep 14 10:39:27 web-vm systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
lines 1-11/11 (END)
Code:
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit run-3202.scope has finished successfully.
--
-- The job identifier is 1349.
Sep 14 10:39:25 web-vm systemd[1]: run-3202.scope: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-3202.scope has successfully entered the 'dead' state.
Sep 14 10:39:25 web-vm systemd[1]: Removed slice User Slice of UID 65534.
-- Subject: A stop job for unit user-65534.slice has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit user-65534.slice has finished.
--
-- The job identifier is 1354 and the job result is done.
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 10:39:27 web-vm systemd[1]: lshttpd.service: Failed with result 'protocol'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit lshttpd.service has entered the 'failed' state with result 'protocol'.
Sep 14 10:39:27 web-vm systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
-- Subject: A start job for unit lshttpd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit lshttpd.service has finished with a failure.
--
-- The job identifier is 1272 and the job result is failed.
Sep 14 10:39:31 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=94.102.49.191 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=>
Sep 14 10:40:12 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=193.27.229.47 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=>
Sep 14 10:40:16 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=103.145.13.12 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=>
Sep 14 10:40:19 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:40:21 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:40:27 web-vm sshd[3230]: Unable to negotiate with 222.186.173.238 port 61850: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1>
Sep 14 10:41:08 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=185.176.27.102 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL>
Sep 14 10:41:12 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=185.176.27.14 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=>
Sep 14 10:41:17 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:41:17 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:41:17 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:41:17 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:41:21 web-vm systemd-resolved[542]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feat>
Sep 14 10:41:48 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=45.129.33.82 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=2>
Sep 14 10:41:51 web-vm kernel: [UFW BLOCK] IN=ens4 OUT= MAC=42:01:0a:9c:00:2d:42:01:0a:9c:00:01:08:00 SRC=45.129.33.16 DST=10.156.0.45 LEN=40 TOS=0x00 PREC=0x00 TTL=2>
lines 2907-2956/2956 (END)
 
#5
I forgat to add that, I updated the ubuntu 18.04 lts before applying the OLS settings. Do you think its related with it?

Now I disabled the firewall temporarily. Now I can access the backend of OLS and the domain is online. Enabled the firewall. Backend frontend still available.

However terminal shows its inactive.

Code:
root@web-vm:~# systemctl restart lsws

Job for lshttpd.service failed because the service did not take the steps required by its unit configuration.

See "systemctl status lshttpd.service" and "journalctl -xe" for details.
or


Code:
root@web-vm:~# service lsws status
● lshttpd.service - OpenLiteSpeed HTTP Server
     Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: protocol) since Mon 2020-09-14 12:59:36 UTC; 1min 44s ago
    Process: 8286 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)

Sep 14 12:59:34 web-vm systemd[1]: Starting OpenLiteSpeed HTTP Server...
Sep 14 12:59:34 web-vm lswsctrl[8286]: [OK] Send SIGUSR1 to 7910
Sep 14 12:59:36 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 12:59:36 web-vm systemd[1]: lshttpd.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshtt>
Sep 14 12:59:36 web-vm systemd[1]: lshttpd.service: Failed with result 'protocol'.
Sep 14 12:59:36 web-vm systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
lines 1-11/11 (END)
 
Top