Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
VnStat query not working in 23.1.2
« previous
next »
Print
Pages: [
1
]
Author
Topic: VnStat query not working in 23.1.2 (Read 2476 times)
gpb
Full Member
Posts: 234
Karma: 13
VnStat query not working in 23.1.2
«
on:
March 08, 2023, 01:15:42 am »
Running a query in the VnStat tabs (hourly, daily, monthly, yearly) only returns the following message:
Error: Failed to get interface id from database (1): no such column: igb1
Error: Failed to fetch hourly data.
Not sure what happened here...hopefully not file corruption. The upgrade went smooth and vnstat did not look to be updated in this release. igb1 is my wan interface and that's all I capture. Anyone else seeing this issue? Thx.
Logged
HP T730/AMD RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT
travioli
Newbie
Posts: 1
Karma: 0
Re: VnStat query not working in 23.1.2
«
Reply #1 on:
March 08, 2023, 04:58:33 am »
Can confirm, just upgraded to 23.1.2 and I'm seeing the exact same error.
Logged
wuwzy
Jr. Member
Posts: 55
Karma: 3
Re: VnStat query not working in 23.1.2
«
Reply #2 on:
March 08, 2023, 05:23:03 am »
yes. me too
Logged
dirtyfreebooter
Newbie
Posts: 49
Karma: 1
Re: VnStat query not working in 23.1.2
«
Reply #3 on:
March 08, 2023, 06:16:44 am »
same here. i stopped the daemon, backed up the old database
/var/lib/vnstat/vnstat.db
and then deleted
/var/lib/vnstat/vnstat.db
, restarted daemon to start fresh and things started working again, but lost all my data.
the vnstat database is just sqlite db, i installed sqlite3 pkg, looking at the old database, i clearly see my
pppoe0
interface in the interface table and see the stats in all the hourly, monthly, etc tables, not sure exactly what is happening
edit: spoke too soon, while it appeared to work at first, after a little time i got
Error: Failed to get interface id from database (1): no such column: pppoe0
Error: Failed to fetch monthly data.
the failure happens in web interface and on the command line via
vnstat
command
«
Last Edit: March 08, 2023, 06:19:37 am by dirtyfreebooter
»
Logged
shokker
Newbie
Posts: 1
Karma: 1
Re: VnStat query not working in 23.1.2
«
Reply #4 on:
March 08, 2023, 09:08:53 am »
It looks to be an upstream bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269966
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1611
Re: VnStat query not working in 23.1.2
«
Reply #5 on:
March 08, 2023, 09:28:25 am »
Does this bring it back then?
# opnsense-revert or 23.1.1 sqlite3
Unfortunately not much else we can do at the moment.
Cheers,
Franco
Logged
gpb
Full Member
Posts: 234
Karma: 13
Re: VnStat query not working in 23.1.2
«
Reply #6 on:
March 08, 2023, 03:13:32 pm »
@franco...I tried reverting sqlite3 but didn't change anything. It looks there might be a workaround (maybe you saw it in the link above...comment 6) but I'm not sure how to implement it. If this is temporary it's just an inconvenience, nothing critical. I don't need to revert opnsense but if you see a solution or workaround that's "easy"...well, you know...I'm happy to test.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269966#c6
@shokker thanks for tracking that down.
@dirtyfreebooter That's my worry losing historical data...I have a backup from a while ago...I need to set something up more frequent. It looks like the timestamp on the file is current so maybe it's still recording just not query-able...wishful thinking.
Logged
HP T730/AMD RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT
dirtyfreebooter
Newbie
Posts: 49
Karma: 1
Re: VnStat query not working in 23.1.2
«
Reply #7 on:
March 08, 2023, 10:56:44 pm »
filed upstream bug with vnstat
https://github.com/vergoh/vnstat/issues/243
Logged
gpb
Full Member
Posts: 234
Karma: 13
Re: VnStat query not working in 23.1.2
«
Reply #8 on:
March 08, 2023, 11:04:04 pm »
Quote from: dirtyfreebooter on March 08, 2023, 10:56:44 pm
filed upstream bug with vnstat
https://github.com/vergoh/vnstat/issues/243
Interesting...thanks for posting the bug report...sounds like an easy fix.
Logged
HP T730/AMD RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT
gpb
Full Member
Posts: 234
Karma: 13
Re: VnStat query not working in 23.1.2
«
Reply #9 on:
March 09, 2023, 11:04:06 pm »
Confirmed the latest patch OPNsense 23.1.3-amd64 solved the issue (from the notes, "sqlite backs out disabling DQS option which broke software on multiple ends"). And vnStat was continuing to collect statistics. Thanks @franco!
Edit: clarified sqlite update.
«
Last Edit: March 09, 2023, 11:07:03 pm by gpb
»
Logged
HP T730/AMD RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT
franco
Administrator
Hero Member
Posts: 17656
Karma: 1611
Re: VnStat query not working in 23.1.2
«
Reply #10 on:
March 09, 2023, 11:07:53 pm »
happy to hear
Cheers,
Franco
Logged
dirtyfreebooter
Newbie
Posts: 49
Karma: 1
Re: VnStat query not working in 23.1.2
«
Reply #11 on:
March 09, 2023, 11:17:15 pm »
https://github.com/vergoh/vnstat/commit/2e66151541ffafd7de8778c14a66262a901716dc
vnstat author has already committed fix as well. hopefully new release soon as well.
---
also i can confirm that 23.1.3 also fixed vnstat for me.
Logged
CJ
Hero Member
Posts: 832
Karma: 30
Re: VnStat query not working in 23.1.2
«
Reply #12 on:
March 10, 2023, 02:09:04 am »
Nice! Now I don't have to choose between wireguard and vnstat.
Logged
Have Answer, Will Blog
wuwzy
Jr. Member
Posts: 55
Karma: 3
Re: VnStat query not working in 23.1.2
«
Reply #13 on:
March 10, 2023, 10:52:17 am »
OPNsense 23.1.3-amd64. repair the bug
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
VnStat query not working in 23.1.2