The webgui worked perfectly before. and my nginx server is set to port 81, while my webgui config port is set to 80, so there shouldn't be a conflict. What is going on here?
WebGUI no longer accessible after getting Nginx up and running
-
-
Not wizards here. Why don’t you start looking at logs first. A simple syntax error in nginx configuration will bring the whole web server down.
-
Not wizards here. Why don’t you start looking at logs first. A simple syntax error in nginx configuration will bring the whole web server down.
sorry, forgot to mention that the nginx server works fine
What logs do i check?
-
Ok. Let’s start by describing what did you do then.
-
Ok. Let’s start by describing what did you do then.
Installed the nginx plugin, configured it to point to a shared folder, put it on port 81, it worked great, but all of a sudden the webgui on port 80 was no longer connectable from the browser. Changing the port of the webgui does not work either.
-
it worked great, but all of a sudden the webgui on port 80 was no longer connectable from the browser. Changing the port of the webgui does not work either.
Did nginx error came on the browser or said connection refused or any other error?Post the following commands outputs here
omv-confdbadm read conf.service.nginx.server
omv-confdbadm read conf.webadmin -
Did nginx error came on the browser or said connection refused or any other error?
Post the following commands outputs here
omv-confdbadm read conf.service.nginx.server
omv-confdbadm read conf.webadmin
root@raspberrypi:~# omv-confdbadm read conf.service.nginx.server
[{"public_directory": "public_html", "php_pool_ref": "", "server_name": "", "port": 81, "enable": true, "deny_htaccess": false, "php_enable": false, "ssl_port": 443, "ssl_enable": false, "php_use_default_config": true, "ssl_force": false, "large_client_header_buffers": 8, "sslcertificateref": "", "host_type": "port", "use_public_directory": true, "autoindex": true, "use_index_php": false, "port_default_server": true, "use_index": true, "log_enable": true, "sharedfolderref": "d45789b2-29ee-47e1-8f20-0315110f724b", "extra_options": "", "use_root": true, "uuid": "4402cbcc-0f33-44b0-80ff-3be40eb799cb", "use_index_html": true, "ssl_port_default_server": false}]root@raspberrypi:~# omv-confdbadm read conf.webadmin
{"timeout": 5, "sslcertificateref": "", "enablessl": false, "port": 80, "sslport": 443, "forcesslonly": false}
root@raspberrypi:~# -
That looks ok to me. What about the browser? What’s the error?
-
That looks ok to me. What about the browser? What’s the error?
-
Look like there is no server at port 80. Let me check a few things
cat /etc/nginx/sites-enabled/openmediavault-webui
ls -la /etc/nginx/sites-available
ss -tnpaHave you fiddle around with the omv firewall tab?
-
Look like there is no server at port 80. Let me check a few things
cat /etc/nginx/sites-enabled/openmediavault-webui
ls -la /etc/nginx/sites-available
ss -tnpaHave you fiddle around with the omv firewall tab?
root@raspberrypi:~# cat /etc/nginx/sites-enabled/openmediavault-webgui
server {
server_name openmediavault-webgui;
root /var/www/openmediavault;
index index.php;
autoindex off;
server_tokens off;
sendfile on;
large_client_header_buffers 4 32k;
client_max_body_size 25M;
error_log /var/log/nginx/openmediavault-webgui_error.log error;
access_log /var/log/nginx/openmediavault-webgui_access.log combined;
error_page 404 = /404.php;
location /404.html {
internal;
}
location /extjs6/ {
alias /usr/share/javascript/extjs6/;
expires 2d;
}
location ~ ^/(css|js|images)/ {
expires 2d;
}
location /favicon {
expires 14d;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm-openmediavault-webgui.sock;
fastcgi_index index.php;
fastcgi_read_timeout 60s;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
listen 80;
include /etc/nginx/openmediavault-webgui.d/*.conf;
}root@raspberrypi:~#ls -la /etc/nginx/sites-available
total 20
drwxr-xr-x 2 root root 4096 Oct 15 01:33 .
drwxr-xr-x 7 root root 4096 Oct 7 21:01 ..
-rw-r--r-- 1 root root 1874 Oct 27 2016 default
-rw-r--r-- 1 root root 1083 Oct 15 01:33 openmediavault-webgui
-rw-r--r-- 1 root root 415 Oct 15 01:33 zzz-omv-nginx
root@raspberrypi:~# ss -tnpa
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 50 *:139 *:* users:(("smbd",pid=1266,fd=35))
LISTEN 0 128 *:111 *:* users:(("rpcbind",pid=962,fd=8))
LISTEN 0 128 *:81 *:* users:(("nginx",pid=21165,fd=6),("nginx",pid=21164,fd=6),("nginx",pid=21163,fd=6),("nginx",pid=21162,fd=6),("nginx",pid=21161,fd=6))
LISTEN 0 128 *:22 *:* users:(("sshd",pid=1001,fd=3))
LISTEN 0 128 *:36119 *:* users:(("rpc.statd",pid=971,fd=9))
LISTEN 0 128 127.0.0.1:2812 *:* users:(("monit",pid=1166,fd=6))
LISTEN 0 50 *:445 *:* users:(("smbd",pid=1266,fd=34))
ESTAB 0 0 192.168.0.99:445 192.168.0.75:49201 users:(("smbd",pid=5695,fd=36))
ESTAB 0 0 192.168.0.99:22 192.168.0.75:56297 users:(("sshd",pid=21025,fd=3))
LISTEN 0 128 :::57671 :::* users:(("rpc.statd",pid=971,fd=11))
LISTEN 0 50 :::139 :::* users:(("smbd",pid=1266,fd=33))
LISTEN 0 128 :::111 :::* users:(("rpcbind",pid=962,fd=11))
LISTEN 0 32 :::21 :::* users:(("proftpd",pid=1244,fd=0))
LISTEN 0 128 :::22 :::* users:(("sshd",pid=1001,fd=4))
LISTEN 0 10 ::1:4700 :::* users:(("cnid_metad",pid=1196,fd=4))
LISTEN 0 50 :::445 :::* users:(("smbd",pid=1266,fd=32))
LISTEN 0 20 :::548 :::* users:(("afpd",pid=1195,fd=5))
root@raspberrypi:~# -
Need to remove default probably
rm /etc/nginx/sites-enabled/default
systemctl restart nginx
Try again if the webui is back
-
Need to remove default probably
rm /etc/nginx/sites-enabled/default
systemctl restart nginx
Try again if the webui is back
there is no file called "default" in that directory.
-
My mistake it was
ls -la /etc/nginx/sites-enabled/
The socket listing shows nothing running on port 80, just 81.
This is the log for the nginx service if you can paste it here
journalctl -u nginx.service
-
My mistake it was
ls -la /etc/nginx/sites-enabled/
The socket listing shows nothing running on port 80, just 81.
This is the log for the nginx service if you can paste it here
journalctl -u nginx.service
root@raspberrypi:/etc/nginx/sites-available# ls -la /etc/nginx/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Oct 15 19:48 .
drwxr-xr-x 7 root root 4096 Oct 7 21:01 ..
lrwxrwxrwx 1 root root 40 Jun 12 09:47 openmediavault-webgui -> ../sites-available/openmediavault-webgui
lrwxrwxrwx 1 root root 40 Oct 15 01:33 zzz-omv-nginx -> /etc/nginx/sites-available/zzz-omv-nginxAs for the nginx service log, it just repeats these 4 lines for eternity:
Oct 15 20:32:43 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 15 20:32:43 raspberrypi systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 15 20:33:13 raspberrypi systemd[1]: Stopping A high performance web server and a reverse proxy server...
Oct 15 20:33:13 raspberrypi systemd[1]: Stopped A high performance web server and a reverse proxy server. -
I have no idea, seems to be starting then stopping.
For now remove the omv-extras plugin configuration for nginx
rm /etc/sites-enabled/zzz-omv-nginx
systemctl restart nginx
Does it come back the webui?
-
I have no idea, seems to be starting then stopping.
For now remove the omv-extras plugin configuration for nginx
rm /etc/sites-enabled/zzz-omv-nginx
systemctl restart nginx
Does it come back the webui?
Nope. Is there nothing else I can do?
-
Try
omv-firstaid
Reconfigure the webui.
Also run this command want to see any errors in nginx
nginx -T
-
Try
omv-firstaid
Reconfigure the webui.
Also run this command want to see any errors in nginx
nginx -T
Updating web control panel settings. Please wait ...
The web control panel settings were successfully changed.The web control panel is reachable via URL:
eth0: http://192.168.0.99:80
root@raspberrypi:~# ^C
root@raspberrypi:~# nginx -T
nginx: invalid option: "T"
root@raspberrypi:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@raspberrypi:~#I just want my webgui back D;
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!