Hi all,
I´ve got a problem with vnstat.service.
Background:
For some special reason I wanted to change some values of the vnstat database (/var/lib/vnstat/vnstat.db). So as a precautionary backup I copied the original vnstat.db to a safe place.
Tinkering with the vnstat.db (what I had in mind) didn´t go well, so I decided to put my original vnstat.db (the one I saved as a first step) back to it´s original place.
The steps were the following:
sudo service vnstat stop
sudo rm /var/lib/vnstat/vnstat.db
sudo mv vnstat.db /var/lib/vnstat/ # from my backup location to where it belongs
sudo service vnstat start
Then I seemed to have run into problems as I cannot get the vnstat service running again :
systemctl status vnstat
● vnstat.service - vnStat network traffic monitor
Loaded: loaded (/lib/systemd/system/vnstat.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-10-23 15:05:10 CEST; 14min ago
Docs: man:vnstatd(8)
man:vnstat(1)
man:vnstat.conf(5)
Process: 1121 ExecStart=/usr/sbin/vnstatd -n (code=exited, status=1/FAILURE)
Main PID: 1121 (code=exited, status=1/FAILURE)
Okt 23 15:05:10 rosika-10159 systemd[1]: vnstat.service: Scheduled restart job, restart counte>
Okt 23 15:05:10 rosika-10159 systemd[1]: Stopped vnStat network traffic monitor.
Okt 23 15:05:10 rosika-10159 systemd[1]: vnstat.service: Start request repeated too quickly.
Okt 23 15:05:10 rosika-10159 systemd[1]: vnstat.service: Failed with result 'exit-code'.
Okt 23 15:05:10 rosika-10159 systemd[1]: Failed to start vnStat network traffic monitor.
I did some research on the topic of "vnstat.service: Start request repeated too quickly" and found something on
debian - How to fix ".service: Start request repeated too quickly." on custom service? - Unix & Linux Stack Exchange .
The solution provided however didn´t work with me:
systemctl reset-failed SERVICE
systemctl start SERVICE
systemctl status SERVICE
I replaced “SERVICE” with vnstat.service
of course.
I also shut down the system, waited for 10 mins and then performed a cold start again - to no avail.
I still get the same status report (see above).
Hopefully someone in this forum may be able to help.
Thanks so much in advance
Many greetings.
Rosika