Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf5 offline-upgrade fails with toml error(s) #1704

Closed
sebastiaanfranken opened this issue Sep 17, 2024 · 4 comments
Closed

dnf5 offline-upgrade fails with toml error(s) #1704

sebastiaanfranken opened this issue Sep 17, 2024 · 4 comments

Comments

@sebastiaanfranken
Copy link

On Fedora 42/Rawhide running dnf offline-upgrade download -y works as it should and downloads any updates. The next step dnf offline-upgrade reboot fails with a DNF5/toml error:

Error reading state: [error] toml::parse_file: invalid table key
 --> /usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml
   |
 1 | [
   |  ^-- expected basic key([a-zA-Z0-9_-]) or quoted key(" or ')
. Rerun the command you used to initiate the offline transaction, e.g. `dnf5 system-upgrade download [OPTIONS]`.

Which appears related to #1186 . The toml file mentioned (/usr/lib/sysimages/libdnf5/offline/offline-transaction-state.toml) has the following:

[
    "offline-transaction-state",
    {module_platform_id = "", poweroff_after = false, verb = "upgrade", system_releasever = "rawhide", target_releasever = "rawhide", cachedir = "/var/cache/libdnf5", status = "download-complete", cmd_line = "dnf offline-upgrade download -y", state_version = 1},
]

Info about my system (dnf --version):

dnf5 version 5.2.6.0
dnf5 plugin API version 2.0
libdnf5 version 5.2.6.0
libdnf5 plugin API version 2.0

Loaded dnf5 plugins:
  name: builddep
  version: 1.0.0
  API version: 2.0

  name: changelog
  version: 1.0.0
  API version: 2.0

  name: config-manager
  version: 0.1.0
  API version: 2.0

  name: copr
  version: 0.1.0
  API version: 2.0

  name: needs_restarting
  version: 1.0.0
  API version: 2.0

  name: repoclosure
  version: 1.0.0
  API version: 2.0
@ppisar
Copy link
Contributor

ppisar commented Sep 18, 2024

Duplicate of #1693.

@ppisar ppisar closed this as completed Sep 18, 2024
@sebastiaanfranken
Copy link
Author

@ppisar Closing this was maybe a tad fast, since #1693 and #1694 don't actually fix it, it started happennig for me 3 days ago, while both references issues are marked as solved 5 or so days ago. So far I've been applying updates the old fashioned way with sudo dnf upgrade, but that hasn't fixed it. Or is this a Fedora packaging issue and I'm barking up the wrong tree?

@ppisar
Copy link
Contributor

ppisar commented Sep 26, 2024

I dare to say you are using old DNF5: You reported an issue in 5.2.6.0. Then #1694 fixed with b8fbbb1 commit. Then 5.2.6.1 was released. Then 5.2.6.1 was built in Fedora 42 on 2024-09-20.

This issue tracker tracks a developmental code here on GitHub. Once it is fixed in GitHub repository, the issue is closed here. If you want tracking issues from Fedora point of view, you need to use Fedora's Bugzilla.

@sebastiaanfranken
Copy link
Author

Something odd was going on in that case, since the latest update (yesterday, for this machine) pulled in a update to dnf5 (libdnf5) version 5.2.6.2 which indeed fixed this. Thanks for the assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants