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.29k stars 1.12k forks source link

error while connecting on rpi3 #19936

Open YureiNox opened 9 months ago

YureiNox commented 9 months ago

Explain what happens

  1. juste installer and it won't connect it say to open journal of cockpit and here it is:
  2. journalctl -u cockpit Feb 03 16:43:28 ubuntu systemd[1]: Starting cockpit.service - Cockpit Web Service… Feb 03 16:43:28 ubuntu cockpit-certificate-ensure[4295]: /usr/lib/cockpit/cockpit-certificate-helper: line 25: sscg: command not found Feb 03 16:43:34 ubuntu cockpit-certificate-ensure[4296]: ..+...+....+...+...........+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+..> Feb 03 16:43:35 ubuntu cockpit-certificate-ensure[4296]: ...+............+...........+.......+..+...+....+........+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++> Feb 03 16:43:35 ubuntu cockpit-certificate-ensure[4296]: ----- Feb 03 16:43:35 ubuntu systemd[1]: Started cockpit.service - Cockpit Web Service. Feb 03 16:43:36 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated. Feb 03 16:43:36 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated. Feb 03 16:43:58 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated. Feb 03 16:45:58 ubuntu systemd[1]: cockpit.service: Deactivated successfully. Feb 03 16:45:58 ubuntu systemd[1]: cockpit.service: Consumed 8.330s CPU time. -- Boot 231d9d7e6e414db6bcdef37be5f084d8 -- Feb 03 16:46:37 ubuntu systemd[1]: Starting cockpit.service - Cockpit Web Service… Feb 03 16:46:37 ubuntu systemd[1]: Started cockpit.service - Cockpit Web Service. Feb 03 16:47:19 ubuntu cockpit-tls[1215]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.

pls help

Version of Cockpit

310

Where is the problem in Cockpit?

Unknown or not applicable

Server operating system

Ubuntu

Server operating system version

Ubuntu 23.10 armv7l

What browsers are you using?

Safari macOS

System log

Feb 03 16:43:28 ubuntu systemd[1]: Starting cockpit.service - Cockpit Web Service...
Feb 03 16:43:28 ubuntu cockpit-certificate-ensure[4295]: /usr/lib/cockpit/cockpit-certificate-helper: line 25: sscg: command not found
Feb 03 16:43:34 ubuntu cockpit-certificate-ensure[4296]: ..+...+....+...+...........+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+..>
Feb 03 16:43:35 ubuntu cockpit-certificate-ensure[4296]: ...+............+...........+.......+..+...+....+........+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++>
Feb 03 16:43:35 ubuntu cockpit-certificate-ensure[4296]: -----
Feb 03 16:43:35 ubuntu systemd[1]: Started cockpit.service - Cockpit Web Service.
Feb 03 16:43:36 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.
Feb 03 16:43:36 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.
Feb 03 16:43:58 ubuntu cockpit-tls[4301]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.
Feb 03 16:45:58 ubuntu systemd[1]: cockpit.service: Deactivated successfully.
Feb 03 16:45:58 ubuntu systemd[1]: cockpit.service: Consumed 8.330s CPU time.
-- Boot 231d9d7e6e414db6bcdef37be5f084d8 --
Feb 03 16:46:37 ubuntu systemd[1]: Starting cockpit.service - Cockpit Web Service...
Feb 03 16:46:37 ubuntu systemd[1]: Started cockpit.service - Cockpit Web Service.
Feb 03 16:47:19 ubuntu cockpit-tls[1215]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.
MrYann commented 9 months ago

Same for me (safari on macOS on the connecting side) with cockpit installed on Debian 12. The login page is available. I enter login and password, and this ers me to the page Unexpecgted connection failure, see journalctl -u cockpit

engageintellect commented 5 months ago

same here. on raspberry pi5 running ubuntu

everything works fine locally

when I try to reverse-proxy via nginx I can hit the login screen, and then i get this when submitting the form:

Screenshot 2024-05-31 at 11 13 02 PM
root@friday /e/n/sites-available# journalctl -u cockpit
May 31 18:20:54 friday systemd[1]: Starting cockpit.service - Cockpit Web Service...
May 31 18:20:54 friday cockpit-certificate-ensure[4508]: /usr/lib/cockpit/cockpit-certificate-helper: line 25: sscg: command not found
May 31 18:20:54 friday cockpit-certificate-ensure[4509]: .+............+.+..+.+.................+...+.+.....+.++++++++++++++++++++++++++++++++>
May 31 18:20:55 friday cockpit-certificate-ensure[4509]: ...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+.....+..>
May 31 18:20:55 friday cockpit-certificate-ensure[4509]: -----
May 31 18:20:55 friday systemd[1]: Started cockpit.service - Cockpit Web Service.
May 31 18:21:07 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
May 31 18:21:10 friday cockpit-tls[4515]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.

sscg is installed and in the path.

chatGPT has no idea either. :)

jasondalycan commented 2 months ago

Same issue here. Installed sscg and the "sscg: command not found" error went away but still receiving the error: gnutls_handshake failed: A TLS fatal alert has been received . Using Debian 12.