project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

VM Console disconnect randomly

Open ccesario opened this issue 9 months ago • 12 comments

Hi team,

Im getting many disconnect events when access VM Console. The console It works, but after some time, disconnect.

Image Image Image

Is there any special config for this ? Or is it a possible BUG ?

Regards,

Carlos

ccesario avatar Feb 27 '26 13:02 ccesario

Hi @ccesario ,

can you please check if its now fixed in the new version? Best regards, Nico

MrMasterbay avatar Feb 27 '26 22:02 MrMasterbay

Hi @MrMasterbay, sorry by delay.

But, the problem still happing.

Image Image Image

best regards,

Carlos

ccesario avatar Mar 02 '26 13:03 ccesario

Hi @ccesario ,

do you have by any chance a reverse proxy in place infront of pegaprox?

Best Regards, Nico

MrMasterbay avatar Mar 02 '26 17:03 MrMasterbay

Hi @MrMasterbay,

No, Pegaprox is published directly (no reverse proxy in front). It is in same LAN.

Best regards Carlos

ccesario avatar Mar 02 '26 17:03 ccesario

Hi @MrMasterbay,

Looking the Proxmox Logs I can see this when PegaProx Console got erro this log it is generated.

Image

Maybe this can help to try identify.

Regards

Carlos

ccesario avatar Mar 03 '26 16:03 ccesario

Hi @ccesario Image

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

MrMasterbay avatar Mar 03 '26 19:03 MrMasterbay

Hi @MrMasterbay, No, I dont have custom certs. It is a new fresh Proxmox install, without custom certs.

Regards Carlos

ccesario avatar Mar 04 '26 10:03 ccesario

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

vblogio avatar Mar 19 '26 10:03 vblogio

Only to report, After upgrade to version Beta 0.9.2.2 the problem persists.

Regards Carlos

ccesario avatar Mar 20 '26 19:03 ccesario

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:

  1. 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
  1. 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.

mkellermann97 avatar Mar 21 '26 15:03 mkellermann97

Hi @mkellermann97,

I just check your suggestions.

About the SSL certificates

Image

About the PEGAPROX_URL and WebSocket Port Access

Image Image

F12 Console tab

Image

No revelant logs

Image

ccesario avatar Mar 23 '26 13:03 ccesario

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

mkellermann97 avatar Apr 14 '26 19:04 mkellermann97