Why vnstat is at version 1.12-1 only?

It will be available in 17.01.0 too once I get around to backport it

No, it will be available in any 17.01.* release as soon as I get around to backport it. Non-essential. non-core packages are continuously rebuilt for stable releases.

It will be compatible, in fact you can also simply install the .ipk fromsnapshots on a release. This is similar to installing a debian testing package on a debian stable system which usually works okay as long as the dependencies aren't too complex.

About what stuff in particular?

Branches, tags, building, backporting etc.
I'd like to contribute but I would prefer to just read about stuff and ask questions if I'll have any, rather then to ask about every single thing.

What is the protocol for asking to downgrade package?
I think i found a bug in the 1.16 version of vnstat.
@jow - Can you help out?

1.16 introduced database validation before file write and when loading a database after I got one report of a situation where the cached database got somehow corrupted in memory which then resulted in data getting corrupted in the written database itself.

I think that the lack of RTC clock in most routers might be responsible for failings to verify database timestamp causing vnstat to reject the whole database.

Would anyone be maybe willing to check that out and try to reproduce the error?

  1. Install vnstat

  2. Add your interfaces and start vnstat to create databases.

  3. Stop vnstat and create --exportdb backup of the database
    Here's what I use. Feel free to adjust it to your needs. The backup will be created in your current location.

    vnstat -i eth0.2 --exportdb > exportdb_eth0.2

  4. Delete your current databases and restore them using --importdb function
    I use this:

vnstat -i eth0.2 --force --importdb "exportdb_eth0.2"

  1. Go back to vnstat and type vnstat to see the restored database. If you'll see "Error: eth0.2: Invalid database timestamp.", let us know.

@jow Since you're a maintainer for this package did you maybe had some time to think about this? I don't think vnstat 1.16 should be available in 17.01 when it becomes stable. I'm thinking we could go with 1.15 for the 17.01 and then upgrade it to 1.17 for 17.06 when the vnstat developer will have a chance to fix this or at least introduce an option to disable timestamp verification.

Sooner or later this will become a bigger issue when more people will switch to LEDE 17.01 for good. Maybe we could have this sorted out before RC2 or RC3 if you're guys planning it.

Have you experienced the bug by yourself?

You are apparently quoting an upstream discussion, but you did not provide link to that discussion: https://github.com/vergoh/vnstat/issues/55

The lack of RTC should not have impact in normal situations, as the router will adjust time during the boot process with NTP.

Ps. I doubt that exporting/importing vnstat databases will be part of most users' usage of the package.

I am considering to simply roll back to v1.12 which is known working and tested.

I tested myself, although I haven't used vnstat earlier.

vnstat 1.16 complains about an invalid timestamp after importing a newly created and exported database. So, the upstream bug seems to be genuine.

Yes, I did.

It's considered a backup solution and it's recommended to use it someone would want to import their databases in to vnstat 2.0 that's being worked on now.

Yes, it is "known working" but there are also bugs that are fixed in newer releases. Ubuntu for example uses 1.14 in their LTS release. Just because the newest release has a bug, doesn't mean we should stay with release from 2014. From the vnstat developer quote I posted above you know this problematic feature was introduced in 1.16 so all we have to do is go back to 1.15 and we're good.

We wouldn't even need to discuss the version if vnstat package was updated sooner. I'm not accusing anyone. We're still in RC so we have some time to test everything. I use vnstat so I can test 1.15. No problem there. If you're really worried about possible issues then you can always go with 1.14 that's being used in Ubuntu 16.04 LTS.

Great! Well... kind of. The bug is confirmed but it mean's it's there.

I reverted the update to 1.16 now. If you want see vnstat updated, please send a tested pull request to the Github packages repository. I will to hand over maintainer ship to whoever is interested.

Don't you mean 1.12?

No I mean I reverted the "update to 1.16".

I get it now. Sorry. English is not my native language.

Can we get version 1.17 out now? It fixes the --import-db issue you found.

It's available here:
https://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/

But I'm not sure if it will work with 17.01 release. You will have to check it out yourself.

Thanks. I installed vnstat_1.17-1_arm_cortex-a15_neon-vfpv4.ipk and vnstati_1.17-1_arm_cortex-a15_neon-vfpv4.ipk on my Netgear R7800 with LEDE 17.01.2 and it is working fine.

1 Like

@r43k3n,

I see that you referred @mooninite to the vnstat 1.17.x release.

Have you tried it yourself? What's your experience. I'm a newbie who's a bit scared of doing such an upgrade and wanna see other people jump off the diving board before I do. :blush:


LEDE Reboot 17.01.2 r3435-65eec8bd5f
WD MyNet 750 router

My Netgear is still running vnstat 1.17 with no issues.

I'm also using vnstat 1.17 on a Fedora server (x86_64) with no issues.

1 Like

@mooninite,
When you made the upgrade to vnstat 1.17.x, did you lose any vnstat logs/stats/database?

Thu Aug 10 18:07:51 PDT 2017 update: did you first have to remove/uninstall your older/current vnstat? If so, doesn't uninstalling vnstat remove all the vnstat logs/stats/database?

You will not lose the database when upgrading vnstat... Please reference the upstream docs for further questions.

http://humdi.net/vnstat/

Hello @r43k3n and @mooninite.

I just wanna confirm something. My router is WD MyNet 750.
https://wiki.openwrt.org/toh/wd/n750 says that the CPU is MIPS 74Kc @560MHz

On https://downloads.lede-project.org/snapshots/packages/, the only thing with the word "74kc" is mipsel_74kc (https://downloads.lede-project.org/snapshots/packages/mipsel_74kc/packages/).
Is this correct? I noticed that yours was "mips" while the 74kc is "mipsel".