The problem is caused by luci-app-vpn-policy-routing. This package contains directory entries with wrong permissions, clobbering the system default permissions of /usr and /etc. Since the package is not part of any official repo as far as I can see, it will not get fixed by 19.x or any other release.
@stangri - when listing the contents of luci-app-vpn-policy-routing_git-19.099.68053-6c028c8-38_all.ipk, there seem to be some "weird" permissions set for directories:
Note the permissions for files (-rw-r----- instead of -rw-r--r--) and directories (drwxr-s--- instead of drwxr-xr-x). Maybe you didn't set your umask to 022 while building these packages?
fwiw, i ran into this issue ... on a build that I thought had been previously problem free... and nothing had changed.....
( i.e. installed from sources built months ago )
i don't run vpr ... i do have extroot and a changed hostname..... ( changed after statistics was installed )
the errors I could see highlighted cpu / wan-get failure...
changing uhttpd max requests 1 > 3 fixed wan... and changed the other error messages....
thanks to a kind soul above, adding
192.168.1.1 hostname
to /etc/hosts and changing localhost to hostname in /etc/config/luci_statistics totally silenced it.
So....... some of the messages;
<script src="/cgi-bin/luci/admin/translations/en?v=git-19.069.61084-db98461"></script> not exist
/usr/bin/stat-genconfig returning bool when expected str for cpu
etc. etc.
^ possibly not symptomatic.... i did see some commits re: languages ... i don't know if these threw anything out... could have sworn i build that firmware before those....
so... something with lua.... graph.... module instantiation... and hostnames... errors are totally strange tho'
hope that helps... but i don't think permissions are at the root.... unless we all have extroots.
Well I have noticed the issue after installing VPR and everything was running fine before with ExtRoot so as @stangri and @jow mentioned it could be related to the permissions. We'll need to wait until new build of VPR is available.
I think @stangri fixed it maybe. The current release of VPR is 0.0.4-6 and it was -4 before so maybe you can try to check for an updated package. Or else just force install LuCI Statistics to make it work again.
If you have my repo added to your router, run: opkg update; opkg install --force-reinstall luci-app-vpn-policy-routing; opkg install --force-reinstall luci-app-statistics;.
@stangri It seems the permissions issue is not fully resolved yet. After installing the version 0.0.4-7 I am again getting into problems with Graphs screen not showing and as @jow mentioned above I am still getting some weird permissions after installing the VPR.
I checked the permissions after installing VPR 0.0.5 and they were normal but it still broke the statistics page and had to force reinstall luci-app-statistics to make it work.