Bug 2345199
| Summary: | Dnf crashes while loading TOML file | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | lucacorbioli12345 |
| Component: | dnf5 | Assignee: | rpm-software-management |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | daniel.mach, jkolarik, jmracek, jrohel, mblaha, nsella, packaging-team-maint, pkratoch, ppisar, rpm-software-management |
| Target Milestone: | --- | Keywords: | Regression, Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-02-13 13:19:05 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
lucacorbioli12345
2025-02-12 14:04:15 UTC
This can happen when DNF crashes leaving that file half-updated, possible empty. E.g. when a disk space runs out, or a user kills the DNF process. Subsequent DNF invocation that resort to this error about inability of not loading the invalid TOML file. Is that your case? Unless you have a backup of that file, simply remove it. It's quite possible that DNF will complain about other files. Once you remove all of them, DNF should work again. The downside is that you will loose data that were stored in those files, like DNF history, package installation reason, etc. Upstream has a tickets <https://github.com/rpm-software-management/dnf5/issues/1609>, <https://github.com/rpm-software-management/dnf5/issues/1610> to make handling the TOML files more resilient. (In reply to Petr Pisar from comment #1) > This can happen when DNF crashes leaving that file half-updated, possible > empty. E.g. when a disk space runs out, or a user kills the DNF process. > Subsequent DNF invocation that resort to this error about inability of not > loading the invalid TOML file. Is that your case? > > Unless you have a backup of that file, simply remove it. It's quite possible > that DNF will complain about other files. Once you remove all of them, DNF > should work again. The downside is that you will loose data that were stored > in those files, like DNF history, package installation reason, etc. > > Upstream has a tickets > <https://github.com/rpm-software-management/dnf5/issues/1609>, > <https://github.com/rpm-software-management/dnf5/issues/1610> to make > handling the TOML files more resilient. Thanks a lot. Only had to remove nevras.toml to make it work. The data is lost as you said but it's not affecting functionality so it's no big deal. The problem might have been a crash of the Fedora's "Software" application while restarting. Probable Cause Note: I used "Software" to update the system the other day before using dnf and receiving the error. After I rebooted the machine I didn't even check if it really updated. Maybe that was what caused the problem because I checked this morning to try to find the issue and Software still says that it needs to update. I received no error message so I assumed it had worked but it may have crashed. Leaving this here in case anyone else finds this issue. Thank you for your time Petr. *** This bug has been marked as a duplicate of bug 2330306 *** |