Project

General

Profile

Actions

Bug #2683

closed

suricata-update --dump-sample-configs Crash

Added by Kenneth Kolano almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

sudo suricata-update --dump-sample-configs
14/11/2018 -- 14:15:24 - <Info> -- Using data-directory /var/lib/suricata.
14/11/2018 -- 14:15:24 - <Info> -- Using Suricata configuration /etc/suricata/suricata.yaml
14/11/2018 -- 14:15:24 - <Info> -- Using /etc/suricata/rules for Suricata provided rules.
14/11/2018 -- 14:15:24 - <Info> -- Found Suricata version 4.1.0 at /usr/bin/suricata.
14/11/2018 -- 14:15:24 - <Info> -- Creating update.yaml.
Traceback (most recent call last):
  File "/usr/bin/suricata-update", line 33, in <module>
    sys.exit(main.main())
  File "/usr/bin/../lib/python2.7/site-packages/suricata/update/main.py", line 1449, in main
    sys.exit(_main())
  File "/usr/bin/../lib/python2.7/site-packages/suricata/update/main.py", line 1244, in _main
    return dump_sample_configs()
  File "/usr/bin/../lib/python2.7/site-packages/suricata/update/main.py", line 702, in dump_sample_configs
    shutil.copy(os.path.join(configs.directory, filename), filename)
  File "/usr/lib/python2.7/shutil.py", line 119, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/bin/../lib/python2.7/site-packages/suricata/update/configs/update.yaml'
Actions

Also available in: Atom PDF