coreos / rpm-ostree

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

Stuck at error: Transaction in progress: upgrade (download only) #2109

Open andreldmonteiro opened 4 years ago

andreldmonteiro commented 4 years ago

Host system details Fedora silverblue 32

Provide the output of rpm-ostree status.

$ rpm-ostree status
State: busy
Transaction: upgrade (download only)
  Initiator: client(id:gnome-software dbus:1.100 unit:gnome-launched-gnome-software-service.desktop-2030.scope uid:1000)
Deployments:
● ostree://fedora:fedora/32/x86_64/silverblue
                   Version: 32.20200526.0 (2020-05-26T01:05:35Z)
                BaseCommit: 9ab01f157790288ee684854b1b5a9fe591498b81212439eccc65fd0cc34277e7
              GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
       RemovedBasePackages: firefox 76.0.1-1.fc32
           LayeredPackages: fedora-workstation-repositories kmod-nvidia unbound
                            xorg-x11-drv-nvidia
             LocalPackages: rpmfusion-nonfree-release-32-1.noarch
                            rpmfusion-free-release-32-1.noarch

  ostree://fedora:fedora/32/x86_64/silverblue
                   Version: 32.20200525.0 (2020-05-25T01:07:05Z)
                BaseCommit: 640eb70eefd603f9fbe9fdde8925602e9ce36e2e80c4b52fdd8a0cdc443b02e3
              GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
       RemovedBasePackages: firefox 76.0.1-1.fc32
           LayeredPackages: fedora-workstation-repositories kmod-nvidia unbound
                            xorg-x11-drv-nvidia
             LocalPackages: rpmfusion-nonfree-release-32-1.noarch
                            rpmfusion-free-release-32-1.noarch
                    Pinned: yes

Expected vs actual behavior

Actual behavior:

$ rpm-ostree upgrade
Transaction in progress: upgrade (download only)

Expected: Should not be stuck there.

Steps to reproduce it

I don't know, and I have not done modifications related to rpm-ostree.

Would you like to work on the issue?

Should be assigned to someone else, but I can provide additional info.

$ journalctl -e -u rpm-ostreed https://gist.github.com/monterrr/e610ff75cbb145bd261d7768124be183

cgwalters commented 4 years ago
Transaction: upgrade (download only)
  Initiator: client(id:gnome-software dbus:1.100 unit:gnome-launched-gnome-software-service.desktop-2030.scope uid:1000)

is the way rpm-ostree is telling you gnome-software started a transaction.

You can rpm-ostree cancel it.

andreldmonteiro commented 4 years ago

I kill the gnome-software process and the problem persists in the terminal, so it's normal? I did not try rpm-ostree cancel yet because I think that after killing the process it should had worked.

jlebon commented 4 years ago

Likely the daemon is stuck somewhere. What does journalctl -u rpm-ostreed show? (Of course, you can force stop it with systemctl stop rpm-ostreed too, though would be good to know where it got stuck first.)

andreldmonteiro commented 4 years ago

Here: https://gist.github.com/monterrr/e610ff75cbb145bd261d7768124be183

andreldmonteiro commented 3 years ago

I caught rpm-ostree upgrade stuck infinitely again, it just kept stuck doing the upgrade, cancelling the transaction using Ctrl alt delete doesn't solve the issue, here's the logs: https://gist.github.com/monterrr/dd70c464b288a1529e7df510bf2066ea

cheese commented 2 years ago

I met the same issue on Fedora Silverblue 36 with rpm-ostree-2022.5.80.gb7f91619-1.fc36.x86_64. The upgrade (download only) transaction stuck and rejected to cancel.

bbbush commented 2 years ago

Likely the daemon is stuck somewhere. What does journalctl -u rpm-ostreed show? (Of course, you can force stop it with systemctl stop rpm-ostreed too, though would be good to know where it got stuck first.)

that helped me. systemctl restart rpm-ostreed and then it can run again. My particular error showed by journalctl was a dependency issue by "steam"

$ rpm-ostree status
State: busy
Transaction: upgrade (download only)
  Initiator: client(id:gnome-software dbus:1.102 unit:app-gnome-org.gnome.Software-2067.scope uid:1000)

$ systemctl status rpm-ostreed
○ rpm-ostreed.service - rpm-ostree System Management Daemon
     Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static)
     Active: inactive (dead)
       Docs: man:rpm-ostree(1)

Jun 17 07:23:16 m4700 rpm-ostree[8999]: 2 metadata, 0 content objects fetched; 788 B transferred in 3 seconds; 0 bytes content written
Jun 17 07:23:24 m4700 rpm-ostree[8999]: Preparing pkg txn; enabled repos: ['fedora-cisco-openh264', 'fedora-modular', 'updates-modular', 'updates', 'fedora', 'google-chrome', 'rpmfusion-free>
Jun 17 07:23:24 m4700 rpm-ostree[8999]: Txn Upgrade on /org/projectatomic/rpmostree1/fedora failed: Could not depsolve transaction; 1 problem detected:
                                         Problem: package steam-1.0.0.74-2.fc36.i686 requires (pipewire-alsa(x86-32) if pipewire), but none of the providers can be installed
                                          - pipewire-alsa-0.3.52-2.fc36.i686 has inferior architecture
                                          - pipewire-alsa-0.3.49-1.fc36.i686 has inferior architecture
                                          - cannot install both pipewire-alsa-0.3.52-2.fc36.x86_64 and pipewire-alsa-0.3.52-3.fc36.x86_64
                                          - cannot install both pipewire-alsa-0.3.49-1.fc36.x86_64 and pipewire-alsa-0.3.52-3.fc36.x86_64
                                          - conflicting requests
Jun 17 07:23:24 m4700 rpm-ostree[8999]: Unlocked sysroot
Jun 17 07:23:24 m4700 rpm-ostree[8999]: Process [pid: 2067 uid: 1000 unit: user@1000.service] disconnected from transaction progress
Jun 17 07:23:50 m4700 rpm-ostree[8999]: Allowing active client :1.102 (uid 1000)
Jun 17 07:23:50 m4700 rpm-ostree[8999]: client(id:gnome-software dbus:1.102 unit:app-gnome-org.gnome.Software-2067.scope uid:1000) vanished; remaining=0
Jun 17 07:23:50 m4700 rpm-ostree[8999]: In idle state; will auto-exit in 63 seconds
Jun 17 07:24:53 m4700 systemd[1]: rpm-ostreed.service: Deactivated successfully.
Jun 17 07:24:53 m4700 systemd[1]: rpm-ostreed.service: Consumed 7min 13.185s CPU time.

$ systemctl restart rpm-ostreed
$ systemctl status rpm-ostreed
● rpm-ostreed.service - rpm-ostree System Management Daemon
     Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static)
     Active: active (running) since Fri 2022-06-17 07:26:56 CDT; 2s ago
       Docs: man:rpm-ostree(1)
   Main PID: 22487 (rpm-ostree)
     Status: "clients=0; idle exit in 61 seconds"
      Tasks: 12 (limit: 18986)
     Memory: 4.2M
        CPU: 67ms
     CGroup: /system.slice/rpm-ostreed.service
             └─ 22487 /usr/bin/rpm-ostree start-daemon

Jun 17 07:26:56 m4700 systemd[1]: Starting rpm-ostreed.service - rpm-ostree System Management Daemon...
Jun 17 07:26:56 m4700 rpm-ostree[22487]: Reading config file '/etc/rpm-ostreed.conf'
Jun 17 07:26:56 m4700 rpm-ostree[22487]: In idle state; will auto-exit in 62 seconds
Jun 17 07:26:56 m4700 systemd[1]: Started rpm-ostreed.service - rpm-ostree System Management Daemon.

$ rpm-ostree update 
2 metadata, 0 content objects fetched; 788 B transferred in 3 seconds; 0 bytes content written
⠐ Checking out tree 5bf39cb... 
Checking out tree 5bf39cb... done
Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates-modular updates fedora google-chrome rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2022-04-07T16:52:38Z solvables: 4
rpm-md repo 'fedora-modular' (cached); generated: 2022-05-04T21:12:01Z solvables: 825
rpm-md repo 'updates-modular' (cached); generated: 2022-06-14T02:11:42Z solvables: 1155
rpm-md repo 'updates' (cached); generated: 2022-06-16T01:02:22Z solvables: 13729
rpm-md repo 'fedora' (cached); generated: 2022-05-04T21:16:11Z solvables: 67992
rpm-md repo 'google-chrome' (cached); generated: 2022-06-15T20:45:17Z solvables: 3
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2022-06-16T17:24:23Z solvables: 58
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-05-04T04:48:11Z solvables: 506
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2022-06-16T17:42:44Z solvables: 35
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-05-04T05:11:55Z solvables: 225
rpm-md repo 'updates-archive' (cached); generated: 2022-06-17T01:38:34Z solvables: 15085
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: package steam-1.0.0.74-2.fc36.i686 requires (pipewire-alsa(x86-32) if pipewire), but none of the providers can be installed
  - pipewire-alsa-0.3.52-2.fc36.i686 has inferior architecture
  - pipewire-alsa-0.3.49-1.fc36.i686 has inferior architecture
  - cannot install both pipewire-alsa-0.3.52-2.fc36.x86_64 and pipewire-alsa-0.3.52-3.fc36.x86_64
  - cannot install both pipewire-alsa-0.3.49-1.fc36.x86_64 and pipewire-alsa-0.3.52-3.fc36.x86_64
  - conflicting requests
jasinner commented 1 year ago

My upgrade got stuck due to missing gpg key for a custom repo. I was able to get it unstuck by restarting rpm-ostreed and trying the upgrade again.

systemctl restart rpm-ostreed