vnstat2: does not load /etc/vnstat.cfg
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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