Project

General

Profile

Actions

Bug #6132

closed
JI JI

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

Bug #6132: suricata-update: dump-sample-configs: configuration files not found

Added by Jason Ish almost 3 years ago. Updated almost 3 years 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

JI Updated by Jason Ish almost 3 years ago Actions #1

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

JI Updated by Jason Ish almost 3 years ago Actions #2

  • Description updated (diff)

VJ Updated by Victor Julien almost 3 years ago Actions #3

  • Target version changed from 7.0.0-rc1 to 7.0.0-rc2

VJ Updated by Victor Julien almost 3 years ago Actions #4

  • Label Needs backport to 6.0 added
  • Label deleted (Needs backport)

OT Updated by OISF Ticketbot almost 3 years ago Actions #5

  • Subtask #6136 added

OT Updated by OISF Ticketbot almost 3 years ago Actions #6

  • Label deleted (Needs backport to 6.0)

JI Updated by Jason Ish almost 3 years ago Actions #7

  • Status changed from In Progress to Resolved

VJ Updated by Victor Julien almost 3 years ago Actions #8

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom