Actions
Bug #6132
closedsuricata-update: dump-sample-configs: configuration files not found
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
Actions