UI returning a 404 error on 11.2
Description
Problem/Justification
Impact
duplicates
relates to
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Andrew Walker November 28, 2019 at 11:29 AM
Fixed in NAS-104149. scanlnk application was slightly modified version of the 11.2-stable fix in NAS-104149. The patched winacl that performed a no-op, and quit and logged to stdout if it hit a symlink back to the boot device. This confirms that the 11.2-stable mitigation is sufficient.
Andrew Walker November 27, 2019 at 6:09 PM
Okay. I applied a mitigation for this situation to 11.2, and have a full fix for 11.3.
toxic2 November 27, 2019 at 5:43 PM
It did detect a Symlink which I deleted now. Since then I can't reproduce the error. I also found an error message in /var/log/messages that appeared right before the UI broke which is the Symlink that scanlnk detected.
Nov 26 21:05:06 freenas notifier: winacl: /mnt/Storage/xxxxxxx/.PlayOnLinux/wineprefix/opentoonz/dosdevices/z:/.rnd: acl_get_filed() failed: Operation not supported
Do you also have Symlinks that point to your boot pool ?
Andrew Walker November 27, 2019 at 11:57 AMEdited
I'm uploading a small application (scanlnk). Copy it to /tmp on the FreeNAS server (using scp) and run it in an SSH session as follows:
"/tmp/scanlnk -p /mnt/Storage"
If it detects a symlink pointing to your boot pool, it will print out the path on your screen.
toxic2 November 26, 2019 at 9:07 PMEdited
Output on broken system is:
On a working system
Hi,
I opened this bug report because a few people seem to have the same issue according to this thread.
Link: https://www.ixsystems.com/community/threads/ui-returning-a-404-error-on-11-2.70886/#post-556590
I installed FreeNAS a couple of days ago, configured a pool and setup SMB. I did not touch any other settings nor setup any jails. The FreeNAS UI was working fine for a few hours but then suddenly I was unable to click most of the menu Items like services in the left menu bar and the console in the bottom started displaying messages that something was unable to write to /dev/console . After clearing my browser cache I got a 404 error when trying to access any page of the freenas ui (including the login page)
I tried reinstalling freenas on a new boot drive but the same thing happened after a few hours. I also tried updating to 11.2 U7 but the same thing happened again and I tried different browsers like Chrome, Vivaldi, Firefox and Opera.
The nginx error log is showing the following errors:
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:16:32 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:21:44 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:21:44 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:21:44 [alert] 80541#101723: connect() failed (13: Permission denied)
2019/11/20 20:21:44 [alert] 80541#101723: connect() failed (13: Permission denied)