VM Console disconnect randomly
Hi team,
Im getting many disconnect events when access VM Console. The console It works, but after some time, disconnect.
Is there any special config for this ? Or is it a possible BUG ?
Regards,
Carlos
Hi @ccesario ,
can you please check if its now fixed in the new version? Best regards, Nico
Hi @MrMasterbay, sorry by delay.
But, the problem still happing.
best regards,
Carlos
Hi @ccesario ,
do you have by any chance a reverse proxy in place infront of pegaprox?
Best Regards, Nico
Hi @MrMasterbay,
No, Pegaprox is published directly (no reverse proxy in front). It is in same LAN.
Best regards Carlos
Hi @MrMasterbay,
Looking the Proxmox Logs I can see this when PegaProx Console got erro this log it is generated.
Maybe this can help to try identify.
Regards
Carlos
Hi @ccesario
Hm I see that looks quite weird there. Let me see if I can reproduce that in our LAB do you have btw any custom cert on this Node? Also its normal to see in Proxmox that PegaProx sends two Ticket Requests this is just pegaprox making sure it can get a ticket in the first hand.
Regards, Nico
Hi @MrMasterbay, No, I dont have custom certs. It is a new fresh Proxmox install, without custom certs.
Regards Carlos
same behavior here, except that it happens every time I try to connect to a console from PegaProx (same LAN, no firewall, no different vlan). Regards Cédric, France
Only to report, After upgrade to version Beta 0.9.2.2 the problem persists.
Regards Carlos
Hi @vblogio , @ccesario
Thank you for your reports regarding this console connection issue in PegaProx Beta 0.9.2.2. I
Based on your descriptions (fresh Proxmox installation without custom certificates, same LAN, no firewall), I'd like to suggest several troubleshooting approaches: 🔍 Potential Causes & Solutions:
- SSL Certificate Configuration
Even without custom certificates, PegaProx uses a self-signed certificate by default. Please verify:
Whether the SSL directory exists: ssl/cert.pem and ssl/key.pem in your PegaProx project directory
Whether PegaProx has appropriate permissions to access these files
- PEGAPROX_URL Environment Variable
This is particularly important for VNC/SSH console WebSocket connections. Please check your configuration: bash
PEGAPROX_URL=http://YOUR_SERVER_IP:5000
Ensure PEGAPROX_URL points to the actual IP/URL of your PegaProx server (not localhost/127.0.0.1 if accessing from other clients). 3. WebSocket Port Access
PegaProx uses WebSocket connections for consoles. Please verify:
Port 5000 (or your configured port) is open for both HTTP and WebSockets
No browser extensions are blocking WebSocket connections
📋 For further assistance, we need:
Specific error message: What exact error appears when you try to open a console?
PegaProx logs: Please share relevant log entries from:
bash
journalctl -u pegaprox --since "1 hour ago" | tail -50
Browser console errors: Open browser developer tools (F12) → Console tab, and share any errors that appear during connection attempts.
Configuration details: Your current PEGAPROX_URL setting and whether you're behind a reverse proxy.
Hi @mkellermann97,
I just check your suggestions.
About the SSL certificates
About the PEGAPROX_URL and WebSocket Port Access
F12 Console tab
No revelant logs
Hi @ccesario,
closing this one — based on more recent tickets (#283, #310) it looks like the console is working now and the random disconnects are no longer being reported. We've also made several improvements to the WebSocket/VNC handling since then (port cleanup, error recovery, dual-stack fixes).
If you're still experiencing disconnects on v0.9.6, feel free to reopen with your current logs and we'll take another look.
Regards, Marcus