wrong database file ownership
Bug #1285706 reported by
Francois Trahan
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vnstat (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
ubuntu 13.10 amd64
vnstat 1.11-2
Problem:
Database files created by "vnstat -u -i NEW_IF" (/var/lib/
Symptoms:
After adding a database, you always get the "Not enough data available yet." even if vnstat works perfectly in live mode (vnstat -i NEW_IF -l)
Workaround:
Run those commands:
- chown vnstat:vnstat /var/lib/
- vnstat -u -i NEW_IF
To post a comment you must log in.
with vnstat 1.12 (as in 14.10 and later) vnstat changes the user id during startup to whatever is defined as DaemonGroup and DaemonUser in /etc/vnstat.conf. Hence, the proper way would be to system/ vnstat. service or /etc/init.d/vnstat depending on start-up system user from "vnstat" to "root"
(0) upgrade to vnstat 1.12 (if not already done)
(1) change in /etc/vnstat.conf DaemonUser and DaemonGroup from "" to "vnstat", and
(2) in /lib/systemd/