Project

General

Profile

Actions

Bug #6132

closed

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

Added by Jason Ish 12 months ago. Updated 12 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 #1

Updated by Jason Ish 12 months ago

  • Related to Bug #5313: python: distutils deprecation warning added
Actions #2

Updated by Jason Ish 12 months ago

  • Description updated (diff)
Actions #3

Updated by Victor Julien 12 months ago

  • Target version changed from 7.0.0-rc1 to 7.0.0-rc2
Actions #4

Updated by Victor Julien 12 months ago

  • Label Needs backport to 6.0 added
  • Label deleted (Needs backport)
Actions #5

Updated by OISF Ticketbot 12 months ago

  • Subtask #6136 added
Actions #6

Updated by OISF Ticketbot 12 months ago

  • Label deleted (Needs backport to 6.0)
Actions #7

Updated by Jason Ish 12 months ago

  • Status changed from In Progress to Resolved
Actions #8

Updated by Victor Julien 12 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF