I saw this once in my testing during development of R2. IIRC reboot fixed it, but if not try the following:I have a small puzzle with vnstat on my ax86 pro. Unpredictably, the statistics stop updating. I'm not seeing any error message in the logs, but the statistics don't update in the cron job, and don't update if the stats are updated from the web page. This is true if I reinstall keeping the old stats, but not if I delete the old stats.
/tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat stop
- you should see a message confirming vnStat is halted/tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat start
- you should see a message confirming vnStat is runningdn-vnstat
and pick 1
to update - you should see today's date with some data usage/tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat restart
is also a valid command, but I seem to recall it hanging during stopping vnStat, thus my recommendation for separate stop
and start
commands.Glad to hear it.that restarted it, thanks. I wonder what stops it?
Other than a nuclear reset and rebuild I don't know have other specific solutions for you. This issue is not common (it is only coincidental that I even saw this during preliminary testing).Kicked off again twice in the last 72 hours.
strace
, but since I have no way of reproducing the situation, it'd need to be done from your machine.vnstat --version
) - I'm assuming it's 2.xx./tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat stop && /tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat start
to restart the underlying application. Not pretty but it might beat the reset.Thanks for the follow up. I've gone the reset route. I wanted to purge some things anyway.@elorimer - I did hear back from the vnStat application owner (Teemu) and got pretty much the same answer "saw it once on a Raspberry Pi, haven't been able to reproduce it" and "no other reports", so it's obviously something specific to your setup.
He did ask if we are running a vnStat daemon (we're not) to see if there's something logged, and suggestedstrace
, but since I have no way of reproducing the situation, it'd need to be done from your machine.
Out of curiosity, which version of vnStat are you running (vnstat --version
) - I'm assuming it's 2.xx.
I guess there's a couple of options: 1) the aforementioned nuclear reset/reconfiguration or 2) creating a script that periodically runs the command/tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat stop && /tmp/mnt/<<usb drive>>/entware/etc/init.d/S33vnstat start
to restart the underlying application. Not pretty but it might beat the reset.
I wish I had other ideas - but yours is the only report of this outside my initial testing (and if not for that, I wouldn't have even had any idea what was being described).And now, again, on a completely different router, an AX88 with .6B1.
vnStat
(the Linux app) reported an error with outdated snap
on Debian, but that's obviously different. I'm happy to work with you by DM to see if i can re-reproduce it.A choice of emails is available:
1. HTML (includes images from WebUI + summary stats as attachment)
2. Plain text (summary stats only)
e. Exit to main menu
Choose an option: 1
Attempting to send summary statistic email
curl: (8) Weird server reply
Email failed to send
Press enter to continue...
When attempting to toggle and enable daily emails I am getting the following failure:
I am currently not using Diversion but do have emails set up in amtm and it works just fine. Any thoughts on what might be happening?Code:A choice of emails is available: 1. HTML (includes images from WebUI + summary stats as attachment) 2. Plain text (summary stats only) e. Exit to main menu Choose an option: 1 Attempting to send summary statistic email curl: (8) Weird server reply Email failed to send Press enter to continue...
AMTM
, I presume you don't see that message when you send a test message from AMTM
?AMTM
? Have you tried "plain text"?AMTM
?Correct, I do not see that message when sending via amtm.The email function of R2 is handled entirely byAMTM
, I presume you don't see that message when you send a test message fromAMTM
?
What version of vnStat-on-Merlin are you running? What version ofAMTM
? Have you tried "plain text"?
Which provider are you using? Have you tried both the "secure" and "insecure" options? Does your provider require separate "app passwords" and do you have that configured inAMTM
?
Correct, I do not see that message when sending via amtm.
vnStat version 2.0.4. amtm version is 4.3. How do I try plain text?
I'm using iCloud, using the --insecure SSL flag, and a seperate app password that is configured in amtm. Like I said, it works just fine in amtm.
sh -x /jffs/scripts/dn-vnstat summary
please. Don't post it here because it'll have your email addresses and stuff in it.dn-vnstat
email section (plain text vs HTML).I appreciate your help.Mmm, I've never tested iCloud mail in anything non-iDevice.
I should have asked earlier, but I presume you set everything up via command line (and not the UI), in case there's some funky pasting thing going on?
Can you DM me the output ofsh -x /jffs/scripts/dn-vnstat summary
please. Don't post it here because it'll have your email addresses and stuff in it.
Also, testing plain text format is an option in thedn-vnstat
email section (plain text vs HTML).
Got it and responded.I appreciate your help.
Everything was set up via command line.
I DM'd the output but had to split it up as it was more than 10,000 characters.
The plain text option slipped right past my aging eyes. I tried it and got the same result.
A huge thanks to @dev_null for looking into this and finding the fix! All is well now.Got it and responded.
In case anyone is interested, it appears that in this instance at this time the email portion of the script is somehow being bypassed. Not sure if it's a script thing or an amtm email thing. Will post back when more information develops.
EDIT: or an iCloud thing.
A huge thanks to @dev_null for looking into this and finding the fix! All is well now.
dn-vnstat
"curled" the email. Something about it that iCloud (specifically the me.com SMTP server) didn't like.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!