Bug #6132

Updated by Jason Ish about 1 year ago

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> 
   File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/", line 1372, in main 
   File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/", line 1122, in _main 
     return dump_sample_configs() 
   File "/opt/suricata/7.0.0-rc2-dev/lib/suricata/python/suricata/update/", line 671, in dump_sample_configs 
     shutil.copy(os.path.join(, filename), filename) 
   File "/usr/lib64/python3.11/", line 419, in copy 
     copyfile(src, dst, follow_symlinks=follow_symlinks) 
   File "/usr/lib64/python3.11/", 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: