Hello,
I think I've messed up my config: I want to host a litte webpage, so installed apache2, but apparently thats not the appropriate way to go, because apache2 "wins over" nginx, and as a result I've lost access temporarily to the Webgui. But thats another problem.
My problem now is after apache2 uninstall... nginx uninstall... nginx reinstall, I am not able to access OMV web gui in port 80.
So I have switched manually the web control panel (option 2 in omv-firstaid ) to port 8080 and now, if I change it back to port : 80, I loose access to omg gui, but also nginx refuses to start.
Somebody can help me to find out if I've broken my system?
# lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 17189 root 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17189 root 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17190 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17190 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17191 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17191 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17192 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17192 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17193 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17193 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17194 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17194 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
nginx 17195 www-data 8u IPv4 83922 0t0 TCP *:http (LISTEN)
nginx 17195 www-data 9u IPv6 83923 0t0 TCP *:http (LISTEN)
Plex\x20T 17435 plex 80u IPv4 99980 0t0 TCP helios64.home:44822->ec2-99-80-242-242.eu-west-1.compute.amazonaws.com:http (CLOSE_WAIT)
Plex\x20D 17437 plex 80u IPv4 99980 0t0 TCP helios64.home:44822->ec2-99-80-242-242.eu-west-1.compute.amazonaws.com:http (CLOSE_WAIT)
Alles anzeigen
After changing to port 80 in omv-firstaid :
# lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Plex\x20T 17435 plex 80u IPv4 99980 0t0 TCP helios64.home:44822->ec2-99-80-242-242.eu-west-1.compute.amazonaws.com:http (CLOSE_WAIT)
Plex\x20D 17437 plex 80u IPv4 99980 0t0 TCP helios64.home:44822->ec2-99-80-242-242.eu-west-1.compute.amazonaws.com:http (CLOSE_WAIT)
# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-11-01 20:07:31 CET; 45s ago
Docs: man:nginx(8)
Process: 23499 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 23500 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Nov 01 20:07:29 helios64 systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 01 20:07:29 helios64 nginx[23500]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:07:29 helios64 nginx[23500]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:07:30 helios64 nginx[23500]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:07:30 helios64 nginx[23500]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:07:31 helios64 nginx[23500]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:07:31 helios64 nginx[23500]: nginx: [emerg] still could not bind()
Nov 01 20:07:31 helios64 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 01 20:07:31 helios64 systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 01 20:07:31 helios64 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Alles anzeigen
So I stop Plex, in case its screwing things up, but:
# service plexmediaserver stop
root@helios64:~# lsof -i :80
root@helios64:~# service nginx start
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
And journalctl -xe shows several errors with : Nov 01 20:10:31 helios64 nginx[23714]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use), as well as:
# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-11-01 20:12:36 CET; 25s ago
Docs: man:nginx(8)
Process: 23760 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 23761 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Nov 01 20:12:33 helios64 systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 01 20:12:33 helios64 nginx[23761]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:12:33 helios64 nginx[23761]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:12:34 helios64 nginx[23761]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:12:34 helios64 nginx[23761]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:12:35 helios64 nginx[23761]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Nov 01 20:12:35 helios64 nginx[23761]: nginx: [emerg] still could not bind()
Nov 01 20:12:36 helios64 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 01 20:12:36 helios64 systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 01 20:12:36 helios64 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Alles anzeigen
If I change it back to, say, port 81, OMV Webgui appears in the browser.
Thank you
EDIT: After a while trying to restart the service, with OMV in port 8080, now my default webpage, in port 80 shows a 403 error.
Maybe I have some permissions problem?