For the last couple of months I have not been able to see any graphs in the uiDivStats tab. Im running RT-AC86U with 386.4 (but it was the same under 386.3 at least). it did function properly earlier.
I get empty graphs, but the query log looks ok, so does the diversion statistics.
have tried to wipe all stats, but that didnt change anything.
uninstall and install of UiDivStats does not make any difference either.
tried to manually generate the stats and it completes without issues or error messages.
checking /share/uiDivStats.d/csv and it looks updated and the files seem to contain relevant info:
Code:
admin@RT-AC86U-D7D8:/tmp/mnt/UsbDrv/entware/share/uiDivStats.d/csv# ls -al
drwxrwxrwx 2 admin root 4096 Jan 26 12:49 .
drwxrwxrwx 3 admin root 4096 Jan 26 12:49 ..
-rw-rw-rw- 1 admin root 770 Jan 26 12:00 Blockeddaily.htm
-rw-rw-rw- 1 admin root 4524 Jan 26 12:00 Blockeddailyclients.htm
-rw-rw-rw- 1 admin root 2182 Jan 26 12:00 Blockeddailytime.htm
-rw-rw-rw- 1 admin root 748 Jan 26 00:01 Blockedmonthly.htm
-rw-rw-rw- 1 admin root 8258 Jan 26 00:01 Blockedmonthlyclients.htm
-rw-rw-rw- 1 admin root 838 Jan 26 00:01 Blockedmonthlytime.htm
-rw-rw-rw- 1 admin root 748 Jan 26 00:01 Blockedweekly.htm
-rw-rw-rw- 1 admin root 8258 Jan 26 00:01 Blockedweeklyclients.htm
-rw-rw-rw- 1 admin root 2379 Jan 26 00:01 Blockedweeklytime.htm
-rw-rw-rw- 1 admin root 465757 Jan 26 12:49 SQLQueryLog.htm
-rw-rw-rw- 1 admin root 4264 Jan 26 12:00 TotalBlockeddailytime.htm
-rw-rw-rw- 1 admin root 1650 Jan 26 00:01 TotalBlockedmonthlytime.htm
-rw-rw-rw- 1 admin root 4650 Jan 26 00:01 TotalBlockedweeklytime.htm
-rw-rw-rw- 1 admin root 814 Jan 26 12:00 Totaldaily.htm
-rw-rw-rw- 1 admin root 13123 Jan 26 12:00 Totaldailyclients.htm
-rw-rw-rw- 1 admin root 2056 Jan 26 12:00 Totaldailytime.htm
-rw-rw-rw- 1 admin root 699 Jan 26 00:01 Totalmonthly.htm
-rw-rw-rw- 1 admin root 34789 Jan 26 00:01 Totalmonthlyclients.htm
-rw-rw-rw- 1 admin root 786 Jan 26 00:01 Totalmonthlytime.htm
-rw-rw-rw- 1 admin root 699 Jan 26 00:01 Totalweekly.htm
-rw-rw-rw- 1 admin root 34789 Jan 26 00:01 Totalweeklyclients.htm
-rw-rw-rw- 1 admin root 2245 Jan 26 00:01 Totalweeklytime.htm
-rw-rw-rw- 1 admin root 1465 Jan 26 12:00 ipdistinctclients.js
looking at the console looks like there is some issue with d3.js:
I'm finding it here:
Code:
admin@RT-AC86U-D7D8:/jffs/addons/shared-jy# ls -al
drwxr-xr-x 2 admin root 0 Sep 3 23:52 .
drwxr-xr-x 13 admin root 0 Jan 26 05:20 ..
-rwxr-xr-x 1 admin root 2120 Feb 9 2020 addons.png
-rwxr-xr-x 1 admin root 173077 Feb 14 2021 chart.js
-rwxr-xr-x 1 admin root 13748 Jan 3 2020 chartjs-plugin-annotation.js
-rwxr-xr-x 1 admin root 10753 Jan 28 2020 chartjs-plugin-datasource.js
-rwxr-xr-x 1 admin root 4430 Mar 7 2020 chartjs-plugin-deferred.js
-rwxr-xr-x 1 admin root 2209 Jul 18 2021 chartjs-plugin-trendline.js
-rwxr-xr-x 1 admin root 9752 Feb 14 2021 chartjs-plugin-zoom.js
-rwxr-xr-x 1 admin root 98304 Sep 3 23:52 d3.js
-rwxr-xr-x 1 admin root 3444 Apr 10 2020 detect.js
-rwxr-xr-x 1 admin root 20727 Feb 14 2021 hammerjs.js
-rwxr-xr-x 1 admin root 89476 Feb 14 2021 jquery.js
-rwxr-xr-x 1 admin root 58957 Feb 14 2021 moment.js
-rwxr-xr-x 1 admin root 8489 Mar 17 2021 redirect.htm
-rw-rw-rw- 1 admin root 225861 Sep 3 23:52 shared-jy.tar.gz
-rw-rw-rw- 1 admin root 33 Sep 3 23:52 shared-jy.tar.gz.md5
looking at d3.js is really one looong line of code (line:2 as to no suprise)
is it really that bad that d3.js has become corrupted? or could there be some better explanation?
Zeb
Edit: Checked d3.js and it ended with:
Code:
;p.push(new Iu(g[3],y,v,a,u),new Iu(g[2],i,v,y,u),new Iu(g[1],y,o,
which doesnt seem proper, looking at
@Jack Yaz github this part could be found 1/3-way through the line... something has cut the file??? wierd...
ok, replaced the file with this one:
shared-jy/d3.js at master · jackyaz/shared-jy (github.com)
and there is a considerable size difference:
Code:
-rwxrwxrwx 1 admin root 269303 Jan 26 13:37 d3.js
-rwxr-xr-x 1 admin root 98304 Sep 3 23:52 d3.js.old
but now it works!
wonder if some (dirty) firmware upgrade migrated JFFS partition and this got capped... but there are even longer files in the same directly (like "chart.js") and these are unaffected... strange....