Bug 2358625
| Summary: | use to-be-implemented dnf5 --wait option in akmods-induced kmod installation | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | René Genz <liebundartig> |
| Component: | akmods | Assignee: | Nicolas Chauvet (kwizart) <kwizart> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | edgar.hoch, hdegoede, hobbes1069, kwizart, negativo17, nicolas.vieville, ppywlkiqletw, travier, yuntaz |
| Target Milestone: | --- | Keywords: | RFE |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-11-21 15:38:52 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
René Genz
2025-04-09 13:50:19 UTC
Another scenario, which could be more common: If you run a dnf upgrade with a lot of pending updates, the file triggers are all run after the post-transactions which started the akmods build process. When akmods try to install the new akmod module, the file triggers are still running and therefore the database is still locked. Unfortunately, people who run into that problem rarely provide the log file which could prove this scenario. Hi, I tried updating to kernel-6.15.10-200 with dnf update --offline (NVIDIA driver was already installed). The update included a new kernel, which required akmods to build the NVIDIA driver. The offline transaction got stuck, and I had to power off the system manually. The logs show that dnf5-offline-transaction.service failed with AccessDenied due to an active block inhibitor from akmods. In the end, the driver and other updates were installed correctly.
```
[ OK ] Created slice system-akmods\x2dkey...lice - Slice /system/akmods-keygen.
[ OK ] Created slice system-akmods.slice - Slice /system/akmods.
[ OK ] Reached target akmods-keygen.target.
Starting akmods.10-200.fc42.x...ds from akmod for a given kernel...
[ OK ] Started run-p35972-i35973.service ...ystemctl start man-db-cache-update.
Starting man-db-cache-update.service...
[ OK ] Started run-p36227-i136228.service ..ystemctl start man-db-cache-update.
[ 141.928938] dnf5[1313]: [37/37] Removing git-delta-0:0.18.2-8.f 100% | 2.8 Bis | 14.0 B | 00m46s
[ 141.929288] dnf5[1313]: Warning: skipped OpenPGP checks for 17 packages from repository: updates
[ 141.929288] dnf5[1313]: [org.freedesktop.DBus.Error.AccessDenied] Access denied due to active block inhibitor
[FAILED] Failed to start dnf5-offline-trans... upgrade/transaction using DNF 5.
See 'systemctl status dnf5-offline-transaction.service' for details.
[ OK ] Reached target system-update.target - Offline System Update.
Starting dnf5-offline-transaction-...e/transaction using DNF5 failed...
[ FAILED ] Failed to start dnf5-offline-trans...ade/transaction using DNF 5 failed.
See ‘systemctl status dnf5-offline-transaction-cleanup.service' for details.
[ OK ] Finished man-db-cache-update.service.
DURING updates: [ .. ] Job akmods.10-200.fc42.x86_64....ice/start running (44s / no limit)
AFTER updates: [ 0K ] Finished akmods.10-200.fc42.x...mods from akmod for a given kernel.
```
The same issue happened again when updating to kernel-6.16.3-200 with --offline option. I removed the rhgb kernel argument so the logs provide more detail. The issue occurs right after “Transaction complete! Cleaning up and rebooting…”.
```
Running %posttrans scriptlet: kernel-modules-core-0:6.16.3-200.fc42.x86_64...
Running %posttrans scriptlet: kernel-core-0:6.16.3-200.fc42.x86_64...
[ OK ] Created slice system-akmods\x2dkeygen.slice - Slice /system/akmods-keygen.
[ OK ] Created slice system-akmods.slice - Slice /system/akmods.
[ OK ] Reached target akmods-keygen.target.
Starting akmods.3-200.fc42_x86_64.service - Builds and install new kmods from akmod for a given kernel...
Running %posttrans scriptlet: kernel-modules-0:6.16.3-200.fc42.x86_64...
[ OK ] Started run-p35729-i35730.service - [systemd-run] /usr/bin/systemctl start man-db-cache-update.
Starting man-db-cache-update.service...
[ OK ] Started run-p35745-i35746.service - [systemd-run] /usr/bin/systemctl start man-db-cache-update.
[ 91.330313] dnf5[1345]: [31/31] Removing python3-perf-0:6.15.10 100% | 0.0 B/s | 6.0 B | 00m33s
[ 91.330454] dnf5[1345]: Warning: skipped OpenPGP checks for 14 packages from repository: updates
Transaction complete! Cleaning up and rebooting...
[ 91.359126] dnf5[1345]: [org.freedesktop.DBus.Error.AccessDenied] Access denied due to active block inhibitor
[FAILED] Failed to start dnf5-offline-transaction.service - Offline upgrades/transactions using DNF 5.
See 'systemctl status dnf5-offline-transaction.service' for details.
[ OK ] Reached target system-update.target - Offline System Update.
Starting dnf5-offline-transaction-cleanup.service - Offline upgrade/transaction using DNF 5 failed...
[FAILED] Failed to start dnf5-offline-transaction-cleanup.service - Offline upgrade/transaction using DNF 5 failed.
See 'systemctl status dnf5-offline-transaction-cleanup.service' for details.
[ OK ] Finished man-db-cache-update.service
[ OK ] Finished akmods.3-200.fc42.x86_64.service - Builds and install new kmods from akmod for a given kernel.
```
After that, the update got stuck again, just like before.
Thanks for having worded the initial proposal. I think the way forward is more likely to implement libdnf5-actions instead. *** This bug has been marked as a duplicate of bug 2397307 *** |