What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

uiDivStats uiDivstats 4.0.9 - WebUI Stats for Diversion, Feb. 12, 2025

...
After reboot:
  1. CLI menu now shows "user7" as the UI page
  2. Database size still shows partialadminusername+"B"
  3. user7 works but shows a proper database size
The last 2 points above appear to indicate that you likely have installed some Entware packages that include binaries with the same name as the router built-in binaries but behave differently when using the same arguments, and your PATH environment variable is set up to give those Entware binaries priority over their built-in counterparts which would affect running the shell script via an interactive session but not via the WebGUI.

Please run the following commands via an SSH terminal session and post the output:
Bash:
env | grep PATH= ; which sed ; which ls ; which grep
 
The last 2 points above appear to indicate that you likely have installed some Entware packages that include binaries with the same name as the router built-in binaries but behave differently when using the same arguments, and your PATH environment variable is set up to give those Entware binaries priority over their built-in counterparts which would affect running the shell script via an interactive session but not via the WebGUI.

Please run the following commands via an SSH terminal session and post the output:
Bash:
env | grep PATH= ; which sed ; which ls ; which grep

Yep that must be it. For sure am getting the Entware versions.

Code:
PATH=/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/home/adminuname:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin

/opt/bin/sed
/opt/bin/ls
/opt/bin/grep
 
Release Notes for uiDivStats 4.0.8 version (now available):

1) Added "export PATH" statement to make the built-in binaries have higher priority than the equivalent Entware binaries.

2) Various code improvements & fine-tuning.

Nice. Fixed my CLI situation instantly.
 
Release Notes for uiDivStats 4.0.9 version (now available):

1) Added and modified code so that every time the SSH CLI menu is run, it checks if the WebGUI page has already been mounted. If not found mounted, the script will run the code to remount the WebGUI.
 
I used to have problems with router performance while uidivstats did trimdb on my semihuge database, we had some discussions here and got rid of the issue after some testing.
I don't really remember the details from that episode, but now I've noticed some performance struggles for my router again, especially DNS lookups. Turned off Diversion and it worked fine. Took a look at db size, and it is 1.7GB... Can't say why it has grown that large again (I keep 30 days), but I saw that I have the caching (to TMPFS) option on, and I don't think that will work well with the huge db so I turned that off. Then I ran trimdb, which shaved down the 1.7GB to 1.6GB. Hmm. Am I doing something wrong? Maybe I'm looking in the wrong place and making uidivstats a scapegoat for other issues, but should my db really be this big? Or maybe things will work fine now when I turned off the cache and/or ran trimdb, haven't had much time to test it, the problems are a bit sporadic but noticable many times during every day.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top