AS-Stats icon indicating copy to clipboard operation
AS-Stats copied to clipboard

After adding new link I get issues when running rrd-extratstats.pl

Open lostchild1981 opened this issue 4 years ago • 1 comments

I have added a new link to knownlinks I have had issues with adding a new link, so I ended up deleting all rrd files (emptying whole folder). and wanted to regenerate them again.

but after running /as-stats/AS-Stats/bin/rrd-extractstats.pl /as-stats/rrd /as-stats/AS-Stats/conf/knownlinks /as-stats/stats/asstats_day.txt_

I get the following error now: DBD::SQLite::db do failed: table stats has 38 columns but 42 values were supplied at /as-stats/AS-Stats/bin/rrd-extractstats.pl line 160.

I do not see any resolution for this anywhere. Can you please let me know how to resolve this?

Thank you,

lostchild1981 avatar Dec 17 '20 12:12 lostchild1981

I realize this is an old issue, and probably by now you'll have fixed it, but for future reference the problem you're having is that the sqlite database that summarizes per-as and per-link statistics has a mismatched schema (different column namnes). The solution is to delete your sqlite database and rrd-extractstats.pl regenerate it.

Incidentally, I have made a patch that will detect and automatically fix this exact scenario in future. (See pull request #105).

pv2b avatar Apr 24 '23 14:04 pv2b