Cockpit not installed but it is installed

Hi, as I just told you I’m a newby with centos and nethserver internals, so be patien with me. I probably broken something with cockpit because when I try to log in i get: The cockpit package is not installed.

But:

yum install nethserver-cockpit
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile

Just “remove” and “install” but nothing changed.

Thanks in advance.

What’s the outcome of:

rpm -qa cockpit\* |sort

Is cockpit package listed?

You can try reinstalling with:

yum reinstall nethserver-cockpit
1 Like

AFAIK nethserver-cockpit is installed by default from NS 7.7

1 Like

rpm -qa cockpit* |sort
cockpit-195.1-1.el7.centos.0.1.x86_64
cockpit-bridge-195.1-1.el7.centos.0.1.x86_64
cockpit-storaged-195.1-1.el7.centos.0.1.noarch
cockpit-system-195.1-1.el7.centos.0.1.noarch
cockpit-ws-195.1-1.el7.centos.0.1.x86_64

Installed:
nethserver-cockpit.noarch 0:1.4.6-1.ns7

Complete!

But: The cockpit package is not installed

At which stage does the error message appear? Do you get to see the cockpit login page? Any info on /var/log/messages or on the browser console?

Are the services running?

systemctl status -l cockpit.socket
systemctl status -l cockpit.service
1 Like

I see login page but after login and pass I get “not installed”

systemctl status -l cockpit.socket
● cockpit.socket - Cockpit Web Service Socket
Loaded: loaded (/usr/lib/systemd/system/cockpit.socket; enabled; vendor preset: disabled)
Active: active (listening) since Tue 2020-03-17 08:12:55 CET; 24h ago
Docs: man:cockpit-ws(8)
Listen: [::]:9090 (Stream)

Mar 17 08:12:55 box01.v20.it systemd[1]: Starting Cockpit Web Service Socket.
Mar 17 08:12:55 box01.v20.it systemd[1]: Listening on Cockpit Web Service Socket.

systemctl status -l cockpit.service
● cockpit.service - Cockpit Web Service
Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabled)
Active: inactive (dead) since Tue 2020-03-17 18:02:39 CET; 15h ago
Docs: man:cockpit-ws(8)
Main PID: 24158 (code=exited, status=0/SUCCESS)

Mar 17 18:01:09 box01.v20.it systemd[1]: Starting Cockpit Web Service…
Mar 17 18:01:09 box01.v20.it remotectl[24156]: /usr/bin/chcon: can’t apply partial context to unlabeled file ‘/etc/cockpit/ws-certs.d/99-nethserver.cert’
Mar 17 18:01:09 box01.v20.it remotectl[24156]: remotectl: couldn’t change SELinux type context ‘etc_t’ for certificate: /etc/cockpit/ws-certs.d/99-nethserver.cert: Child process exited with code 1
Mar 17 18:01:09 box01.v20.it systemd[1]: Started Cockpit Web Service.
Mar 17 18:01:09 box01.v20.it cockpit-ws[24158]: Using certificate: /etc/cockpit/ws-certs.d/99-nethserver.cert
Mar 17 18:01:10 box01.v20.it cockpit-ws[24158]: couldn’t read from connection: Peer sent fatal TLS alert: Certificate is bad
Mar 17 18:01:17 box01.v20.it cockpit-session[24690]: pam_ssh_add: Failed adding some keys
Mar 17 18:01:17 box01.v20.it cockpit-ws[24158]: cockpit-bridge: error while loading shared libraries: libpolkit-agent-1.so.0: cannot open shared object file: No such file or directory

Maybe these shared libraries are missing:

/usr/lib64/libpolkit-agent-1.so.0
/usr/lib64/libpolkit-agent-1.so.0.0.0

Is polkit package installed?

rpm -q polkit
2 Likes

Thank you so much! polkit was missing. I yumed and now cockpit work fine.

1 Like