Description of problem: dnf system-upgrade currently doesn't work at all. Happened when trying to update from Fedora 29 to Rawhide, and even after having migrated to Rawhide through another method, this message still appears. Version-Release number of selected component: dnf-4.0.4-1.fc30 Additional info: reporter: libreport-2.9.6 cmdline: /usr/bin/python3 /usr/bin/dnf system-upgrade crash_function: raw_decode exception_type: json.decoder.JSONDecodeError executable: /usr/bin/dnf interpreter: python3-3.7.1-1.fc30.x86_64 kernel: 4.19.0-1.fc30.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: decoder.py:355:raw_decode:json.decoder.JSONDecodeError: Expecting value: line 1 column 79 (char 78) 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.7/site-packages/dnf/cli/main.py", line 179, in user_main errcode = main(args) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 95, in _main cli.configure(list(map(ucd, args)), option_parser()) File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 882, in configure self._parse_commands(opts, args) File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 802, in _parse_commands self.command = command_cls(self) File "/usr/lib/python3.7/site-packages/dnf-plugins/system_upgrade.py", line 293, in __init__ self.state = State() File "/usr/lib/python3.7/site-packages/dnf-plugins/system_upgrade.py", line 111, in __init__ self._read() File "/usr/lib/python3.7/site-packages/dnf-plugins/system_upgrade.py", line 116, in _read self._data = json.load(fp) File "/usr/lib64/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib64/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 79 (char 78) Local variables in innermost frame: self: <json.decoder.JSONDecoder object at 0x7f04f7e2d160> s: '{"download_status": "downloading", "target_releasever": "rawhide", "exclude": ' idx: 0
Created attachment 1497799 [details] File: backtrace
Created attachment 1497800 [details] File: cgroup
Created attachment 1497801 [details] File: cpuinfo
Created attachment 1497803 [details] File: dnf-makecache.log
Created attachment 1497805 [details] File: environ
Created attachment 1497806 [details] File: mountinfo
Created attachment 1497807 [details] File: namespaces
Created attachment 1497808 [details] File: open_fds
Created attachment 1497810 [details] File: _var_log_dnf.log
PR https://github.com/rpm-software-management/dnf-plugins-extras/pull/138
The PR has been merged.
I've backported this fix (and the weak deps one) for F29 and Rawhide packages, since openQA is constantly failing on this and I'd like it not to.
dnf-plugins-extras-3.0.2-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-20133f59b8
dnf-plugins-extras-3.0.2-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-20133f59b8
The issue still here, even after cleaning dnf and caches.
Hi, cleaning cache is not sufficient in this case; can you please remove the following file? /var/lib/dnf/system-upgrade.json The system-upgrade should work afterwards.
You're right, clean commands for dnf and this plugin is not enough apparently. We have to do that manually. Thanks!
Maybe we should enhance the plugin to catch when the file is 'bad' and deal with it somehow...otherwise I'd better write this into the common bugs...
I agree, this needs to be fixed in the plugin. I created bug 1649745 to track the issue, since this one is already ON_QA. Thanks for reporting this.
dnf-plugins-extras-3.0.2-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
A fix was merged to the plugin, so dropping CommonBugs.