[Bug] Console disconnects shortly after connecting
Frist off Love PegaProx you all are doing a great job.
I have a new cluster of 3 proxmox nodes. All the proxmox nodes are new and have self signed certificates. PegaProx is running as a VM inside the environment. I have updated Proxmox and PegaProx to the latest version as a few minutes ago. System using CEPH for storage.
PegaProx Beta 0.9.6 Build: 2026.04.12
The issue is that I can start a console and within a few minutes at most the connection errors.
within a few minutes I get this error.
What I see in the logs makes me think PegaProx kicks a job off to one of the proxmox nodes to start the KVM session. The console connects and a little bit later the Error.
When I look at the proxmox logs I see info such is this.
Apr 14 14:33:12 jmcpve1 pvedaemon[122862]: starting vnc proxy UPID:jmcpve1:0001DFEE:00116FF8:69DE9678:vncproxy:100:root@pam!pegaprox_167366: Apr 14 14:33:12 jmcpve1 pvedaemon[112786]: <root@pam!pegaprox_167366> starting task UPID:jmcpve1:0001DFEE:00116FF8:69DE9678:vncproxy:100:root@pam!pegaprox_167366: Apr 14 14:33:12 jmcpve1 pvedaemon[112786]: root@pam successful auth for user 'root@pam' Apr 14 14:33:12 jmcpve1 pvedaemon[122868]: starting vnc proxy UPID:jmcpve1:0001DFF4:0011700F:69DE9678:vncproxy:100:root@pam: Apr 14 14:33:12 jmcpve1 pvedaemon[2390]: root@pam starting task UPID:jmcpve1:0001DFF4:0011700F:69DE9678:vncproxy:100:root@pam: Apr 14 14:33:15 jmcpve1 pveproxy[120095]: worker exit Apr 14 14:33:15 jmcpve1 pveproxy[3543]: worker 120095 finished Apr 14 14:33:15 jmcpve1 pveproxy[3543]: starting 1 worker(s) Apr 14 14:33:15 jmcpve1 pveproxy[3543]: worker 122890 started Apr 14 14:33:20 jmcpve1 pveproxy[122890]: Clearing outdated entries from certificate cache Apr 14 14:33:22 jmcpve1 pvedaemon[122862]: connection timed out Apr 14 14:33:22 jmcpve1 pvedaemon[112786]: <root@pam!pegaprox_167366> end task UPID:jmcpve1:0001DFEE:00116FF8:69DE9678:vncproxy:100:root@pam!pegaprox_167366: connection timed out Apr 14 14:33:34 jmcpve1 pvedaemon[2390]: root@pam end task UPID:jmcpve1:0001DFF4:0011700F:69DE9678:vncproxy:100:root@pam: OK Apr 14 14:34:03 jmcpve1 pveproxy[119306]: worker exit Apr 14 14:34:03 jmcpve1 pveproxy[3543]: worker 119306 finished Apr 14 14:34:03 jmcpve1 pveproxy[3543]: starting 1 worker(s) Apr 14 14:34:03 jmcpve1 pveproxy[3543]: worker 123407 started Apr 14 14:34:03 jmcpve1 pveproxy[123407]: Clearing outdated entries from certificate cache
I have noticed that the error is really quick when the VM is not on the node that PegaProx sends the request to. In my environment if the request for proxy is sent to node1 and the VM that is on node3 then it typically takes 10-15 seconds before I get the error.
Being a Unix guy myself it is almost like a process ends and because the parent process stops the child process stops causing the timeout.
I noticed that pveproxy and pvedaemon were the ones complaining and decided to increase the MAX_WORKERS to see if that helped and it did not.
I also have the issue when I try to connect to "external" it never does. Here is the error I get when I do that.
Here is the Logs when I click that.
Apr 14 16:23:53 jmcpve2 sshd-session[15375]: Accepted publickey for root from 10.49.32.157 port 40854 ssh2: RSA SHA256:eIJyCBMtjwGXnIEqavY7nWGZWw8l5Um523zc91o1iWs Apr 14 16:23:53 jmcpve2 sshd-session[15375]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 14 16:23:53 jmcpve2 systemd[1]: Created slice user-0.slice - User Slice of UID 0. Apr 14 16:23:53 jmcpve2 systemd[1]: Starting [email protected] - User Runtime Directory /run/user/0... Apr 14 16:23:53 jmcpve2 systemd-logind[1620]: New session 22 of user root. Apr 14 16:23:53 jmcpve2 systemd[1]: Finished [email protected] - User Runtime Directory /run/user/0. Apr 14 16:23:53 jmcpve2 systemd[1]: Starting [email protected] - User Manager for UID 0... Apr 14 16:23:53 jmcpve2 (systemd)[15382]: pam_unix(systemd-user:session): session opened for user root(uid=0) by root(uid=0) Apr 14 16:23:53 jmcpve2 systemd-logind[1620]: New session 23 of user root. Apr 14 16:23:53 jmcpve2 systemd[15382]: Queued start job for default target default.target. Apr 14 16:23:53 jmcpve2 systemd[15382]: Created slice app.slice - User Application Slice. Apr 14 16:23:53 jmcpve2 systemd[15382]: Reached target paths.target - Paths. Apr 14 16:23:53 jmcpve2 systemd[15382]: Reached target timers.target - Timers. Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on dirmngr.socket - GnuPG network certificate management daemon. Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers). Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted). Apr 14 16:23:53 jmcpve2 systemd[15382]: Starting gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation)... Apr 14 16:23:53 jmcpve2 systemd[15382]: Starting gpg-agent.socket - GnuPG cryptographic agent and passphrase cache... Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on keyboxd.socket - GnuPG public key management service. Apr 14 16:23:53 jmcpve2 systemd[15382]: Starting ssh-agent.socket - OpenSSH Agent socket... Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation). Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on gpg-agent.socket - GnuPG cryptographic agent and passphrase cache. Apr 14 16:23:53 jmcpve2 systemd[15382]: Listening on ssh-agent.socket - OpenSSH Agent socket. Apr 14 16:23:53 jmcpve2 systemd[15382]: Reached target sockets.target - Sockets. Apr 14 16:23:53 jmcpve2 systemd[15382]: Reached target basic.target - Basic System. Apr 14 16:23:53 jmcpve2 systemd[15382]: Reached target default.target - Main User Target. Apr 14 16:23:53 jmcpve2 systemd[15382]: Startup finished in 127ms. Apr 14 16:23:53 jmcpve2 systemd[1]: Started [email protected] - User Manager for UID 0. Apr 14 16:23:53 jmcpve2 systemd[1]: Started session-22.scope - Session 22 of User root.
This could be two different bugs but I think they might be one in the same just showing up differently.
What I expect is once the console starts I do not have any issue with it. I know if I login to Proxmox I can start a Console and leave it over night and it is still running the next day.
This project plus ProxMox in a cluster gives competition to the big players and I would love to help debug in any way I can. Also as a note I have ~6 VM's running on my cluster and it is currently in a test phase so I can change anything.
Environment PegaProx Version: 0.9.6 Installation Method: VM restore from PegaProx website. Client OS: Microslop Windows 11. Browser: 145.0.7632.117 (Official Build) (64-bit) Behind Reverse Proxy? No UI? Happens in both Corporate and Modern Layout
- [X] I have searched existing issues to make sure this is not a duplicate ( this is somewhat a duplicate but the other have been closed and the bug still exists. )
- [X] I am using the latest version of PegaProx
Hey @awangatboo, thanks for the detailed logs — that actually helps a lot.
The connection timed out after ~10s on pvedaemon is the key clue here. What's happening is that PegaProx requests a VNC proxy ticket from the Proxmox API, but the WebSocket connection from PegaProx to the node doesn't get established fast enough (or at all), so pvedaemon kills the VNC session.
Two things to check:
-
Since you're running PegaProx as a VM inside the cluster — are you connecting to the nodes by hostname or IP? If by hostname, make sure PegaProx can resolve all node hostnames correctly (
ping jmcpve1etc from inside the PegaProx VM). DNS resolution delays are a common cause for this. -
The self-signed certs — PegaProx needs to reach the Proxmox API on port 8006 via HTTPS. Did you add the cluster with SSL verification disabled? If not, the TLS handshake might be failing silently.
The cross-node issue you noticed (VM on node3, request goes to node1) is expected — Proxmox handles the proxy forwarding internally, but that adds another hop which makes the timeout window tighter.
For the "external" console (SSH) — that's a separate codepath. The SSH session connects fine (your logs show successful pubkey auth) but the terminal WebSocket probably can't bind. Can you check if port 3001 is reachable from your browser to the PegaProx VM?
We're looking into improving the VNC proxy timeout handling in the next patch. If you can share the PegaProx server logs (logs/clusterid.log) when the disconnect happens that would narrow it down further.
Btw if you want to support the project — we're volunteer-driven and every bit helps: https://opencollective.com/pegaprox
– Marcus
I am not doing this in order but I started with the "external" part first.
I ran a powershell to test to see if I could reach port 3001 on pegaprox.
PS C:\windows\system32> Test-NetConnection -ComputerName pegaprox -port 3001 WARNING: TCP connect to (10.49.34.77 : 3001) failed
ComputerName : pegaprox
RemoteAddress : 10.49.34.77
RemotePort : 3001
InterfaceAlias : Ethernet
SourceAddress : 10.133.128.27
PingSucceeded : True
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : False
Then I logged into the PegaProx VM and checked to see if anything was listening.
root@pegaprox-prod:/home/pegaprox_admin# netstat -tpnl Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 7037/python tcp 0 0 0.0.0.0:5002 0.0.0.0:* LISTEN 7045/python tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 8678/sshd-session: tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 655/sshd: /usr/sbin tcp 0 0 0.0.0.0:1514 0.0.0.0:* LISTEN 7037/python tcp6 0 0 :::5000 :::* LISTEN 7037/python tcp6 0 0 :::5001 :::* LISTEN 7037/python tcp6 0 0 :::5002 :::* LISTEN 7045/python tcp6 0 0 ::1:6010 :::* LISTEN 8678/sshd-session: tcp6 0 0 :::22 :::* LISTEN 655/sshd: /usr/sbin root@pegaprox-prod:/home/pegaprox_admin#
I do not see anything listening on port 3001. Now that might be something that gets spun up when starting the console but nothing it listening by default.
Hi @mkellermann97,
Im getting the same error in my envinroment - 0.9.6.1.
Regards
Working on the part that is just the internal console that bugs out.
I logged into my PregaProx VM and tried to ping the name listed as the node. The node is listed as "jmcpve1". I used 'getent hosts' with the short name and nothing was returned. I then put in the fully qualified domain and it responded. I updated my /etc/resolve.conf with a search line and rebooted the node. Sadly this did not fix the issue. I will do some more troubleshooting and give more logs. in another comment.
@ccesario Are you running PegaProx in a container or a VM? Also you say the same issue is that the issue of console dropping, issue of external console, or both?
Hi @awangatboo, Im running PegaProx in a VM.
I have another bug case with more details. https://github.com/PegaProx/project-pegaprox/issues/92
Regards Carlos
Sorry but I have not gotten to getting log data today. I will do more test and post more tomorrow.
I have been working on getting this working all day but I wanted to start out by showing my cluster info. I am not using the SSL verification.
So that should not matter to the "time out". I saw somewhere else that SSL/TLS filtering can cause issues like this for proxmox. I am going to check with my network team to see if that have anything like this turned on between subnets. Pegaprox and the ProxMox nodes are on separate VLANs and the traffic is routed.
OK so I am trying to understand this so I can get to the bottom of the issue. I realized the difference between kicking the console off from Proxmox and kicking it off from PegaProx.
When I kick off the console from ProxMox I get this bar at the top.
When I kick it off from PegaProx I never see that label at the top. So how does this work? Does Pegaprox send the keys back and forth between the client and the Proxmox host? Does Pegaprox send the keys back and for between Proxmox and the PegaProx server and then just show the results? I would love to get to the bottom of this. Are there any logs on the PegaProx side I can look at? Some of these questions are me just typing them out and If I get an answer then great but I am going to try to figure out my answer.
Hi @awangatboo ,
please note as stated also on our bug report that we act on "best effort" behavior. Which means sometimes we simple just don't have the time to answer because we are all volunteers and currently most of team has other priorities(busy month). Due our completely free and open-source approach.
PegaProx acts here as an proxy provider that is put in place. You simple don't see the message because pegaprox doesn't send it with it. It runs on a WS Ticket exchange that goes forth and back. We would also need the f12 console output when a connection drops as we then simple can analyze this further.
Regards
Want to help PegaProx out? Feel free to leave us a Donation on Open Collective!
@MrMasterbay
I am fine with the effort you have put into pegaprox and this ticket. Sometimes I just type these things out so anyone looking at the ticket can follow my logic and hopefully see that I am trying to learn enough to be helpful in my troubleshooting. Thank you for all you do on this Project.
If I understand this correctly I need to get the log info from the proxmox system that dropped as well as anything that would be on the F12 copy of the console for the pegaprox server? tty12? If this is the case I am going to have issue as there only seams to be tty1-6 on the pegaprox VM.
Looking it up F12 looks like something from my browser. I will see what I can figure out with this to get you the log info you want.
Here is what I see on the F12 for the bouser. I hope this is the log that was wanted. Also this is F12 for when the console errors out. Not the F12 for when I click the "external" button.
Thanks for grabbing the F12 output @awangatboo, that's useful — the errors I can see in your screenshot are consistent with the WebSocket dropping mid-session, which matches what a few others reported around the same period.
The 0.9.7 release (yesterday) bundled a fair chunk of VNC stability work: moved the proxmox→client pump off the busy-wait loop onto asyncio.to_thread, added a 15s keepalive ping to the upstream PVE socket, and set TCP_NODELAY on the transport. On the clusters we tested those three changes together stopped the "drops after a few minutes" pattern.
Could you update to 0.9.7 and let the console sit for ~10 minutes to see if it still cuts out? If it does, the F12 output from the new version would be really helpful — the logs should look different, and that tells me whether we fixed one flavor of the disconnect but missed another.
I updated to 0.9.7 this morning and have already tired it. I did not reboot the VM after updating to 0.9.7. Is that something I should have done? Here are the logs.
JMCPVE1 ( all connections seam to start on this ProxMox server)
Apr 20 08:21:03 jmcpve1 pvedaemon[838065]: <root@pam!pegaprox_167366> starting task UPID:jmcpve1:000CDFF8:02ECFE2B:69E6283F:vncproxy:100:root@pam!pegaprox_167366: Apr 20 08:21:03 jmcpve1 pvedaemon[843768]: starting vnc proxy UPID:jmcpve1:000CDFF8:02ECFE2B:69E6283F:vncproxy:100:root@pam!pegaprox_167366: Apr 20 08:21:03 jmcpve1 pvedaemon[791875]: root@pam successful auth for user 'root@pam' Apr 20 08:21:03 jmcpve1 pvedaemon[791875]: root@pam starting task UPID:jmcpve1:000CDFFE:02ECFE49:69E6283F:vncproxy:100:root@pam: Apr 20 08:21:03 jmcpve1 pvedaemon[843774]: starting vnc proxy UPID:jmcpve1:000CDFFE:02ECFE49:69E6283F:vncproxy:100:root@pam: Apr 20 08:21:13 jmcpve1 pvedaemon[843768]: connection timed out Apr 20 08:21:13 jmcpve1 pvedaemon[838065]: <root@pam!pegaprox_167366> end task UPID:jmcpve1:000CDFF8:02ECFE2B:69E6283F:vncproxy:100:root@pam!pegaprox_167366: connection timed out Apr 20 08:21:34 jmcpve1 pveproxy[831702]: worker exit Apr 20 08:21:34 jmcpve1 pveproxy[3848]: worker 831702 finished Apr 20 08:21:34 jmcpve1 pveproxy[3848]: starting 1 worker(s) Apr 20 08:21:34 jmcpve1 pveproxy[3848]: worker 844162 started Apr 20 08:21:55 jmcpve1 pvedaemon[791875]: root@pam end task UPID:jmcpve1:000CDFFE:02ECFE49:69E6283F:vncproxy:100:root@pam: OK Apr 20 08:22:12 jmcpve1 pveproxy[844162]: Clearing outdated entries from certificate cache Apr 20 08:22:15 jmcpve1 pveproxy[833169]: worker exit Apr 20 08:22:15 jmcpve1 pveproxy[3848]: worker 833169 finished Apr 20 08:22:15 jmcpve1 pveproxy[3848]: starting 1 worker(s) Apr 20 08:22:15 jmcpve1 pveproxy[3848]: worker 844579 started Apr 20 08:22:19 jmcpve1 pveproxy[844579]: Clearing outdated entries from certificate cache Apr 20 08:22:33 jmcpve1 pvedaemon[806850]: root@pam successful auth for user 'root@pam' Apr 20 08:22:39 jmcpve1 pveproxy[834399]: worker exit Apr 20 08:22:39 jmcpve1 pveproxy[3848]: worker 834399 finished Apr 20 08:22:39 jmcpve1 pveproxy[3848]: starting 1 worker(s) Apr 20 08:22:39 jmcpve1 pveproxy[3848]: worker 844800 started Apr 20 08:22:41 jmcpve1 pveproxy[844800]: Clearing outdated entries from certificate cache
JMCPVE2 ( this is where the VM was I was testing with. )
Apr 20 08:21:03 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:21:03 jmcpve2 pvedaemon[3406070]: VM 100 qga command failed - VM 100 qga command 'guest-ping' failed - got timeout Apr 20 08:21:03 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:21:03 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:21:04 jmcpve2 sshd-session[875907]: Accepted publickey for root from 10.49.32.157 port 46428 ssh2: RSA SHA256:eIJyCBMtjwGXnIEqavY7nWGZWw8l5Um523zc91o1iWs Apr 20 08:21:04 jmcpve2 sshd-session[875907]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 20 08:21:04 jmcpve2 systemd[1]: Created slice user-0.slice - User Slice of UID 0. Apr 20 08:21:04 jmcpve2 systemd[1]: Starting [email protected] - User Runtime Directory /run/user/0... Apr 20 08:21:04 jmcpve2 systemd-logind[1620]: New session 208 of user root. Apr 20 08:21:04 jmcpve2 systemd[1]: Finished [email protected] - User Runtime Directory /run/user/0. Apr 20 08:21:04 jmcpve2 systemd[1]: Starting [email protected] - User Manager for UID 0... Apr 20 08:21:04 jmcpve2 (systemd)[875912]: pam_unix(systemd-user:session): session opened for user root(uid=0) by root(uid=0) Apr 20 08:21:04 jmcpve2 systemd-logind[1620]: New session 209 of user root. Apr 20 08:21:04 jmcpve2 systemd[875912]: Queued start job for default target default.target. Apr 20 08:21:04 jmcpve2 systemd[875912]: Created slice app.slice - User Application Slice. Apr 20 08:21:04 jmcpve2 systemd[875912]: Reached target paths.target - Paths. Apr 20 08:21:04 jmcpve2 systemd[875912]: Reached target timers.target - Timers. Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on dirmngr.socket - GnuPG network certificate management daemon. Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers). Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted). Apr 20 08:21:04 jmcpve2 systemd[875912]: Starting gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation)... Apr 20 08:21:04 jmcpve2 systemd[875912]: Starting gpg-agent.socket - GnuPG cryptographic agent and passphrase cache... Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on keyboxd.socket - GnuPG public key management service. Apr 20 08:21:04 jmcpve2 systemd[875912]: Starting ssh-agent.socket - OpenSSH Agent socket... Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation). Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on gpg-agent.socket - GnuPG cryptographic agent and passphrase cache. Apr 20 08:21:04 jmcpve2 systemd[875912]: Listening on ssh-agent.socket - OpenSSH Agent socket. Apr 20 08:21:04 jmcpve2 systemd[875912]: Reached target sockets.target - Sockets. Apr 20 08:21:04 jmcpve2 systemd[875912]: Reached target basic.target - Basic System. Apr 20 08:21:04 jmcpve2 systemd[875912]: Reached target default.target - Main User Target. Apr 20 08:21:04 jmcpve2 systemd[875912]: Startup finished in 132ms. Apr 20 08:21:04 jmcpve2 systemd[1]: Started [email protected] - User Manager for UID 0. Apr 20 08:21:04 jmcpve2 systemd[1]: Started session-208.scope - Session 208 of User root. Apr 20 08:21:06 jmcpve2 pvedaemon[204089]: VM 100 qga command failed - VM 100 qga command 'guest-ping' failed - got timeout Apr 20 08:21:13 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:21:55 jmcpve2 sshd-session[875935]: Received disconnect from 10.49.32.157 port 46428:11: disconnected by user Apr 20 08:21:55 jmcpve2 sshd-session[875935]: Disconnected from user root 10.49.32.157 port 46428 Apr 20 08:21:55 jmcpve2 sshd-session[875907]: pam_unix(sshd:session): session closed for user root Apr 20 08:21:55 jmcpve2 systemd[1]: session-208.scope: Deactivated successfully. Apr 20 08:21:55 jmcpve2 systemd[1]: session-208.scope: Consumed 500ms CPU time, 117.9M memory peak. Apr 20 08:21:55 jmcpve2 systemd-logind[1620]: Session 208 logged out. Waiting for processes to exit. Apr 20 08:21:55 jmcpve2 systemd-logind[1620]: Removed session 208. Apr 20 08:21:55 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:22:00 jmcpve2 sshd-session[876585]: Connection closed by 10.49.34.77 port 50026 Apr 20 08:22:05 jmcpve2 systemd[1]: Stopping [email protected] - User Manager for UID 0... Apr 20 08:22:05 jmcpve2 systemd[875912]: Activating special unit exit.target... Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopped target default.target - Main User Target. Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopped target basic.target - Basic System. Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopped target paths.target - Paths. Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopped target sockets.target - Sockets. Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopped target timers.target - Timers. Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed dirmngr.socket - GnuPG network certificate management daemon. Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed gpg-agent-browser.socket - GnuPG cryptographic agent and passphrase cache (access for web browsers). Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed gpg-agent-extra.socket - GnuPG cryptographic agent and passphrase cache (restricted). Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopping gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation)... Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopping gpg-agent.socket - GnuPG cryptographic agent and passphrase cache... Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed keyboxd.socket - GnuPG public key management service. Apr 20 08:22:05 jmcpve2 systemd[875912]: Stopping ssh-agent.socket - OpenSSH Agent socket... Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation). Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed ssh-agent.socket - OpenSSH Agent socket. Apr 20 08:22:05 jmcpve2 systemd[875912]: Closed gpg-agent.socket - GnuPG cryptographic agent and passphrase cache. Apr 20 08:22:05 jmcpve2 systemd[875912]: Removed slice app.slice - User Application Slice. Apr 20 08:22:05 jmcpve2 systemd[875912]: Reached target shutdown.target - Shutdown. Apr 20 08:22:05 jmcpve2 systemd[875912]: Finished systemd-exit.service - Exit the Session. Apr 20 08:22:05 jmcpve2 systemd[875912]: Reached target exit.target - Exit the Session. Apr 20 08:22:05 jmcpve2 systemd-logind[1620]: Removed session 209. Apr 20 08:22:05 jmcpve2 (sd-pam)[875914]: pam_unix(systemd-user:session): session closed for user root Apr 20 08:22:05 jmcpve2 systemd[1]: [email protected]: Deactivated successfully. Apr 20 08:22:05 jmcpve2 systemd[1]: Stopped [email protected] - User Manager for UID 0. Apr 20 08:22:05 jmcpve2 systemd[1]: Stopping [email protected] - User Runtime Directory /run/user/0... Apr 20 08:22:06 jmcpve2 systemd[1]: run-user-0.mount: Deactivated successfully. Apr 20 08:22:06 jmcpve2 systemd[1]: [email protected]: Deactivated successfully. Apr 20 08:22:06 jmcpve2 systemd[1]: Stopped [email protected] - User Runtime Directory /run/user/0. Apr 20 08:22:06 jmcpve2 systemd[1]: Removed slice user-0.slice - User Slice of UID 0. Apr 20 08:22:06 jmcpve2 systemd[1]: user-0.slice: Consumed 676ms CPU time, 126M memory peak. Apr 20 08:22:25 jmcpve2 pveproxy[832843]: worker exit Apr 20 08:22:25 jmcpve2 pveproxy[3681]: worker 832843 finished Apr 20 08:22:25 jmcpve2 pveproxy[3681]: starting 1 worker(s) Apr 20 08:22:25 jmcpve2 pveproxy[3681]: worker 876837 started Apr 20 08:22:33 jmcpve2 pmxcfs[1793]: [status] notice: received log Apr 20 08:23:00 jmcpve2 sshd-session[877226]: Connection closed by 10.49.34.77 port 48684 Apr 20 08:24:00 jmcpve2 sshd-session[877857]: Connection closed by 10.49.34.77 port 45360
On other question I have is has anyone seen this issue in the container version of PegaProx?
I was re-reading everything when I noticed that @mkellermann97 had wanted the "PegaProx server logs (logs/clusterid.log) when the disconnect happens that would narrow it down further" Sorry I have not gotten those. I am updating the proxmox cluster now so I think there would be two much info in the log fie. I will run another test tomorrow and send the data from the proxmox cluster, the F12 and the PegaProx logs/clusterid.log.
I did not get to the logs yet today but I have had a session running for 10 minute without a disconnect. Not sure if this was the issue but I was looking at the logs and I realized they were in a different timezone. Using "timedatectl set-timezone America/Chicago" set the timezone. I started a console and it has been running a long time right now. Will update after more testing.
Sadly the TZ did not fix it but it seams to last much longer since I fixed that on the VM.
That was the last time it disconnected. Here is my filtered /opt/Pegapro/logs/$clusterid.log file.
[2026-04-23 16:01:01,103] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve3 -> 10.49.32.159 (cluster/status, reachable on :22) [2026-04-23 16:01:01,140] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve2 -> 10.49.32.158 (cluster/status, reachable on :22) [2026-04-23 16:02:00,363] [PegaProx_JMCPVE] INFO: [VNC] Requesting ticket from 10.49.32.157 for qemu/100 on jmcpve2 [2026-04-23 16:02:00,407] [PegaProx_JMCPVE] INFO: [VNC] Got ticket for qemu/100, port=5900 [2026-04-23 16:02:01,297] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve2 -> 10.49.32.158 (cluster/status, reachable on :22) [2026-04-23 16:02:01,331] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve3 -> 10.49.32.159 (cluster/status, reachable on :22) [2026-04-23 16:02:01,338] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve1 is the local node, using 10.49.32.157 [2026-04-23 16:02:57,510] [PegaProx_JMCPVE] INFO: ============================================================ [2026-04-23 16:02:57,510] [PegaProx_JMCPVE] INFO: Starting balance check for cluster: JMCPVE [2026-04-23 16:02:57,510] [PegaProx_JMCPVE] INFO: Settings: Migration Threshold=20%, Check Interval=300s, Dry Run=False [2026-04-23 16:02:57,547] [PegaProx_JMCPVE] INFO: Active nodes: 3, Max migrations per cycle: 1 [2026-04-23 16:02:57,547] [PegaProx_JMCPVE] INFO: Score difference: 0.93 (Min: jmcpve1=5.00, Max: jmcpve2=5.93) [2026-04-23 16:02:57,547] [PegaProx_JMCPVE] INFO: Migration threshold: 20 + tolerance 10 = 30 [2026-04-23 16:02:57,547] [PegaProx_JMCPVE] INFO: [OK] Cluster balanced. Score diff 0.93 <= 30 [2026-04-23 16:02:57,553] [PegaProx_JMCPVE] INFO: Balance check completed at 2026-04-23 16:02:57.553558 [2026-04-23 16:02:57,553] [PegaProx_JMCPVE] INFO: ============================================================ [2026-04-23 16:03:01,476] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve2 -> 10.49.32.158 (cluster/status, reachable on :22) [2026-04-23 16:03:01,509] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve3 -> 10.49.32.159 (cluster/status, reachable on :22) [2026-04-23 16:03:01,517] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve1 is the local node, using 10.49.32.157 [2026-04-23 16:04:01,648] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve2 -> 10.49.32.158 (cluster/status, reachable on :22) [2026-04-23 16:04:01,682] [PegaProx_JMCPVE] INFO: [NodeIP] jmcpve3 -> 10.49.32.159 (cluster/status, reachable on :22)
I filtered twice taking out all the "DEBUG: Raw status data" and "Status: online". I see the VNC parts of the log.
Here is from number 1 of the proxmox server.
Apr 23 16:01:41 jmcpve1 pveproxy[1785326]: Clearing outdated entries from certificate cache Apr 23 16:02:00 jmcpve1 pvedaemon[1785573]: starting vnc proxy UPID:jmcpve1:001B3EE5:0104B360:69EA88C8:vncproxy:100:root@pam!pegaprox_167366: Apr 23 16:02:00 jmcpve1 pvedaemon[1765666]: <root@pam!pegaprox_167366> starting task UPID:jmcpve1:001B3EE5:0104B360:69EA88C8:vncproxy:100:root@pam!pegaprox_167366: Apr 23 16:02:00 jmcpve1 pvedaemon[1732715]: root@pam successful auth for user 'root@pam' Apr 23 16:02:00 jmcpve1 pvedaemon[1323497]: root@pam starting task UPID:jmcpve1:001B3EED:0104B37E:69EA88C8:vncproxy:100:root@pam: Apr 23 16:02:00 jmcpve1 pvedaemon[1785581]: starting vnc proxy UPID:jmcpve1:001B3EED:0104B37E:69EA88C8:vncproxy:100:root@pam: Apr 23 16:02:10 jmcpve1 pvedaemon[1785573]: connection timed out Apr 23 16:02:10 jmcpve1 pvedaemon[1765666]: <root@pam!pegaprox_167366> end task UPID:jmcpve1:001B3EE5:0104B360:69EA88C8:vncproxy:100:root@pam!pegaprox_167366: connection timed out Apr 23 16:03:48 jmcpve1 pveproxy[1772279]: worker exit Apr 23 16:03:48 jmcpve1 pveproxy[3283]: worker 1772279 finished Apr 23 16:03:48 jmcpve1 pveproxy[3283]: starting 1 worker(s) Apr 23 16:03:48 jmcpve1 pveproxy[3283]: worker 1786691 started Apr 23 16:03:58 jmcpve1 pvedaemon[1525847]: root@pam successful auth for user 'root@pam' Apr 23 16:04:25 jmcpve1 pveproxy[1773926]: worker exit Apr 23 16:04:25 jmcpve1 pveproxy[3283]: worker 1773926 finished Apr 23 16:04:25 jmcpve1 pveproxy[3283]: starting 1 worker(s) Apr 23 16:04:25 jmcpve1 pveproxy[3283]: worker 1787094 started Apr 23 16:05:05 jmcpve1 pveproxy[1786691]: Clearing outdated entries from certificate cache Apr 23 16:05:08 jmcpve1 pveproxy[1787094]: Clearing outdated entries from certificate cache Apr 23 16:05:24 jmcpve1 pvedaemon[1563017]: root@pam successful auth for user 'root@pam' Apr 23 16:05:38 jmcpve1 pveproxy[1778986]: worker exit Apr 23 16:05:38 jmcpve1 pveproxy[3283]: worker 1778986 finished Apr 23 16:05:38 jmcpve1 pveproxy[3283]: starting 1 worker(s) Apr 23 16:05:38 jmcpve1 pveproxy[3283]: worker 1787825 started Apr 23 16:05:44 jmcpve1 pveproxy[1787825]: Clearing outdated entries from certificate cache Apr 23 16:06:00 jmcpve1 pveproxy[1773499]: worker exit Apr 23 16:06:00 jmcpve1 pveproxy[3283]: worker 1773499 finished Apr 23 16:06:00 jmcpve1 pveproxy[3283]: starting 1 worker(s) Apr 23 16:06:00 jmcpve1 pveproxy[3283]: worker 1788144 started Apr 23 16:06:35 jmcpve1 pveproxy[1788144]: Clearing outdated entries from certificate cache Apr 23 16:06:45 jmcpve1 pvedaemon[1323497]: root@pam end task UPID:jmcpve1:001B3EED:0104B37E:69EA88C8:vncproxy:100:root@pam: OK Apr 23 16:09:16 jmcpve1 pveproxy[1784251]: worker exit Apr 23 16:09:16 jmcpve1 pveproxy[3283]: worker 1784251 finished
Here is from number 2 of the proxmox server.
Apr 23 16:02:00 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:02:00 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:02:00 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:02:00 jmcpve2 sshd-session[1765438]: Accepted publickey for root from 10.49.32.157 port 43372 ssh2: RSA SHA256:eIJyCBMtjwGXnIEqavY7nWGZWw8l5Um523zc91o1iWs Apr 23 16:02:00 jmcpve2 sshd-session[1765438]: pam_unix(sshd:session): session opened for user root(uid=0) by root(uid=0) Apr 23 16:02:00 jmcpve2 systemd-logind[1478]: New session 83 of user root. Apr 23 16:02:00 jmcpve2 systemd[1]: Started session-83.scope - Session 83 of User root. Apr 23 16:02:01 jmcpve2 sshd-session[1765464]: Connection closed by 10.49.34.77 port 51284 Apr 23 16:02:10 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:03:01 jmcpve2 sshd-session[1766085]: Connection closed by 10.49.34.77 port 58300 Apr 23 16:03:58 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:04:01 jmcpve2 sshd-session[1766703]: Connection closed by 10.49.34.77 port 53172 Apr 23 16:05:01 jmcpve2 sshd-session[1767323]: Connection closed by 10.49.34.77 port 60808 Apr 23 16:05:24 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:06:02 jmcpve2 sshd-session[1767944]: Connection closed by 10.49.34.77 port 36116 Apr 23 16:06:45 jmcpve2 sshd-session[1765445]: Received disconnect from 10.49.32.157 port 43372:11: disconnected by user Apr 23 16:06:45 jmcpve2 sshd-session[1765445]: Disconnected from user root 10.49.32.157 port 43372 Apr 23 16:06:45 jmcpve2 sshd-session[1765438]: pam_unix(sshd:session): session closed for user root Apr 23 16:06:45 jmcpve2 systemd[1]: session-83.scope: Deactivated successfully. Apr 23 16:06:45 jmcpve2 systemd[1]: session-83.scope: Consumed 824ms CPU time, 119.1M memory peak. Apr 23 16:06:45 jmcpve2 systemd-logind[1478]: Session 83 logged out. Waiting for processes to exit. Apr 23 16:06:45 jmcpve2 systemd-logind[1478]: Removed session 83. Apr 23 16:06:45 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:07:02 jmcpve2 sshd-session[1768569]: Connection closed by 10.49.34.77 port 35884 Apr 23 16:08:02 jmcpve2 sshd-session[1769195]: Connection closed by 10.49.34.77 port 42516 Apr 23 16:08:09 jmcpve2 pveproxy[1673600]: worker exit Apr 23 16:08:09 jmcpve2 pveproxy[2998]: worker 1673600 finished Apr 23 16:08:09 jmcpve2 pveproxy[2998]: starting 1 worker(s) Apr 23 16:08:09 jmcpve2 pveproxy[2998]: worker 1769212 started Apr 23 16:09:02 jmcpve2 sshd-session[1769812]: Connection closed by 10.49.34.77 port 45092 Apr 23 16:09:34 jmcpve2 pmxcfs[1802]: [status] notice: received log Apr 23 16:10:02 jmcpve2 sshd-session[1770431]: Connection closed by 10.49.34.77 port 56350 Apr 23 16:11:03 jmcpve2 sshd-session[1771049]: Connection closed by 10.49.34.77 port 52396 Apr 23 16:12:03 jmcpve2 sshd-session[1771667]: Connection closed by 10.49.34.77 port 33360 Apr 23 16:13:03 jmcpve2 sshd-session[1772286]: Connection closed by 10.49.34.77 port 38314 Apr 23 16:14:03 jmcpve2 sshd-session[1772904]: Connection closed by 10.49.34.77 port 39808 Apr 23 16:15:03 jmcpve2 sshd-session[1773531]: Connection closed by 10.49.34.77 port 57598 Apr 23 16:16:03 jmcpve2 sshd-session[1774154]: Connection closed by 10.49.34.77 port 53708 Apr 23 16:17:01 jmcpve2 CRON[1774759]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0) Apr 23 16:17:01 jmcpve2 CRON[1774761]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
10.49.34.77 is the PegaProx VM.
Fixed in v0.9.7.1 — added an extra keepalive on the RFB/VNC layer. The browser was hitting an idle-disconnect from the WS proxy before the noVNC ping kicked in.