Hide Forgot
Created attachment 1506373 [details] terminal log Description of problem: Logging into cockpit on rhel-8.0-beta-1-x86_64-kvm.qcow2 restults in "Internal error in login process" in the web interface Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Start VM from rhel-8.0-beta-1-x86_64-kvm.qcow2 2. in VM: systemctl enable --now cockpit.socket 3. try to loginto cockpit's web interface Actual results: "Internal error in login process" in the web interface Expected results: Login works Additional info:
The log says cockpit-ws[806]: cockpit-session: can't exec cockpit-bridge: No such file or directory So at first sight it seems you only installed cockpit-ws? You at least need cockpit-system as well. The recommended way is to install the "cockpit" metapackage, which will pull in everything required and recommended. The "cockpit" package is part of the "default" RHEL install. Ironically, the installer does not actually enable the "default" install by default, it does a minimal install if you don't choose anything else. How exactly did you install this VM?
The VM is the basic cloud image rhel-8.0-beta-1-x86_64-kvm.qcow2 . Please find the full log of creating the VM in attachment 1506373 [details] .
Thanks, I'll investigate this ASAP (I don't have much bandwidth right now). Can you confirm that things work once you install cockpit-system? Just to ensure that it's really just the missing packages, not something else wrong.
yes, installing cockpit-system fixes the issue.
Thanks for confirming! So apparently there's something wrong with the comps files. In https://code.engineering.redhat.com/gerrit/#/c/141569/ I cleaned them up a bit, but there are no records which just have "cockpit-ws" but not cockpit-system: https://code.engineering.redhat.com/gerrit/gitweb?p=comps.git;a=blob;f=comps-rhel-8.0-beta.xml.in https://code.engineering.redhat.com/gerrit/gitweb?p=comps.git;a=blob;f=comps-rhel-8.0.xml.in I'll investigate how exactly the cloud images are being put together.
I checked the current cloud image kickstart file, and it still looks correct: https://code.engineering.redhat.com/gerrit/gitweb?p=spin-kickstarts.git;a=blob;f=rhel8/rhel-8.0-kvm.ks I don't see a cloud image in http://downloads.redhat.com/redhat/rhel/rhel-8-beta/ , so I downloaded the nightly one from http://download-node-02.eng.bos.redhat.com/nightly/latest-RHEL-8/compose/BaseOS/x86_64/images/ (rhel-guest-image-8.0-XXXX.x86_64.qcow2). Booting that in QEMU I see that it has cockpit-{ws,bridge,system} installed, as intended. Do you have a pointer to where to get that image from?
Created attachment 1507308 [details] terminal log of uninstall of cockpit-system Seems like uninstalling kexec-tools uninstalls cockpit-system, but not cockpit-ws. So I uninstalled unintentionally cockpit-system, but cockpit-ws was still there. One one hand this is my own mistake, on the other hand, it is confusing that cockpit-ws was still there without a helpful error message.
Ah, that explains the mystery. Indeed cockpit-ws does not have a hard dependency on cockpit-system, as we want to support the cockpit/ws container and bastion host use cases -- i. e. a container or host which can only log into remote machines, not the local one. But the error message could be friendlier indeed.
https://github.com/cockpit-project/cockpit/pull/10765