Project

General

Profile

Actions

Bug #6132

closed

suricata-update: dump-sample-configs: configuration files not found

Added by Jason Ish 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

With the migration away from distutils for Python program in Suricata 6.0.7 (#5313), the Suricata-Update sample configuration files are no longer being installed.

Note: This bug is in Suricata Makefiles, not Suricata-Update.

To reproduce, use Suricata-Update installed as part of Suricata and then run:

suricata-update --dump-sample-configs

And the following error should be seen:

8/6/2023 -- 12:16:42 - <Info> -- Creating update.yaml.
Traceback (most recent call last):
  File "/opt/suricata/7.0.0-rc2-dev/bin/suricata-update", line 36, in <module>
    sys.exit(main.main())
             ^^^^^^^^^^^
  File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/main.py", line 1372, in main
    sys.exit(_main())
             ^^^^^^^
  File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/main.py", line 1122, in _main
    return dump_sample_configs()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/main.py", line 671, in dump_sample_configs
    shutil.copy(os.path.join(configs.directory, filename), filename)
  File "/usr/lib64/python3.11/shutil.py", line 419, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib64/python3.11/shutil.py", line 256, in copyfile
    with open(src, 'rb') as fsrc:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/configs/update.yaml'

Reported in the forum: https://forum.suricata.io/t/suricata-update-dump-sample-configs-error/3562


Subtasks 1 (0 open1 closed)

Bug #6136: suricata-update: dump-sample-configs: configuration files not found (6.0.x backport)ClosedJason IshActions

Related issues 1 (0 open1 closed)

Related to Suricata - Bug #5313: python: distutils deprecation warningClosedJason IshActions
Actions

Also available in: Atom PDF