cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
11.13k stars 1.1k forks source link

Cockpit 264.2 (RHEL 9.0) Cannot Check Software Updates on Fedora 36 Hosts (Unable to communicate with OSTree) #17902

Closed tonymartino closed 1 year ago

tonymartino commented 1 year ago

Hello, Connecting to Cockpit 264.2 running on up-to-date RHEL 9.0 will is not able to check for software updates on Fedora 36 host (Cockpit 278). When attempting to check for software updates on these hosts, Cockpit returns "Unable to communicate with OSTree" and "OSTree is not available on this system". OSTree is not a requirement for software updates on the platform.

Where is the problem in Cockpit? Software Updates

Server operating system RHEL

Server operating system version 9.0

What browsers are you using? Chrome 107.0.5304.110 (Official Build) (64-bit)

System log Nov 12 14:38:20 jello.inside.msnomer.com realmd[16422]: client gone away: :1.195 Nov 12 14:38:20 jello.inside.msnomer.com realmd[16422]: released daemon: :1.195 Nov 12 14:38:20 jello.inside.msnomer.com realmd[16422]: client gone away: :1.199 Nov 12 14:38:20 jello.inside.msnomer.com realmd[16422]: released daemon: :1.199 Nov 12 14:38:21 jello.inside.msnomer.com systemd[1]: rpm-ostreed.service - rpm-ostree System Management Daemon was skipped because of a failed condition check (ConditionPathExists=/ostree). Nov 12 14:38:21 jello.inside.msnomer.com realmd[16422]: client using service: :1.208 Nov 12 14:38:21 jello.inside.msnomer.com realmd[16422]: holding daemon: :1.208

garrett commented 1 year ago

You shouldn't be using cockpit-ostree on a non-ostree system.

Systems based on rpm-ostree include:

If you aren't running Fedora's Silverblue, Kinoite, CoreOS, or IoT, you shouldn't have cockpit-ostree installed. Fedora Workstation and Fedora Server are not based on rpm-ostree.

In other words, you can probably fix this problem on your machine if you run the following as root:

dnf remove cockpit-ostree

Closing this, as I'm pretty confident it will fix your problem. If removing the cockpit-ostree package does not fix this problem, please re-open this issue.

Either way, if you could report back with the results, that would be great! It'd be nice to know if this works for you or doesn't.

I hope this helps!

unlikelyusername commented 1 year ago

This occured on my system as well. I found that nightly system updates had installed cockpit-ostree, breaking the software updates page.

dnf.log:2022-10-29T04:08:06-0400 DEBUG Installed: cockpit-ostree-1:190.1-1.fc36.noarch

Manually removing cockpit-ostree corrected this for me.