openwrt / openwrt/packages

vnstat2: does not load /etc/vnstat.cfg

Open
#22,406 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/23.05 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @\janh
Environment: aarch64 Nanopi R2S OPenwrt 23.05

Description:

Upgraded from 22.03 and moved vnstat database. when started vnstat does not read /etc/vnstat.conf

Output of vnstat --showconfig always has default values

When i moved the database from usbstick to /var/lib/vnstat it worked.

I tried vnstat --config and this did not work either. Appears hardcoded to defaults?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report on OpenWrt using vnstat --showconfig and the reported database locations, then inspect how vnstat reads /etc/vnstat.conf and handles --config. Done means the configuration file is loaded after the upgrade and non-default values are reflected in the command output.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.