What's new

BW logs not saving after reboot, despite being set?

  • 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!

Make sure you do check the Daily or Monthly page. Hourly traffic is not saved, because it would make the data file grow astronomically after a few months.

Do you reboot your router cleanly (with either the webui or ssh), or are you just power-cycling? Doing a power-cycle will cause issues, with unwritten data still in buffer and so on.

Are you running in router mode? Traffic monitoring is not officially supported while in AP mode.

Also check the router's logfile to see if there is any error message.

I can have yet another look at that code just in case, but so far I am unable to reproduce this issue here. My own traffic stats go all the way back to April 2012, despite many dozens of reboot during that whole year.

I think I managed to get it to work, and I may have found the issue along the way.

To eliminate as many variables as possible I went ahead and reset to the factory defaults using the GUI and reformatted the flash drive (ext2).

The first time I plugged in the USB drive it mounted as /mnt/sdb1. I mapped the traffic history to /mnt/sdb1/traffic/. (yes for Create or reset data files)

After a reboot the USB drive mounted as /mnt/sda1. The traffic history would not load.

So, then all I did was change the history location to /mnt/sda1/traffic/ (no for Create or reset data files). The next time I rebooted the history survived!

I think the issue was the USB drive path changing after the first reboot.
 
Last edited:

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!
Top