StamusNetworks / SELKS

A Suricata based IDS/IPS/NSM distro
https://www.stamus-networks.com/open-source/#selks
GNU General Public License v3.0
1.49k stars 285 forks source link

Scirius Update Error #323

Open absentrecall opened 3 years ago

absentrecall commented 3 years ago

Updated scirius to 3.7.0-2 on a SELKS 6 system. The system was running perfectly before the update. The update failed with the following error:

279 static files symlinked to '/var/lib/scirius/static'. Operations to perform:  Apply all migrations: accounts, auth, authtoken, contenttypes, rules, sessions, suricata Running migrations: Applying accounts.0006_fix_role_default_priority... OK /var/lib/scirius Restarted supervisord error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib/python2.7/xmlrpclib.py line: 800 Processing triggers for systemd (241-7~deb10u7) ...

After this update failure, going to the "Hunting" menu results in the following error in my browser:

Request Method: GET

https://selks.taomanor.com/rules/hunt 2.2.24 KeyError 'assets' /usr/share/python/scirius/lib/python3.7/site-packages/webpack_loader/loader.py in get_bundle, line 90 /usr/bin/python3 3.7.3 ['/usr/share/python/scirius/lib/python3.7/site-packages', '/usr/share/python/scirius/lib/python3.7/site-packages/git/ext/gitdb', '/usr/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages', '/usr/share/python/scirius/lib/python3.7/site-packages/gitdb/ext/smmap'] Mon, 21 Jun 2021 02:42:31 +0000

How do I recover from this update error?

pevma commented 3 years ago

@absentrecall - can you please try to upgrade again , pushed a new package to the testing repo that should take care of this.

absentrecall commented 3 years ago

Thanks for the fast response! I just did the upgrade again as requested to 3.7.0-3. I still have the following error during the upgrade:

279 static files symlinked to '/var/lib/scirius/static'. Operations to perform: Apply all migrations: accounts, auth, authtoken, contenttypes, rules, sessions, suricata Running migrations: Applying rules.0087_systemsettings_use_proxy_for_es... OK /var/lib/scirius Restarted supervisord error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib/python2.7/xmlrpclib.py line: 800 Processing triggers for systemd (241-7~deb10u7) ...

After the upgrade, I can now open the Hunting module but it currently has no data immediately after the upgrade. I assume it will start populating over time. Since the Hunting module appears to be working again, what does the error message above indicate? or can it be ignored?

pevma commented 3 years ago

Yes, it needs traffic to start populating. The error could be disregarded for now.

absentrecall commented 3 years ago

I just updated scirius from 3.7.0-3 to 3.7.0-5. I got the same error in /usr/lib/python2.7/xmlrpclib.py as before:

279 static files symlinked to '/var/lib/scirius/static'. Operations to perform:  Apply all migrations: accounts, auth, authtoken, contenttypes, rules, sessions, suricata Running migrations: Applying rules.0088_ruleprocessingfilter_import_member... OK Cache table 'my_cache_table' already exists. /var/lib/scirius Restarted supervisord error: <class 'xmlrpclib.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib/python2.7/xmlrpclib.py line: 800 Processing triggers for systemd (241-7~deb10u8) ...

However, everything seems to be working. Is there anything I should do to resolve this update error?

pevma commented 3 years ago

Lattes package should be ok. The err is/should be minor/informative for now I think.

pevma commented 3 years ago

We should fix the notification in a later pkg. Might be python related which the latest Scirius pkg does not use.