Bug 1489898 - [abrt] dnf: _read(): configparser.py:1080:_read:configparser.MissingSectionHeaderError: File contains no section headers.
Summary: [abrt] dnf: _read(): configparser.py:1080:_read:configparser.MissingSectionHe...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:8b9c8a20b8881f6b4b367215d41...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-08 15:22 UTC by smanocch
Modified: 2017-09-13 13:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-13 13:23:12 UTC
Type: ---


Attachments (Terms of Use)
File: _var_log_dnf.log (50.65 KB, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: backtrace (2.48 KB, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: cgroup (311 bytes, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: cpuinfo (1.23 KB, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: environ (2.14 KB, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: mountinfo (3.63 KB, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: namespaces (102 bytes, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details
File: open_fds (431 bytes, text/plain)
2017-09-08 15:22 UTC, smanocch
no flags Details

Description smanocch 2017-09-08 15:22:16 UTC
Description of problem:
Running dnf update

Version-Release number of selected component:
dnf-2.6.3-1.fc26

Additional info:
reporter:       libreport-2.9.1
cmdline:        /usr/libexec/system-python /bin/dnf -v update
crash_function: _read
dnf-makecache.log: -- No entries --
exception_type: configparser.MissingSectionHeaderError
executable:     /bin/dnf
kernel:         4.12.5-300.fc26.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
configparser.py:1080:_read:configparser.MissingSectionHeaderError: File contains no section headers.
file: '<???>', line: 1
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n'

Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 95, in _main
    cli.configure(list(map(ucd, args)), option_parser())
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 839, in configure
    self.base.init_plugins(opts.disableplugin, opts.enableplugin, self)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 236, in init_plugins
    self._plugins._run_init(self, cli)
  File "/usr/lib/python3.6/site-packages/dnf/plugin.py", line 127, in _run_init
    plugin = p_cls(base, cli)
  File "/usr/lib/python3.6/site-packages/dnf-plugins/ibm-repository.py", line 64, in __init__
    self.processRouterResponse(routerResponseData)
  File "/usr/lib/python3.6/site-packages/dnf-plugins/ibm-repository.py", line 281, in processRouterResponse
    allrepocfg.readfp(repodatabuf)
  File "/usr/lib64/python3.6/configparser.py", line 763, in readfp
    self.read_file(fp, source=filename)
  File "/usr/lib64/python3.6/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib64/python3.6/configparser.py", line 1080, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '<???>', line: 1
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n'

Local variables in innermost frame:
mo: None
cur_indent_level: 0
first_nonspace: <_sre.SRE_Match object; span=(0, 1), match='<'>
value: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
prefix: ';'
inline_prefixes: {}
comment_start: None
line: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n'
e: None
indent_level: 0
lineno: 1
optname: None
sectname: None
cursect: None
elements_added: set()
fpname: '<???>'
fp: <_io.StringIO object at 0x7efcfb8f35e8>
self: <configparser.ConfigParser object at 0x7efd0c57ab70>

Comment 1 smanocch 2017-09-08 15:22:26 UTC
Created attachment 1323773 [details]
File: _var_log_dnf.log

Comment 2 smanocch 2017-09-08 15:22:28 UTC
Created attachment 1323774 [details]
File: backtrace

Comment 3 smanocch 2017-09-08 15:22:29 UTC
Created attachment 1323775 [details]
File: cgroup

Comment 4 smanocch 2017-09-08 15:22:31 UTC
Created attachment 1323776 [details]
File: cpuinfo

Comment 5 smanocch 2017-09-08 15:22:34 UTC
Created attachment 1323777 [details]
File: environ

Comment 6 smanocch 2017-09-08 15:22:36 UTC
Created attachment 1323778 [details]
File: mountinfo

Comment 7 smanocch 2017-09-08 15:22:38 UTC
Created attachment 1323779 [details]
File: namespaces

Comment 8 smanocch 2017-09-08 15:22:40 UTC
Created attachment 1323780 [details]
File: open_fds

Comment 9 Jaroslav Mracek 2017-09-13 13:23:12 UTC
Thanks a lot for your report. It looks like that problem is in dnf plugin ibm-repository, but it is not provided by dnf or by fedora. I see that the plugin during init part tries to open the conf file, but the file doesn't have a section header. Unfortunately I don't have the code of that plugin, therefore I don't know more from provided information. Please if the problem is somewhere else don't hesitate to reopen the bug report. Also don't hesitate to contact me with additional information. Even third party plugins are important for us.


Note You need to log in before you can comment on or make changes to this bug.