Bug 12305 - vnstat: Statistics are not being updated on some systems any more
Summary: vnstat: Statistics are not being updated on some systems any more
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: unspecified Unspecified
: Will affect most users Major Usability
Assignee: Matthias Fischer
QA Contact:
URL:
Keywords: 5MinuteJob
Depends on:
Blocks:
 
Reported: 2020-02-27 11:15 UTC by Michael Tremer
Modified: 2020-06-06 13:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tremer 2020-02-27 11:15:39 UTC
I have no idea why this was triggered, but it looks like that vnstat is not updating on some systems any more since around October time.

It is looking for a backup database of "tag" which is not an interface and fails to open the "tag" database which simply is an empty file.

Removing that file has fixed the graph on various systems.

Could we please remove /var/log/vnstat/tag on all systems that have it with the next update?

I do not think that it is necessary to delete this file at every boot.
Comment 1 Matthias Fischer 2020-03-14 09:09:26 UTC
Being curious, I did a quick research.

Creating this file was triggered here (2019-05-21):

https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;f=lfs/vnstat;h=b0d31edbd6268e32fe7ab7649c581d20686e8ced

Reasons?

Would reverting this commit be sufficient?
Comment 2 Michael Tremer 2020-03-15 09:20:41 UTC
Yes, that commit needs to be reverted at least. We will have to ship the directory in the root file.

We should also consider updating vnstat because there are some new release available.

Would you work on this, so we can ship this in Core Update 143?
Comment 5 Matthias Fischer 2020-04-10 17:24:59 UTC
Update to 2.6, introducing the new 'vnstad'-daemon.

Is running here since a few weeks - right now on Core 142.

Patchwork:
Patch 1/4 => https://patchwork.ipfire.org/patch/2926/
Patch 2/4 => https://patchwork.ipfire.org/patch/2923/
Patch 3/4 => https://patchwork.ipfire.org/patch/2924/
Patch 4/4 => https://patchwork.ipfire.org/patch/2925/

GIT:
https://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=shortlog;h=refs/heads/vnstat
Comment 6 Peter Müller 2020-04-30 20:07:38 UTC
I am setting this back to MODIFIED as the vnstat 2.6 patches just made it into next and will most likely be shipped with Core Update 145.