All Apps and Add-ons

After installing the Splunk App for Okta on my Splunk Windows installation, why am I getting error "MissingSectionHeaderError: File contains no section headers."?

chuckvm
New Member

Windows Splunk installation, added Splunk Okta app and get the following errors.

INFO pid=3960 tid=MainThread file=okta.py:get_okta_modinput_configs:135 | Set loglevel to WARN
ERROR pid=3960 tid=MainThread file=okta_config.py:check_conf_mgr_result:24 | Failed to set the data input [okta] on disk. Traceback (most recent call last):
  File "\Splunk\etc\apps\Splunk_TA_okta\bin\okta_config.py", line 114, in update_data_input_on_disk
    parser.read(conf_path)
  File "\Splunk\Python-2.7\Lib\ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "\Splunk\Python-2.7\Lib\ConfigParser.py", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
MissingSectionHeaderError: File contains no section headers.
file: \Splunk\etc\apps\Splunk_TA_okta\local\inputs.conf, line: 1
'\xef\xbb\xbf\n'
0 Karma

ekzp
Explorer

In my case of IMAP Mailbox, MissingSectionHeaderConfig was caused by the encoding of the config file - it was encoded with UTF-8. Opened it with Notepad and saved it as ANSI.

Cheers,
Zoltan

0 Karma

ekzp
Explorer

In my case of IMAP Mailbox, MissingSectionHeaderConfig was caused by the encoding of the config file - it was encoded with UTF-8. Opened it with Notepad and saved it as ANSI.

Cheers,
Zoltan

0 Karma

ehaddad_splunk
Splunk Employee
Splunk Employee

We have a fix that is not yet officially released. I can send you the patch if you want to try it out.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...