Page MenuHomeVyOS Platform

Flow-accounting uacctd.service cannot restart correctly
Closed, ResolvedPublicBUG

Description

The service uacctd.service cannot restart correctly and is killed by timeout.
Then start and doesn't have the correct permission to the pid

To reproduce:

set system flow-accounting interface 'eth3'
set system flow-accounting netflow engine-id '53'
set system flow-accounting netflow server 192.0.2.11 port '2055'
set system flow-accounting netflow version '10'
commit
set system flow-accounting disable-imt
commit

PID rights

vyos@r14:~$ ls -la /run/pmacct/uacctd.pid
-rw------- 1 root root 5 May 21 10:53 /run/pmacct/uacctd.pid
vyos@r14:~$

Logs

May 21 11:27:10 r14 systemd[1]: Stopping uacctd.service - ulog accounting daemon...

May 21 11:28:40 r14 systemd[1]: uacctd.service: State 'stop-sigterm' timed out. Killing.
May 21 11:28:40 r14 systemd[1]: uacctd.service: Killing process 7602 (uacctd) with signal SIGKILL.
May 21 11:28:40 r14 systemd[1]: uacctd.service: Main process exited, code=killed, status=9/KILL
May 21 11:28:40 r14 systemd[1]: uacctd.service: Failed with result 'timeout'.
May 21 11:28:40 r14 systemd[1]: Stopped uacctd.service - ulog accounting daemon.
May 21 11:28:40 r14 systemd[1]: Starting uacctd.service - ulog accounting daemon...
May 21 11:28:40 r14 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted
May 21 11:28:40 r14 systemd[1]: Started uacctd.service - ulog accounting daemon.

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202305210317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

I see this in 20230329 rolling, but don't see on the latest one.

zsdc changed the task status from Open to In progress.Oct 12 2023, 5:31 PM
zsdc claimed this task.
zsdc added a subscriber: zsdc.
Viacheslav changed the task status from In progress to Needs testing.Oct 16 2023, 4:42 PM
a.apostoliuk moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
a.apostoliuk moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.