Cockpit slow, and flaky.

  • I'm having an issue with Cockpit. 9 times out of 10, I can't log in. Either the Cockpit login screen won't load and I get a Connection Failed screen telling me to check journalctl -u cockpit, or after clicking Log In, nothing happens. I'm using a password manager so I can be certain the credentials are fine.

    When I checked journalctl -u cockpit I see the following output.

    When I can get the interface to load, it usually works fine although can take 10-20 seconds to load. No other services on OMV have this issue, and the server is on a current gen high-end cpu.

    Any ideas?

  • There might be an issue here using the self signed cert that cockpit generates. I was having this same issue with slow loading of the web pages and having it hang on a good percentage of requests.

    I had a letsencrypt certificate generated and imported it into both the openmediavault GUI and the /etc/cockpit/ws-certs.d/ directory. The issue went away and cockpit is super fast now.

    If you imported a certificate into openmediavault GUI for a domain name you can try importing it into cockpit.

    You'll need to concat the cert and the key and place it into the cockpit cert dir

    Once its imported it should be split up into the certs/private directories as /etc/ssl/certs/openmediavault-<uu-id>.crt and .key

    I did this below as root, then rebooted, and then called cockpit using my domain in the cert @ port 9090. (replace your-cert-domain with your certificate domain name, this assumes you have one and only one certificate imported into OMV GUI)

    cat /etc/ssl/certs/openmediavault-*.crt > /etc/cockpit/ws-certs.d/<your-cert-domain>.cert
    cat /etc/ssl/private/openmediavault-*.key >> /etc/cockpit/ws-certs.d/<your-cert-domain>.cert

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!