coreos / rpm-ostree

⚛📦 Hybrid image/package system with atomic upgrades and package layering
https://coreos.github.io/rpm-ostree
Other
858 stars 195 forks source link

rpm-ostreed.service not started because of asseration error after a rollback #5072

Closed dubst3pp4 closed 4 weeks ago

dubst3pp4 commented 4 weeks ago

Describe the bug

Hello,

I'm using Fedora Silverblue 40 and had a bug with podman. Therefore, I switched back to an older Silverblue image because I know that podman worked fine with that version.

I did the rollback with

$ sudo rpm-ostree deploy 40.20240817.0
$ systemctl reboot

The good news: podman now works again as expected ;-) The bad news: rpm-ostree cannot be used anymore because the rpm-ostreed.service fails to start.

Reproduction steps

  1. I want to check the currently deployed image with
$ rpm-ostree status    
error: Loading sysroot: Failed to invoke RegisterClient: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.projectatomic.rpmostree1': startup job failed
  1. I check if the service is running
$ systemctl status rpm-ostreed.service
× rpm-ostreed.service - rpm-ostree System Management Daemon
     Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: core-dump) since Thu 2024-08-29 09:13:18 CEST; 50s ago
       Docs: man:rpm-ostree(1)
    Process: 14371 ExecStart=rpm-ostree start-daemon (code=dumped, signal=ABRT)
   Main PID: 14371 (code=dumped, signal=ABRT)
        CPU: 32ms

Aug 29 09:13:18 dell systemd[1]: Starting rpm-ostreed.service - rpm-ostree System Management Daemon...
Aug 29 09:13:18 dell rpm-ostree[14371]: Reading config file '/etc/rpm-ostreed.conf'
Aug 29 09:13:18 dell rpm-ostree[14371]: **
Aug 29 09:13:18 dell rpm-ostree[14371]: rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, char***, char***, GVariant**, GVariant**, GVariant**, GError**): assertion failed: (g_variant_dict_lookup (dict, "rpmostree.modules", "^as", &layered_modules))
Aug 29 09:13:18 dell rpm-ostree[14371]: Bail out! rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, char***, char***, GVariant**, GVariant**, GVariant**, GError**): assertion failed: (g_variant_dict_lookup (dict, "rpmostree.modules", "^as", &layered_modules))
Aug 29 09:13:18 dell systemd[1]: rpm-ostreed.service: Main process exited, code=dumped, status=6/ABRT
Aug 29 09:13:18 dell systemd[1]: rpm-ostreed.service: Failed with result 'core-dump'.
Aug 29 09:13:18 dell systemd[1]: Failed to start rpm-ostreed.service - rpm-ostree System Management Daemon.

Expected behavior

To be honest, I expected that rpm-ostree still works after the rollback ;-)

Actual behavior

I'm not able to use rpm-ostree anymore as long as it depends on the service.

System details

$ rpm-ostree --version
rpm-ostree:
 Version: '2024.6'
 Git: 1dda51b264eec8003eb6032f1f41844754ec163b
 Features:
  - rust
  - compose
  - container
  - fedora-integration

and

$ uname -a
Linux dell 6.10.4-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Aug 11 15:32:50 UTC 2024 x86_64 GNU/Linux

Additional information

No response

dubst3pp4 commented 4 weeks ago

Seems to be the same error as reported in https://github.com/coreos/rpm-ostree/issues/5048

cgwalters commented 4 weeks ago

Yes, it's a dup of #5048