Bug 2106096

Summary: subscription-manager-cockpit:I cannot run desktop client - traceback 'CockpitClient: has no attribute uri' appears
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stavel <jstavel>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: Jan Ščotka <jscotka>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 9.1CC: ptoscano
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cockpit-273-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:16:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
a traceback in journal none

Description Jan Stavel 2022-07-11 18:44:21 UTC
Created attachment 1896136 [details]
a traceback in journal

Description of problem:


Version-Release number of selected component (if applicable):
I want to register a system using UI app 'Red Hat Subscription Client'

Search the application using app search.
Run it.

I do not see any new window. Nothing appears on the desktop.

If you run:

journalctl

you see a traceback

'CockpitClient' has no attribute uri.

See an attached screeenshot.



[jstavel@localhost ~]$ rpm -qa | grep cockpit
cockpit-bridge-272-1.el9.x86_64
cockpit-system-272-1.el9.noarch
subscription-manager-cockpit-2-1.el9.noarch
cockpit-storaged-272-1.el9.noarch
cockpit-packagekit-272-1.el9.noarch
cockpit-ws-272-1.el9.x86_64
cockpit-272-1.el9.x86_64
cockpit-podman-48-1.el9.noarch

Comment 1 Pino Toscano 2022-07-12 09:49:04 UTC
This seems an issue in cockpit-client (shipped in the cockpit-ws package), hence moving to the cockpit component.

Comment 2 Martin Pitt 2022-07-12 17:50:05 UTC
Ouch, thanks! This is a regression from https://github.com/cockpit-project/cockpit/commit/9d9b1f8e5c04e . We need to make it deal with the older libhandy API.

Comment 3 Martin Pitt 2022-07-13 09:48:57 UTC
Can confirm with

    sudo dnf install Xvfb webkit2gtk3 libhandy
    xvfb-run /usr/libexec/cockpit-desktop /

in a local RHEL 9.1 cloud VM. I didn't manage to get it to run with `ssh -X` (it does work for simple xprop, but not for client), but it does work with `/usr/libexec/cockpit-client --wildly-insecure`.

I verified the fix with both approaches, sent to https://github.com/cockpit-project/cockpit/pull/17553

Comment 4 Martin Pitt 2022-07-13 09:49:47 UTC
@Jan: If this blocks you from testing sub-man, you can apply the fix from https://github.com/cockpit-project/cockpit/pull/17553/files directly to /usr/libexec/cockpit-client.

Comment 10 errata-xmlrpc 2022-11-15 11:16:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cockpit bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8314