User Tools

Site Tools


proxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
proxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006 [2021/07/21 08:19] – created peterproxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006 [2021/07/24 17:16] (current) peter
Line 1: Line 1:
 ====== Proxmox - Troubleshooting - noNVC fails to connect with Server disconnected (code: 1006) ====== ====== Proxmox - Troubleshooting - noNVC fails to connect with Server disconnected (code: 1006) ======
 +
 +Trying to connect to a console within Proxmox returns the following error message: **Server disconnected (code: 1006)**.
 +
 +<code bash>
 +TASK ERROR: command '/usr/bin/termproxy 5901 --path /nodes/pve --perm Sys.Console -- /bin/login -f root' failed: exit code 1
 +</code>
 +
 +----
 +
 +===== Regenerate Certificates =====
  
 SSH into the Proxmox host. SSH into the Proxmox host.
Line 7: Line 17:
 systemctl restart pvedaemon.service systemctl restart pvedaemon.service
 systemctl restart pveproxy.service systemctl restart pveproxy.service
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The certificates are out of sync, so regenerate them.
 +</WRAP>
 +
 +----
 +
 +===== Revert to default SSL configuration =====
 +
 +<code bash>
 +rm -rf /etc/pve/pve-root-ca.pem
 +rm -rf /etc/pve/priv/pve-root-ca.key
 +rm -rf /etc/pve/nodes/pve/pve-ssl.pem
 +rm -rf /etc/pve/nodes/pve/pve-ssl.key
 +rm /etc/pve/pve-root-ca.pem /etc/pve/priv/pve-root-ca.key
 +
 +pvecm updatecerts -f
 +systemctl restart pveproxy
 </code> </code>
  
Line 37: Line 66:
 <WRAP info> <WRAP info>
 **NOTE:**  The vncproxy is failing. **NOTE:**  The vncproxy is failing.
 +</WRAP>
 +
 +----
 +
 +===== Check if the websockify service is running =====
 +
 +<code bash>
 +ps aux |grep websoc
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The **socat** package needs to be installed on the server.
 +</WRAP>
 +
 +
 +----
 +
 +===== Another Approach =====
 +
 +Obtain a certificate to allow the Proxmox web interface to work over https.
 +
 +Then, add this certificate to the list of trusted certificates on the remote PC being used to access Proxmox.
 +
 +<code bash>
 +openssl s_client -showcerts -connect 192.168.1.95:8006 /dev/null | openssl x509 -outform PEM > pve.pem
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Where:
 +
 +  * **192.168.1.95:8006** is the address of the web interface of the Proxmox hypervisor.
 +  * **pve.pem** is the output file of the certificate.
 +
 +Then just add this certificate and set the rights to it **Always trust**.
 +
 +Reload the Proxmox web page and access to the console should work.
 +
 </WRAP> </WRAP>
  
proxmox/troubleshooting/nonvc_fails_to_connect_with_server_disconnected_code/1006.1626855578.txt.gz · Last modified: 2021/07/21 08:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki