IBM Support

The IBM Resilient Circuits service failed to start due to "backports.configparser.NoSectionError: No section:xxx" error

Troubleshooting


Problem

The IBM Resilient Circuits service failed to start and backports.configparser.NoSectionError: No section: xxxx was seen in /var/log/messages.

Symptom

IBM Resilient Circuits could not be started. Upon closer inspection of /var/log/message, the following stack trace was found.
Apr 16 18:15:04 server resilient-circuits: File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2434, in load
Apr 16 18:15:04 server resilient-circuits: return self.resolve()
Apr 16 18:15:04 server resilient-circuits: File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
Apr 16 18:15:04 server resilient-circuits: module = __import__(self.module_name, fromlist=['__name__'], level=0)
Apr 16 18:15:04 server resilient-circuits: File "/crypt/integration/functions/send_emails/send_emails/components/funct_send_emails.py", line 6, in <module>
Apr 16 18:15:04 server resilient-circuits: import send_emails.util.email_module as email
Apr 16 18:15:04 server resilient-circuits: File "/crypt/integration/functions/send_emails/send_emails/util/email_module.py", line 30, in <module>
Apr 16 18:15:04 server resilient-circuits: email_server = Config.get("email_module", "email_server")
Apr 16 18:15:04 server resilient-circuits: File "/usr/lib/python2.7/site-packages/backports/configparser/__init__.py", line 784, in get
Apr 16 18:15:04 server resilient-circuits: d = self._unify_values(section, vars)
Apr 16 18:15:04 server resilient-circuits: File "/usr/lib/python2.7/site-packages/backports/configparser/__init__.py", line 1160, in _unify_values
Apr 16 18:15:04 server resilient-circuits: raise NoSectionError(section)
Apr 16 18:15:04 server resilient-circuits: backports.configparser.NoSectionError: No section: 'email_module'
Apr 16 18:15:04 server systemd: resilient_circuits_int-mna.service: main process exited, code=exited, status=1/FAILURE
Apr 16 18:15:04 server systemd: Unit resilient_circuits_int-mna.service entered failed state.
Apr 16 18:15:04 server systemd: resilient_circuits_int-mna.service failed.
Apr 16 18:15:04 server systemd: resilient_circuits_int-mna.service holdoff time over, scheduling restart.
Apr 16 18:15:04 server systemd: Stopped Resilient-Circuits Service.

Diagnosing The Problem

  • Output from pip freeze
  • app.config
The app.config correctly included [email-module], however, when trying to initialize this component, it failed due to a problem with the client's Python environment.
The output from pip freeze showed the configparser package was not at the correct version.
configparser==0.0.0

Resolving The Problem

Uninstall the configparser package by using pip and then install the correct version.
pip uninstall configparser
pip install configparser==3.7.4
On startup of IBM Resilient Circuits, the component passed initialization.

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSIP9Q","label":"IBM Security SOAR"},"ARM Category":[{"code":"a8m0z0000008ZtGAAU","label":"Integrations->Resilient Circuits"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
19 April 2021

UID

ibm16194235