SOLVED Freenas 9.3 WebGUI datagrids don't render on Chrome after v67

Status
Not open for further replies.

aenygma

Cadet
Joined
Sep 28, 2016
Messages
2
Noting this to help if others stumble into same situation:

Presentation:
After upgrading an older system from 8.0 to 9.3 (by going through the proper intermediate updates), the WebGUI's datagrid don't populate.
This renders any type of table blank. Users, Pools, Jails, etc.
Very frustrating, since WebGUI becomes useless.

FreeNAS OS:
$ uname -v
FreeBSD 9.3-RELEASE-p5 #0 3b4abc3: Mon Dec 8 15:09:41 PST 2014 root@build3.ixsystems.com:/tank/home/jkh/build/M/FN/objs/os-base/amd64/fusion/jkh/M/FN/FreeBSD/src/sys/FREENAS.amd64


FreeNAS HW:
presumably any kind

User System:
OS:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6


Chrome:
Google Chrome 68.0.3440.106 (Official Build) (64-bit)
Revision 1c32c539ce0065a41cb79da7bfcd2c71af1afe62-refs/branch-heads/3440@{#794}
OS Mac OS X
JavaScript V8 6.8.275.26


Troubleshooting steps:
  1. Verified django was getting proper data from config db
  2. Verified HTTP GETs were returning data they were supposed to

Issue:
Turns out its a regression in xstyle, which is a component of FreeNAS WebUI
Github Issue: https://github.com/kriszyp/xstyle/issues/44#issuecomment-76512785
Stack Overflow Note: https://stackoverflow.com/questions/50672599/dojo-uncaught-referenceerror-normal-is-not-defined

Fix:
Code:
cd /usr/local/www/freenasUI/static/lib/js/xstyle
$ diff -ub css_old.js css.js

--- css_old.js	  2018-08-21 03:32:30.275151045 -0700
+++ css.js	 2018-08-21 03:32:17.113151059 -0700
@@ -37,7 +37,9 @@
						}
						function checkForParser(){
								var parser = testElementStyle('x-parse', null, 'content');
-							   if(parser && parser != 'none'){
+							   if(parser && parser != 'none' && parser != 'normal'){
										// TODO: wait for parser to load
										require([eval(parser)], callback);
								}else{


patching the code as mentioned above addressed this problem.

Making this thread, since I wasn't sure what the proper process for 9.3 bugs is.
Hope this helps someone else.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
FreeNAS 9.3 is at least 2.5 years old. It's no longer supported.

Thanks for posting your fix. Maybe someone will find it useful.

btw, welcome to the forums!
 

aenygma

Cadet
Joined
Sep 28, 2016
Messages
2
Hey thanks gpsguy!
I figured as well about 9.3

---
Looks like a couple of people were hitting this.
(particular pathology is JS console will show a problem in checkForParser function)

Noting for posterity, the search engine breadcrumb, (and no other reason than I had these tabs open):

https://redmine.ixsystems.com/issues/14811
https://redmine.ixsystems.com/issues/15085
https://redmine.ixsystems.com/issues/15190
https://redmine.ixsystems.com/issues/15745
https://redmine.ixsystems.com/issues/15699 (dupe)

https://forums.freenas.org/index.php?threads/gui-not-working-properly-in-chrome.43749/
https://forums.freenas.org/index.php?threads/web-gui-not-loading.58073/page-2
https://www.reddit.com/r/freenas/comments/6t7m6v/freenas_web_gui_not_displaying_correctly/
https://linustechtips.com/main/topic/666660-freenas-gui-not-working/?page=3

There were similar ones, but those were another dojokit failure from 11.x, not 9.x
This one is 9.x mainly, assuming 11.x UI changes obviates it.
 
Status
Not open for further replies.
Top