Page MenuHomeVyOS Platform

Error when issuing 'show flow-accounting interface pppoe0'
Resolved (N/A)PublicBUG

Description

narey@vyos# run show flow-accounting interface pppoe0
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

Details

Difficulty level
Unknown (require assessment)
Version
1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav changed the task status from Open to Needs reporter action.Jan 20 2024, 11:04 AM
Viacheslav triaged this task as Normal priority.
Viacheslav added a subscriber: Viacheslav.

Provide please s simpe "set" of commands to reproduce

Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa1) board.

Fixed

vyos@r11# run show conf com | match "flow|ppp"
set interfaces pppoe pppoe1 authentication password 'user1'
set interfaces pppoe pppoe1 authentication username 'user1'
set interfaces pppoe pppoe1 source-interface 'eth1'

set system flow-accounting enable-egress
set system flow-accounting interface 'pppoe1'
set system flow-accounting interface 'eth1'
set system flow-accounting interface 'eth0'
set system flow-accounting netflow server 192.168.122.1
set system flow-accounting netflow version '9'
[edit]
vyos@r11# 
[edit]
vyos@r11# run show flow-accounting interface pppoe1 
IN_IFACE    SRC_MAC            DST_MAC            SRC_IP    DST_IP        SRC_PORT    DST_PORT  PROTOCOL      TOS    PACKETS    FLOWS    BYTES
----------  -----------------  -----------------  --------  ----------  ----------  ----------  ----------  -----  ---------  -------  -------
pppoe1      00:00:00:00:00:00  00:00:00:00:00:00  1.1.1.1   100.64.1.2           0           0  icmp            0          2        1      168
pppoe1      00:00:00:00:00:00  00:00:00:00:00:00  1.1.1.3   100.64.1.2           0           0  icmp            0          1        1       84
pppoe1      00:00:00:00:00:00  00:00:00:00:00:00  1.1.1.2   100.64.1.2           0           0  icmp            0          1        1       84
[edit]
vyos@r11# 
[edit]
vyos@r11# run show ver
Version:          VyOS 1.4-rolling-202402160309
Release train:    sagitta