Sflow appears to be completely broken in 1.4 rolling.
Similar posts:
Version: VyOS 1.4-rolling-202303040317
Release train: current
Built by: [email protected]
Built on: Sat 04 Mar 2023 03:17 UTC
Build UUID: 642a0f97-d078-40b8-915f-6d988a851ce9
Build commit ID: afdaac1012d7b1
Architecture: x86_64
Boot via: installed image
System type: guest
Hardware vendor: Supermicro
Hardware model: Super Server
Hardware S/N: 0123456789
Hardware UUID: 00000000-0000-0000-0000-ac1f6b79a20e
Copyright: VyOS maintainers and contributors
Mar 6 22:50:20 edge1 kernel: [256902.519785] uacctd[43221]: segfault at 6 ip 00007f056345b6c0 sp 00007ffc2ef5baa8 error 4 in libc.so.6[7f056332f000+155000] likely on CPU 15 (core 28, socket 0)
Mar 6 22:50:20 edge1 kernel: [256902.519803] Code: 4c 16 fc 8b 36 89 4c 17 fc 89 37 c3 c5 fa 6f 06 c5 fa 6f 4c 16 f0 c5 fa 7f 07 c5 fa 7f 4c 17 f0 c3 66 0f 1f 84 00 00 00 00 00 <48> 8b 4c 16 f8 48 8b 36 48 89 37 48 89 4c 17 f8 c3 c5 fe 6f 54 16
Mar 6 22:50:20 edge1 systemd[1]: uacctd.service: Main process exited, code=killed, status=11/SEGV
Mar 6 22:50:20 edge1 systemd[1]: uacctd.service: Failed with result 'signal'.
Mar 6 22:50:30 edge1 systemd[1]: uacctd.service: Scheduled restart job, restart counter is at 38.
Mar 6 22:50:30 edge1 systemd[1]: Stopped uacctd.service - ulog accounting daemon.
Mar 6 22:50:30 edge1 systemd[1]: Starting uacctd.service - ulog accounting daemon...
Mar 6 22:50:30 edge1 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted
Mar 6 22:50:30 edge1 systemd[1]: Started uacctd.service - ulog accounting daemon.
Mar 6 22:50:30 edge1 kernel: [256912.762117] uacctd[43225]: segfault at 6 ip 00007f44557106c0 sp 00007ffdf280cf58 error 4 in libc.so.6[7f44555e4000+155000] likely on CPU 15 (core 28, socket 0)
Mar 6 22:50:30 edge1 kernel: [256912.762136] Code: 4c 16 fc 8b 36 89 4c 17 fc 89 37 c3 c5 fa 6f 06 c5 fa 6f 4c 16 f0 c5 fa 7f 07 c5 fa 7f 4c 17 f0 c3 66 0f 1f 84 00 00 00 00 00 <48> 8b 4c 16 f8 48 8b 36 48 89 37 48 89 4c 17 f8 c3 c5 fe 6f 54 16
Mar 6 22:50:30 edge1 systemd[1]: uacctd.service: Main process exited, code=killed, status=11/SEGV
Mar 6 22:50:30 edge1 systemd[1]: uacctd.service: Failed with result 'signal'.
Mar 6 22:50:40 edge1 systemd[1]: uacctd.service: Scheduled restart job, restart counter is at 39.
Mar 6 22:50:40 edge1 systemd[1]: Stopped uacctd.service - ulog accounting daemon.
Mar 6 22:50:40 edge1 systemd[1]: Starting uacctd.service - ulog accounting daemon...
Mar 6 22:50:40 edge1 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted
Mar 6 22:52:11 edge1 systemd[1]: uacctd.service: start operation timed out. Terminating.
Mar 6 22:52:11 edge1 systemd[1]: uacctd.service: Failed with result 'timeout'.
Mar 6 22:52:11 edge1 systemd[1]: Failed to start uacctd.service - ulog accounting daemon.
Mar 6 22:52:21 edge1 systemd[1]: uacctd.service: Scheduled restart job, restart counter is at 40.
Mar 6 22:52:21 edge1 systemd[1]: Stopped uacctd.service - ulog accounting daemon.
Mar 6 22:52:21 edge1 systemd[1]: Starting uacctd.service - ulog accounting daemon...
Mar 6 22:52:21 edge1 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted
Mar 6 22:53:08 edge1 vyos-configd[921]: Received message: {"type": "init"}
Mar 6 22:53:09 edge1 vyos-configd[921]: config session pid is 40097
Mar 6 22:53:09 edge1 vyos-configd[921]: Received message: {"type": "node", "data": "/usr/libexec/vyos/conf_mode/flow_accounting_conf.py"}
Mar 6 22:53:09 edge1 systemd[1]: Reloading.
Mar 6 22:53:10 edge1 systemd[1]: uacctd.service: Deactivated successfully.
Mar 6 22:53:10 edge1 systemd[1]: Stopped uacctd.service - ulog accounting daemon.
Mar 6 22:53:10 edge1 systemd[1]: Starting uacctd.service - ulog accounting daemon...
Mar 6 22:53:10 edge1 systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: Operation not permitted
Mar 6 22:53:10 edge1 systemd[1]: Started uacctd.service - ulog accounting daemon.
Mar 6 22:53:10 edge1 vyos-configd[921]: Sending response 1
Mar 6 22:53:11 edge1 systemd[1]: opt-vyatta-config-tmp-new_config_40097.mount: Deactivated successfully.
Mar 6 22:53:14 edge1 commit: Successful change to active configuration by user vyos on /dev/pts/0
Setting set system flow-accounting disable-imt
gets us a little further, but no dice.
vyos@edge1t# run show flow-accounting interface eth2
Traceback (most recent call last):
File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 249, in <module>
flows_list = _get_flows_list()
^^^^^^^^^^^^^^^^^
File "/usr/libexec/vyos/op_mode/flow_accounting_op.py", line 99, in _get_flows_list
out = cmd(f'/usr/bin/pmacct -s -O json -T flows -p {uacctd_pipefile}',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] Failed to get flows list
failed to run command: /usr/bin/pmacct -s -O json -T flows -p /tmp/uacctd.pipe
returned: INFO: Connection refused while trying to connect to '/tmp/uacctd.pipe'
exit code: 1
[edit]