coreos / rpm-ostree

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

Failed to start rpm-ostreed service: core dump when executing rpm-ostree update #5079

Closed CleoMenezesJr closed 2 months ago

CleoMenezesJr commented 2 months ago

Describe the bug

When trying to execute the rpm-ostree update command, the rpm-ostreed.service fails to start, resulting in a core dump.

Reproduction steps

  1. Run the command rpm-ostree commands as update, 'status' or rebase.

Expected behavior

Being able to update or rebase without errors

Actual behavior

$ rpm-ostree update
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

Using sudo, this brings up other information:

$ sudo rpm-ostree update
Job for rpm-ostreed.service failed because a fatal signal was delivered causing the control process to dump core.
See "systemctl status rpm-ostreed.service" and "journalctl -xeu rpm-ostreed.service" for details.
× 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 Tue 2024-09-03 22:28:03 -04; 9ms ago
 Invocation: 3cc106997d5445c4810a2e528f952afe
       Docs: man:rpm-ostree(1)
    Process: 7424 ExecStart=rpm-ostree start-daemon (code=dumped, signal=ABRT)
   Main PID: 7424 (code=dumped, signal=ABRT)
   Mem peak: 4.2M
        CPU: 34ms

set 03 22:28:02 fedora systemd[1]: Starting rpm-ostreed.service - rpm-ostree System Management Daemon...
set 03 22:28:02 fedora rpm-ostree[7424]: Reading config file '/etc/rpm-ostreed.conf'
set 03 22:28:02 fedora rpm-ostree[7424]: **
set 03 22:28:02 fedora rpm-ostree[7424]: rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, char***, char…
set 03 22:28:02 fedora rpm-ostree[7424]: Bail out! rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, cha…
set 03 22:28:03 fedora systemd[1]: rpm-ostreed.service: Main process exited, code=dumped, status=6/ABRT
set 03 22:28:03 fedora systemd[1]: rpm-ostreed.service: Failed with result 'core-dump'.
set 03 22:28:03 fedora systemd[1]: Failed to start rpm-ostreed.service - rpm-ostree System Management Daemon.
Hint: Some lines were ellipsized, use -l to show in full.
error: Loading sysroot: exit status: 1

journalctl

$ journalctl -xeu rpm-ostreed.service
set 03 22:38:15 fedora systemd[1]: rpm-ostreed.service: Main process exited, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit rpm-ostreed.service has exited.
░░ 
░░ The process' exit code is 'dumped' and its exit status is 6.
set 03 22:38:15 fedora systemd[1]: rpm-ostreed.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit rpm-ostreed.service has entered the 'failed' state with result 'core-dump'.
set 03 22:38:15 fedora systemd[1]: Failed to start rpm-ostreed.service - rpm-ostree System Management Daemon.
░░ Subject: A unidade rpm-ostreed.service falhou
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade rpm-ostreed.service falhou.
░░ 
░░ O resultado é failed.
set 03 22:38:18 fedora systemd[1]: Starting rpm-ostreed.service - rpm-ostree System Management Daemon...
░░ Subject: Unidade rpm-ostreed.service sendo iniciado
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade rpm-ostreed.service está sendo iniciada.
set 03 22:38:18 fedora rpm-ostree[8739]: Reading config file '/etc/rpm-ostreed.conf'
set 03 22:38:18 fedora rpm-ostree[8739]: **
set 03 22:38:18 fedora rpm-ostree[8739]: rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, char***, char>
set 03 22:38:18 fedora rpm-ostree[8739]: Bail out! rpm-ostreed:ERROR:src/libpriv/rpmostree-util.cxx:510:gboolean rpmostree_deployment_get_layered_info(OstreeRepo*, OstreeDeployment*, gboolean*, guint*, char**, cha>
set 03 22:38:18 fedora systemd[1]: rpm-ostreed.service: Main process exited, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit rpm-ostreed.service has exited.
░░ 
░░ The process' exit code is 'dumped' and its exit status is 6.
set 03 22:38:18 fedora systemd[1]: rpm-ostreed.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit rpm-ostreed.service has entered the 'failed' state with result 'core-dump'.
set 03 22:38:18 fedora systemd[1]: Failed to start rpm-ostreed.service - rpm-ostree System Management Daemon.
░░ Subject: A unidade rpm-ostreed.service falhou
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A unidade rpm-ostreed.service falhou.
░░ 
░░ O resultado é failed.

System details

Additional information

No response

HuijingHei commented 2 months ago

The error is the same as https://github.com/coreos/rpm-ostree/issues/5048, and already fixed by Colin's PR which will be included in the next release.

HuijingHei commented 2 months ago

The issue should be fixed with the new rpm-ostree-2024.8-1.fc42, could you help to verify if the issue is gone? Thanks!

CleoMenezesJr commented 2 months ago

The issue should be fixed with the new rpm-ostree-2024.8-1.fc42, could you help to verify if the issue is gone? Thanks!

Hey, that's fixed. Thank you!

HuijingHei commented 2 months ago

The issue should be fixed with the new rpm-ostree-2024.8-1.fc42, could you help to verify if the issue is gone? Thanks!

Hey, that's fixed. Thank you!

Thank you so much for your testing!