Bug 28576 - Network statistics of net_monitor doesn't work, fails with timeout. Config file issue
Summary: Network statistics of net_monitor doesn't work, fails with timeout. Config fi...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
: 28593 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-10 18:35 CET by papoteur
Modified: 2021-03-17 07:17 CET (History)
5 users (show)

See Also:
Source RPM: vnstat
CVE:
Status comment:


Attachments

Description papoteur 2021-03-10 18:35:39 CET
Description of problem:
When enabling vnstat with systemd, the service does start properly:
-- Logs begin at Thu 2021-03-04 13:35:55 EST, end at Wed 2021-03-10 12:21:38 EST. --
Mar 09 02:45:00 localhost systemd[1]: Started vnStat - a lightweight network traffic monitor.
Mar 09 02:45:00 localhost vnstatd[2247]: No interfaces found in database, adding available interfaces...
Mar 09 02:45:00 localhost vnstatd[2247]: Interface "enp0s3" added with 1000 Mbit bandwidth limit.
Mar 09 02:45:00 localhost vnstatd[2247]: -> 1 new interface found.
Mar 09 02:45:00 localhost vnstatd[2247]: Limits can be modified using the configuration file. See "man vnstat.conf".
Mar 09 02:45:00 localhost vnstatd[2247]: Unwanted interfaces can be removed from monitoring with "vnstat --remove".
Mar 09 02:45:00 localhost vnstatd[2249]: vnStat daemon 2.6 started. (pid:2249 uid:0 gid:0 64-bit)
Mar 09 02:45:00 localhost vnstatd[2249]: Monitoring (1): enp0s3 (1000 Mbit)
Mar 09 02:46:30 localhost systemd[1]: vnstat.service: State 'stop-sigterm' timed out. Killing.
Mar 09 02:46:30 localhost systemd[1]: vnstat.service: Killing process 2249 (vnstatd) with signal SIGKILL.
Mar 09 02:46:30 localhost systemd[1]: vnstat.service: Failed with result 'timeout'.
Comment 1 papoteur 2021-03-10 19:13:12 CET
I think that we should use the standard configuration file for systemd.
I did
cp /usr/share/doc/vnstat/examples/systemd/vnstat.service /usr/lib/systemd/system/vnstat.service
systemctl deamon-reload
systemctl restart vnstat

and now all seems OK.
Comment 2 Lewis Smith 2021-03-11 15:48:33 CET
Thanks for the report, and your diagnosis.

vnstat has no fixed maintainer, so assigning this globally.

Assignee: bugsquad => pkg-bugs
Summary: Network statistics of net_monitor doesn't work, fails with timeout => Network statistics of net_monitor doesn't work, fails with timeout. Config file issue

Comment 3 Thomas Backlund 2021-03-11 15:56:40 CET
looks like daviddavid has pushed  vnstat-2.6-1.1.mga8 with that change to testing

CC: (none) => geiger.david68210

Comment 4 Thomas Backlund 2021-03-11 15:57:14 CET
and the same in cauldron...
Comment 5 Nicolas Nicolas 2021-03-11 23:04:16 CET
Hello,

Downloaded the vnstat-2.6-1.1.mga8 package from testing, uninstalled the current vnstat ( as i made some changes to the service file), reinstalled the current version and then upgrade the package with the testing package, seems the new service file installed.

Restarted the vnstat service manually, and then now the service running without time out.

Checked net_monitor ( to verify database is still populated and it seems to still be).

CC: (none) => joe_c_moi

Nicolas Nicolas 2021-03-11 23:04:35 CET

CC: joe_c_moi => (none)

Comment 6 papoteur 2021-03-12 10:10:04 CET
Suggested advisory
=====================
The service vnstat.service as configured doesn't start correctly, it timeout after 1:30.
This correction use default system service configuration file provided upstream, such that the service starts without timeout.
=====================

Assignee: pkg-bugs => qa-bugs

Comment 7 David GEIGER 2021-03-12 10:37:05 CET
Packages in 8/core/updates_testing:
========================
vnstat-2.6-1.1.mga8.i586.rpm
vnstat-2.6-1.1.mga8.x86_64.rpm

Source RPM: 
========================
vnstat-2.6-1.1.mga8.src.rpm
Thomas Backlund 2021-03-12 18:03:13 CET

Version: Cauldron => 8

Comment 8 Dave Hodgins 2021-03-14 20:20:32 CET
*** Bug 28593 has been marked as a duplicate of this bug. ***

CC: (none) => jim

Comment 9 Lewis Smith 2021-03-14 20:58:49 CET
See
 https://bugs.mageia.org/show_bug.cgi?id=28593
comments 3 4 5 6.
James' real-life test warrants MGA8-64-OK for his problem.
Nicolas Nicolas' comment 5 warrants the same OK for *this* bug; & validation.
Comment 10 Dave Hodgins 2021-03-14 22:14:55 CET
I've also tested it on my m8 x86_64 system.
Validating.

CC: (none) => davidwhodgins, sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: (none) => MGA8-64-OK

Comment 11 Aurelien Oudelet 2021-03-16 15:38:55 CET
Advisory commited to SVN.

Keywords: (none) => advisory
CC: (none) => ouaurelien

Comment 12 Mageia Robot 2021-03-17 07:17:24 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0042.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.