Project

General

Profile

Actions

Bug #2526

closed

list-enabled-sources >> AttributeError: 'module' object has no attribute 'filename'

Added by Wim Claes over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Dear,
I'm new to linux/suricata. Suricata is running ok, but the Suricata-Update tool gives a python error when using the list-enabled-sources option. Here's the outcome using the -v option as well.

suricata-update v list-enabled-sources
6/7/2018 -
19:16:40 - <Info> -- Loading /etc/suricata/update.yaml
6/7/2018 -- 19:16:40 - <Debug> -- Setting configuration value verbose > True
6/7/2018 -
19:16:40 - <Debug> -- Setting configuration value subcommand > list-enabled-sources
6/7/2018 -
19:16:40 - <Debug> -- Setting configuration value func > <function list_enabled_sources at 0x7fe7758dbcf8>
6/7/2018 -
19:16:40 - <Debug> -- This is suricata-update version 1.0.0b1 (rev: dc1a320); Python: 2.7.13 (default, Nov 24 2017, 17:33:09) - [GCC 6.3.0 2017051
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/local/sbin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/local/bin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/sbin
6/7/2018 -- 19:16:40 - <Debug> -- Looking for suricata in /usr/bin
6/7/2018 -- 19:16:40 - <Debug> -- Found /usr/bin/suricata.
6/7/2018 -- 19:16:40 - <Info> -- Found Suricata version 4.0.4 at /usr/bin/suricata.
Traceback (most recent call last):
File "/usr/local/bin/suricata-update", line 26, in <module>
sys.exit(main.main())
File "/usr/local/lib/python2.7/dist-packages/suricata/update/main.py", line 1372, in main
sys.exit(_main())
File "/usr/local/lib/python2.7/dist-packages/suricata/update/main.py", line 1149, in _main
return args.func()
File "/usr/local/lib/python2.7/dist-packages/suricata/update/commands/listenabledsources.py", line 37, in list_enabled_sources
print("From %s:" % (config.filename))
AttributeError: 'module' object has no attribute 'filename'

Thank you in advance.
Kind regards

Actions #1

Updated by Jason Ish over 5 years ago

  • Target version set to 1.0.0
Actions #2

Updated by Jason Ish over 5 years ago

  • Status changed from New to Closed
Actions #3

Updated by Jason Ish over 5 years ago

  • Target version changed from 1.0.0 to 1.0.0rc1
Actions #4

Updated by Wim Claes over 5 years ago

Jason Ish wrote:

Fixed and merged. https://github.com/OISF/suricata-update/pull/39

Thank you! I confirm the error is gone and output looks ok (using 1.0.0rc1).

suricata-update list-enabled-sources
26/7/2018 -- 20:33:44 - <Info> -- Loading /etc/suricata/update.yaml
26/7/2018 -- 20:33:44 - <Info> -- Using data-directory /var/lib/suricata.
26/7/2018 -- 20:33:44 - <Info> -- Using Suricata configuration /etc/suricata/suricata.yaml
26/7/2018 -- 20:33:44 - <Info> -- Using /etc/suricata/rules for Suricata provided rules.
26/7/2018 -- 20:33:44 - <Info> -- Found Suricata version 4.0.4 at /usr/bin/suricata.
From /etc/suricata/update.yaml:
- https://rules.emergingthreats.net/open/suricata-%(version)s/emerging.rules.tar.gz
- https://sslbl.abuse.ch/blacklist/sslblacklist.rules
- https://www.snort.org/rules/snortrules-snapshot-29111.tar.gz?oinkcode=xxxxxxxxxxxxxxxxxxxxx
Enabled sources:
- oisf/trafficid
- ptresearch/attackdetection
- et/open

Actions

Also available in: Atom PDF