Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1643551

Summary: [abrt] dnf: raw_decode(): Expecting value: line 1 column 79 (char 78)
Product: [Fedora] Fedora Reporter: someone <securetalk>
Component: dnfAssignee: Pavla Kratochvilova <pkratoch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, dmach, mblaha, mhatina, packaging-team-maint, pkratoch, renault, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:fafb5f2e65f32bdcb9c9a2832f26bc0a07a0a2f4;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-16 04:48:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
File: backtrace
File: cgroup
File: cpuinfo
File: dnf-makecache.log
File: environ
File: mountinfo
File: namespaces
File: open_fds
File: _var_log_dnf.log none

Description someone 2018-10-26 13:55:15 UTC
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:

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: 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/", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 95, in _main
    cli.configure(list(map(ucd, args)), option_parser())
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 882, in configure
    self._parse_commands(opts, args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 802, in _parse_commands
    self.command = command_cls(self)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/", line 293, in __init__
    self.state = State()
  File "/usr/lib/python3.7/site-packages/dnf-plugins/", line 111, in __init__
  File "/usr/lib/python3.7/site-packages/dnf-plugins/", line 116, in _read
    self._data = json.load(fp)
  File "/usr/lib64/python3.7/json/", line 296, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.7/json/", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.7/json/", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.7/json/", 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

Comment 1 someone 2018-10-26 13:55:21 UTC
Created attachment 1497799 [details]
File: backtrace

Comment 2 someone 2018-10-26 13:55:23 UTC
Created attachment 1497800 [details]
File: cgroup

Comment 3 someone 2018-10-26 13:55:24 UTC
Created attachment 1497801 [details]
File: cpuinfo

Comment 4 someone 2018-10-26 13:55:25 UTC
Created attachment 1497803 [details]
File: dnf-makecache.log

Comment 5 someone 2018-10-26 13:55:27 UTC
Created attachment 1497805 [details]
File: environ

Comment 6 someone 2018-10-26 13:55:28 UTC
Created attachment 1497806 [details]
File: mountinfo

Comment 7 someone 2018-10-26 13:55:30 UTC
Created attachment 1497807 [details]
File: namespaces

Comment 8 someone 2018-10-26 13:55:31 UTC
Created attachment 1497808 [details]
File: open_fds

Comment 9 someone 2018-10-26 13:59:27 UTC
Created attachment 1497810 [details]
File: _var_log_dnf.log

Comment 11 Pavla Kratochvilova 2018-10-31 07:07:50 UTC
The PR has been merged.

Comment 12 Adam Williamson 2018-11-10 00:41:59 UTC
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.

Comment 13 Fedora Update System 2018-11-10 00:45:55 UTC
dnf-plugins-extras-3.0.2-2.fc29 has been submitted as an update to Fedora 29.

Comment 14 Fedora Update System 2018-11-11 05:33:36 UTC
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 for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 15 Couret Charles-Antoine 2018-11-13 08:11:48 UTC
The issue still here, even after cleaning dnf and caches.

Comment 16 Pavla Kratochvilova 2018-11-13 13:07:40 UTC
Hi, cleaning cache is not sufficient in this case; can you please remove the following file?
The system-upgrade should work afterwards.

Comment 17 Couret Charles-Antoine 2018-11-13 14:24:21 UTC
You're right, clean commands for dnf and this plugin is not enough apparently. We have to do that manually.


Comment 18 Adam Williamson 2018-11-13 17:18:12 UTC
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...

Comment 19 Pavla Kratochvilova 2018-11-14 12:52:36 UTC
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.

Comment 20 Fedora Update System 2018-11-16 04:48:58 UTC
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.

Comment 21 Adam Williamson 2019-03-28 16:11:31 UTC
A fix was merged to the plugin, so dropping CommonBugs.