OPNsense Forum
Archive => 20.1 Legacy Series => Topic started by: Ricardo on February 04, 2020, 03:30:04 pm
-
Hello Opnsense folks,
https://forum.opnsense.org/index.php?topic=9503.msg48562#msg48562
is this something that we can expect to be supported? VNSTAT database to be kept across reboots, when /var is on MFS.
-
Are you soder10 in Github?
-
I found others posted to this thread in the past, and got notification about this issue recently.
https://github.com/opnsense/plugins/issues/1061
-
Do you use pppoe as WAN?
-
Exactly!
-
Can you check if this also happens on LAN interface?
Just for testing if it's related to vnstat itself or the plugin.
We upgraded from 1.X to 2.X couple of weeks ago.
-
I will try. What should be the visible result? No service crash / preserve traffic amount across reboots?
-
Hopefully both ...
-
Will try today evening to switch over from WAN to LAN interface measurement. What is the next step if it seems working fine bound to the LAN?
-
Next stop would be disable MFS and switch back to pppoe.
Then you'll see if it's pppoe or MFS
-
Ok, it took some time to find a proper time for reboot, but here it is:
changing the listen interface from WAN/pppoe to the static LAN interface still broke the vnstat service to start. Trying to start the service manually also fails.
Reset-ing the vnstat database immediately started the service without hiccup.
Next test: switched from MFS to normal UFS for /var -> did fix the service startup issue, but database had to be reset, otherwise the stat pages showed an empty page. After the 1st reset, because it is no longer stored on MFS, the next full reboot was also successful, did not have to reset the database again.
-
Thanks for your input!
vnstat changed it's logging database from db2 to sqlite, so from v1.x to v2.x there's no chance other than wiping the DB. We sadly forgot to mention this in the release note.
-
I did change from UFS back to MFS (switched back to WAN interface) and this time it seems somehow it saved the database file correctly. I will try to see after a couple of reboots it is still correct or not.
-
Thanks :)
-
Thanks :)
So far it has survived couple of reboots and seems still working. Lets hope 20.7 wont screw it up again.