Broke web GUI

Status
Not open for further replies.

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
not having a great day :-(
after breaking the jails...now the web gui is not showing

404 Not Found
nginx

however nginx seem to be working.....
 

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
maybe i must revert to a previous snapshot?not sure how to do that....
 

fro

Cadet
Joined
Mar 26, 2013
Messages
4
I'm going to make a lot of assumptions here, but I have a feeling you started up a jail, that uses Nginx, on the same port as your web gui. The reason I think that is because I made a similar mistake a couple of months ago while enabling WebDav. Is this correct?
 

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
i really doubt it?
also the jails should be on another IP address?
 

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
# sockstat -4 -l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root uwsgi-3.6 3377 3 tcp4 127.0.0.1:9042 *:*
root uwsgi-3.6 2679 3 tcp4 127.0.0.1:9042 *:*
nobody mdnsd 2632 4 udp4 *:14102 *:*
nobody mdnsd 2632 6 udp4 *:5353 *:*
www nginx 2620 6 tcp4 *:80 *:*
root nginx 2619 6 tcp4 *:80 *:*
root ntpd 2314 21 udp4 *:123 *:*
root ntpd 2314 22 udp4 192.168.1.10:123 *:*
root ntpd 2314 25 udp4 127.0.0.1:123 *:*
root sshd 2234 5 tcp4 *:22 *:*
root rpc.statd 2063 6 udp4 *:769 *:*
root rpc.statd 2063 7 tcp4 *:769 *:*
root nfsd 2059 5 tcp4 *:2049 *:*
root mountd 2053 7 udp4 *:924 *:*
root mountd 2053 8 tcp4 *:924 *:*
root rpcbind 1844 9 udp4 *:111 *:*
root rpcbind 1844 10 udp4 *:656 *:*
root rpcbind 1844 11 tcp4 *:111 *:*
root syslog-ng 1820 20 udp4 *:1031 *:*
nobody mdnsd 1744 3 udp4 *:26681 *:*
nobody mdnsd 1744 5 udp4 *:5353 *:*
nobody mdnsd 1743 3 udp4 *:60852 *:*
nobody mdnsd 1743 5 udp4 *:5353 *:*
root python3.6 230 27 tcp4 *:6000 *:*
? ? ? ? udp4 *:636 *:*
? ? ? ? udp4 *:* *:*
? ? ? ? tcp4 *:676 *:*
 

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
*16 stat() "/usr/local/www/webui/" failed (13: Permission denied),

can some please confirm the permission on wegui folder?
 

fro

Cadet
Joined
Mar 26, 2013
Messages
4
ls -ltra /usr/local/www/
total 17
drwxr-xr-x 3 root wheel 3 Oct 1 15:17 data
drwxr-xr-x 15 root wheel 16 Dec 7 07:13 ..
drwxr-xr-x 6 root wheel 6 Dec 7 07:13 apache24
drwxr-xr-x 6 root wheel 7 Dec 7 07:13 dojo
lrwxr-xr-x 1 root wheel 25 Dec 7 07:14 nginx -> /usr/local/www/nginx-dist
drwxr-xr-x 9 root wheel 10 Dec 7 07:14 .
dr-xr-xr-x 2 root wheel 5 Dec 7 07:14 nginx-dist
drwxr-xr-x 3 root wheel 4 Dec 7 07:14 swagger-ui
drwxr-xr-x 4 root wheel 39 Dec 7 07:14 webui
drwxr-xr-x 28 www www 35 Dec 7 07:17 freenasUI
 

bar1

Contributor
Joined
Dec 18, 2018
Messages
115
thanks, i have another question though.

i am a newbie to zfs and freenas but i was under the impression if anything breaks i can always go back to a previous snapshot....

but i dont see how to do it?
 

fro

Cadet
Joined
Mar 26, 2013
Messages
4
You can go back to previous snapshots though; you need a snapshot to go back to. ZFS doesn't take periodic snapshots. Snapshots are scheduled through FreeNAS. If you didn't setup FreeNAS to snapshot your jails dataset, then you most likely do not have anything to revert to. Check the Snapshots section under Storage to see if you have any snapshots.

FreeNAS will take snapshots of the boot volume but only before upgrades. They are not listed in the Snapshots section. You need to use the CLI:

# zfs list -t snapshot | grep boot
freenas-boot/ROOT/11.2-RELEASE@2018-10-01-20:29:20 1.40M - 838M -
freenas-boot/ROOT/11.2-RELEASE@2018-12-07-07:07:13 13.7M - 850M -
 
Status
Not open for further replies.
Top