Suricata-update --dump-sample-configs error

Hi.

Need help with this error:

root@suricata:~# suricata-update --dump-sample-configs
5/6/2023 -- 13:08:55 - <Info> -- Using data-directory /var/lib/suricata.
5/6/2023 -- 13:08:55 - <Info> -- Using Suricata configuration /etc/suricata/suricata.yaml
5/6/2023 -- 13:08:55 - <Info> -- Using /etc/suricata/rules for Suricata provided rules.
5/6/2023 -- 13:08:55 - <Info> -- Found Suricata version 6.0.12 at /usr/bin/suricata.
5/6/2023 -- 13:08:55 - <Info> -- Creating update.yaml.
Traceback (most recent call last):
  File "/usr/bin/suricata-update", line 36, in <module>
    sys.exit(main.main())
  File "/usr/lib/suricata/python/suricata/update/main.py", line 1369, in main
    sys.exit(_main())
  File "/usr/lib/suricata/python/suricata/update/main.py", line 1119, in _main
    return dump_sample_configs()
  File "/usr/lib/suricata/python/suricata/update/main.py", line 671, in dump_sample_configs
    shutil.copy(os.path.join(configs.directory, filename), filename)
  File "/usr/lib/python3.6/shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.6/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/suricata/python/suricata/update/configs/update.yaml'

Hi!

Could you please tell:

  • suricata-update version that you’re running
  • how did you install it?

This is an actual issue, I’ve created a ticket, Bug #6132: suricata-update: dump-sample-configs: configuration files not found - Suricata - Open Information Security Foundation and hopefully this will be fixed in the next release.