Version-Release number of selected component: dnf-2.7.5-2.fc27 Additional info: reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /usr/bin/dnf group crash_function: _add_from_xml_filename exception_type: _libpycomps.ParserError executable: /usr/bin/dnf kernel: 4.14.14-300.fc27.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: comps.py:328:_add_from_xml_filename:_libpycomps.ParserError: Fatal parser error Traceback (most recent call last): File "/usr/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 99, in _main return cli_run(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run cli.run() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1014, in run return self.command.run() File "/usr/lib/python3.6/site-packages/dnf/cli/commands/group.py", line 375, in run self._grp_setup() File "/usr/lib/python3.6/site-packages/dnf/cli/commands/group.py", line 108, in _grp_setup self.base.read_comps(arch_filter=True) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 550, in read_comps self._comps._add_from_xml_filename(decompressed) File "/usr/lib/python3.6/site-packages/dnf/comps.py", line 328, in _add_from_xml_filename ret = comps.fromxml_f(fn) _libpycomps.ParserError: Fatal parser error Local variables in innermost frame: comps: <_libpycomps.Comps object at 0x7f2542c98b70> fn: '/var/tmp/dnf-elzi-qogip5ia/updates-09879b494aeba108/repodata/gen/groups.xml' self: <dnf.comps.Comps object at 0x7f2542ce65f8>
Created attachment 1385286 [details] File: _var_log_dnf.log
Created attachment 1385287 [details] File: backtrace
Created attachment 1385288 [details] File: cgroup
Created attachment 1385289 [details] File: cpuinfo
Created attachment 1385290 [details] File: dnf-makecache.log
Created attachment 1385291 [details] File: environ
Created attachment 1385292 [details] File: mountinfo
Created attachment 1385293 [details] File: namespaces
Created attachment 1385294 [details] File: open_fds
Similar problem has been detected: This can be triggered by just running 'dnf groupinstall base-x' from a Fedora 27 system. It started happening between 19 hours ago and 10 hours ago. I think it's a problem with the repo metadata, as it can be triggered on a system which wasn't updated in that time frame. reporter: libreport-2.9.3 cmdline: /usr/bin/python3 /bin/dnf groupinstall base-x crash_function: _add_from_xml_filename exception_type: _libpycomps.ParserError executable: /bin/dnf kernel: 4.14.13-300.fc27.x86_64 package: dnf-2.7.5-2.fc27 reason: comps.py:328:_add_from_xml_filename:_libpycomps.ParserError: Fatal parser error runlevel: N 5 type: Python3 uid: 0
*** Bug 1538018 has been marked as a duplicate of this bug. ***
Note, this was caused by bad repodata (empty comps.xml) making it out to the mirrors; apparently there was an NFS hiccup during the sync which caused this to happen. releng is running an emergency update push to clear up the problem. Will leave the bug open just in case DNF folks think it makes sense to handle this case a bit more cleanly (i.e. not just crash on the parser exception but handle or pre-empt it somehow).
*** Bug 1538166 has been marked as a duplicate of this bug. ***
Just did `dnf clean metadata` then `dnf update` and the problem resolved.
*** Bug 1538151 has been marked as a duplicate of this bug. ***
PR https://github.com/rpm-software-management/dnf/pull/1015
*** Bug 1538036 has been marked as a duplicate of this bug. ***
*** Bug 1544407 has been marked as a duplicate of this bug. ***
*** Bug 1586014 has been marked as a duplicate of this bug. ***
The issue is solved by dnf-3.0.1-1 that was released into rawhide.