Page MenuHomeVyOS Platform

Op-cmd "generate tech-support archive" gives a traceback error
Open, NormalPublic

Description

"generate tech-support archive" gives a traceback error, tested in Eve-ng:

vyos@vyos:~$ generate tech-support archive
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/tech_support.py", line 388, in <module>
    res = vyos.opmode.run(sys.modules[__name__])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 312, in run
    res = func(**args)
          ^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/tech_support.py", line 380, in show
    data = _get_raw_data()
           ^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/tech_support.py", line 321, in _get_raw_data
    data["hardware"]["devices"] = _get_devices()
                                  ^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/op_mode/tech_support.py", line 54, in _get_devices
    devices["usb"] = cmd("lsusb")
                     ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 187, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command:  lsusb
returned:
exit code: 1
vyos@vyos:~$ lsusb
vyos@vyos:~$
vyos@vyos:~$ show version
Version:          VyOS 1.5-rolling-202503040017
Release train:    current
Release flavor:   generic

Built by:         autobuild@vyos.net
Built on:         Tue 04 Mar 2025 00:17 UTC
Build UUID:       d1e3950c-dce2-40a8-9354-e0e062b184eb
Build commit ID:  c54fba1fd7422e

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest
Secure Boot:      n/a (BIOS)

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    9f8e0364-e51d-4642-ae07-2dcf81c3c2b6

Copyright:        VyOS maintainers and contributors

Details

Version
1.5-rolling-202503040017
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)