Getting error while running insights-client command ParseException: There was an exception when parsing one of the httpd config files

Solution Verified - Updated -

Issue

  • Running insights-client command on the host fails with the following message:

    Traceback (most recent call last):
    File "/var/lib/insights/last_stable.egg/insights/core/plugins.py", line 170, in invoke
    r = self.component(d)
    File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 160, in __init__
    super(HttpdConfBase, self).__init__(*args, **kwargs)
    File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 89, in __init__
    self._handle_content(context)
    File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 92, in _handle_content
    self.parse_content(context.content)
    File "/var/lib/insights/last_stable.egg/insights/core/__init__.py", line 347, in parse_content
    self.doc = self.parse_doc(content)
    File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 165, in parse_doc
    result = self.parse(content)[0]
    File "/var/lib/insights/last_stable.egg/insights/parsers/httpd_conf.py", line 84, in __call__
    raise ParseException("There was an exception when parsing one of the httpd config files.")
    ParseException: There was an exception when parsing one of the httpd config files.
    

Environment

  • Red Hat Insights
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content