proxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006 [2021/07/21 08:22] – peter | proxmox:troubleshooting:nonvc_fails_to_connect_with_server_disconnected_code:1006 [2021/07/24 17:16] (current) – peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
Trying to connect to a console within Proxmox returns the following error message: **Server disconnected (code: 1006)**. | Trying to connect to a console within Proxmox returns the following error message: **Server disconnected (code: 1006)**. | ||
- | <WRAP info> | + | <code bash> |
- | **NOTE:** The certificates are out of sync. | + | TASK ERROR: command '/ |
- | + | </code> | |
- | Regenerate them. | + | |
- | + | ||
- | </WRAP> | + | |
---- | ---- | ||
+ | |||
+ | ===== Regenerate Certificates ===== | ||
SSH into the Proxmox host. | SSH into the Proxmox host. | ||
Line 18: | Line 17: | ||
systemctl restart pvedaemon.service | systemctl restart pvedaemon.service | ||
systemctl restart pveproxy.service | systemctl restart pveproxy.service | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Revert to default SSL configuration ===== | ||
+ | |||
+ | <code bash> | ||
+ | rm -rf / | ||
+ | rm -rf / | ||
+ | rm -rf / | ||
+ | rm -rf / | ||
+ | rm / | ||
+ | |||
+ | pvecm updatecerts -f | ||
+ | systemctl restart pveproxy | ||
</ | </ | ||
Line 48: | Line 66: | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check if the websockify service is running ===== | ||
+ | |||
+ | <code bash> | ||
+ | ps aux |grep websoc | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 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: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **192.168.1.95: | ||
+ | * **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. | ||
+ | |||
</ | </ | ||
proxmox/troubleshooting/nonvc_fails_to_connect_with_server_disconnected_code/1006.1626855773.txt.gz · Last modified: 2021/07/21 08:22 by peter