Login mit Cockpit -> Benutzername oder Passwort falsch

omavoss

Member
Mar 15, 2024
71
7
8
Hallo alle,
ich habe auf meinem Proxmox-Server Cockpit installiert, bei der Anmeldung auf dessen GUI kommt der Fehler, dass es ein falscher Benutzername oder ein falsches Passwort sei.

Ich habe daraufhin unter Proxmox-Benutzer das Passwort von root geändert, das Login direkt auf dem Server funktioniert damit problemlos. Das Cockpit-Login mit diesem geänderten Passwort funktioniert nach wie vor nicht.

Dann habe ich direkt auf dem Proxmox-Server unter Benutzer einen neuen Benutzer mit einem eigenen Passwort eingerichtet. Auch mit diesem neuen Benutzer funktioniert das Login auf dem Server problemlos, aber das Login auf dem GUI vom Cockpit funktioniert auch auf diese Weise nicht, die Credentials werden ebenso als fehlerhaft abgewiesen.

Ich mache also irgendetwas falsch und bitte um Hilfe.
Viele Grüße und danke schon jetzt.
 
Dann habe ich direkt auf dem Proxmox-Server unter Benutzer einen neuen Benutzer mit einem eigenen Passwort eingerichtet.
Meines Wissens nach verwendet Cockpit die Daten aus /etc/passwd,während unter Proxmox die angelegten User unter /etc/pve/user.cfg anlegt, und dort wird cockpit sicher nicht schaun.

Ich vermute, du wirst deinen User in der Shell anlegen müssen, und dann nochmals via Cockpit probieren.

(Btw. Ich hab Cockpit schon seehhrrr lange nicht mehr benutzt, daher auf eigene Gefahr)
 
@omavoss bitte niemals den inhalt von /etc/passwd posten!
Mein Fehler, niemals /etc/shadow posten, /etc/passwd ist aber auch nicht gut/sinvoll zu posten. Und wenn unbedingt notwendig, bitte nur die benötigten Zeilen, und nicht mehr :)

füge bitte einen Nutzer im System zu mit dem Befehl "adduser <benutzername"

bspw.:

$ adduser testuser

ggf. muss dieser in der sudo gruppe (wenn sudo am system vorhanden ist) hinzugefügt werden mit:

$ usermod -aG sudo testuser


Nachtrag/Edit:
Da es scheint, dass du generell sehr neu in der Linux Welt bist, les dir bitte mal folgenden Artikel durch, hoffentlich macht es das ganze bisschen klarer :)
https://wiki.ubuntuusers.de/adduser/
 
Last edited:
Ich wäre sehr vorsichtig andere MGMT utilities zu installieren. Im schlimmsten Fall grätscht es in PVE rein und verkonfiguriert Dinge die dann mühsam zum Troubleshooten sind.
 
  • Like
Reactions: InZaneDanii
Habe mein Posting mit dem Inhalt von /etc/passwd gelöscht, Ist wohl besser so.

Webmin funktioniert doch auch, warum also nicht mal Cockpit versuchen?
Ich mach das jetzt mal mit dem adduser . . . jeder Linuxer hat doch mal ganz klein angefangen, einige sehr rudimentäre Kenntnisse sind vorhanden.
 
  • Like
Reactions: InZaneDanii
OK,
das Login funktionierte, quittierte es aber mit einer Fehlermeldung und dem Hinweis auf journalctl,
dessen Inhalt folgt:

Code:
root@pve:~# journalctl -u cockpit
Sep 03 23:08:46 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:08:46 pve cockpit-certificate-ensure[527519]: /usr/lib/cockpit/cockpit-certificate-helper: line 25: sscg: command not found
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: .....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...............+...+......+..++++++++++++++++++++++++++++++++++++++++++++++++++>
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: ....+........+......+....+.....+....+..+.+...+..+.......+..+.........+.+......+........+...............+...............+.......+..+...+++++++++++++++++++>
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: -----
Sep 03 23:08:47 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:10:17 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:10:45 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:10:45 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:10:45 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:50 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:11:41 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:01 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:25 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:15:41 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:15:41 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:24 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:19:27 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:20:02 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:20:02 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:20:03 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:21:57 pve systemd[1]: Stopping cockpit.service - Cockpit Web Service...
Sep 03 23:21:57 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:21:57 pve systemd[1]: Stopped cockpit.service - Cockpit Web Service.
-- Boot d23049620b9447fa8e31bfecd95fce3e --
Sep 03 23:23:34 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:23:34 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:23:34 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:37 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
lines 1-55

Was nun?
Wenn es größere Umstände macht, Cockpit zum laufen zu bewegen, lasse ich es lieber.
 
Habe mein Posting mit dem Inhalt von /etc/passwd gelöscht, Ist wohl besser so.

Webmin funktioniert doch auch, warum also nicht mal Cockpit versuchen?
Ich mach das jetzt mal mit dem adduser . . . jeder Linuxer hat doch mal ganz klein angefangen, einige sehr rudimentäre Kenntnisse sind vorhanden.
Sehr gut, alles gut, wollte ich nur vollständigkeitshalber dazu schreiben :)
 
OK,
das Login funktionierte, quittierte es aber mit einer Fehlermeldung und dem Hinweis auf journalctl,
dessen Inhalt folgt:

Code:
root@pve:~# journalctl -u cockpit
Sep 03 23:08:46 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:08:46 pve cockpit-certificate-ensure[527519]: /usr/lib/cockpit/cockpit-certificate-helper: line 25: sscg: command not found
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: .....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...............+...+......+..++++++++++++++++++++++++++++++++++++++++++++++++++>
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: ....+........+......+....+.....+....+..+.+...+..+.......+..+.........+.+......+........+...............+...............+.......+..+...+++++++++++++++++++>
Sep 03 23:08:47 pve cockpit-certificate-ensure[527520]: -----
Sep 03 23:08:47 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:10:17 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:10:45 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:10:45 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:10:45 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:50 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:10:51 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:11:41 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:01 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:13:07 pve cockpit-tls[529994]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:25 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:15:41 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:15:41 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:15:42 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:08 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:17:24 pve cockpit-tls[536228]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:19:27 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:20:02 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:20:02 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:20:03 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:20:06 pve cockpit-tls[541718]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:21:57 pve systemd[1]: Stopping cockpit.service - Cockpit Web Service...
Sep 03 23:21:57 pve systemd[1]: cockpit.service: Deactivated successfully.
Sep 03 23:21:57 pve systemd[1]: Stopped cockpit.service - Cockpit Web Service.
-- Boot d23049620b9447fa8e31bfecd95fce3e --
Sep 03 23:23:34 pve systemd[1]: Starting cockpit.service - Cockpit Web Service...
Sep 03 23:23:34 pve systemd[1]: Started cockpit.service - Cockpit Web Service.
Sep 03 23:23:34 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:37 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
Sep 03 23:23:38 pve cockpit-tls[1155]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.
lines 1-55

Was nun?
Wenn es größere Umstände macht, Cockpit zum laufen zu bewegen, lasse ich es lieber.

Laut kurzer Google Suche musst du auf deinem PVE Host in der Shell folgendes machen:

sudo apt-get install openssl
sudo apt-get install libgnutls-openssl27



Siehe hier: https://github.com/cockpit-project/cockpit/issues/14896 vllt ist das bei dir auch das Problem.
 
openssl war schon aktuell, die Installation von libgnutls-openssl27 hat zum Erfolg geführt!

Prima, eine derartige Unterstützung zu bekommen. Vielen Dank!
 
  • Like
Reactions: InZaneDanii
Jetzt muss der testuser noch in die sudoers integriert werden, dann bin ich zufrieden. Was muss ich dafür tun?
 
@InZaneDanii :
Das hat total hingehauen.
Für die Aktualisierung musste ich noch einige kleinere Änderungen vornehmen, Google hat mir dabei geholfen. Es betraf den Network-Manager, der Schlüssel-Dateien aktualisiert haben wollte.

Also danke nochmals und freundliche Grüße.
 
Last edited:
  • Like
Reactions: InZaneDanii
@InZaneDanii :
Das hat total hingehauen.
Für die Aktualisierung musste ich noch einige kleinere Änderungen vornehmen, Google hat mir dabei geholfen. Es betraf den Network-Manager, der Schlüssel-Dateien aktualisiert haben wollte.

Also danke nochmals und freundliche Grüße.

Super, freut mich das dir das geholfen hat :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!