workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

[Bug] - RDP session keeps disconnect after 10-15 seconds

Open emtee14 opened this issue 1 year ago • 7 comments

Existing Resources

  • [x] Please search the existing issues for related problems
  • [x] Consult the product documentation : Docs
  • [x] Consult the FAQ : FAQ
  • [x] Consult the Troubleshooting Guide : Guide
  • [ ] Reviewed existing training videos: Youtube

Describe the bug I'm running Kasm on a Ubuntu VM and I'm trying to setup access to a Windows machine. I have the agent installed on the Windows VM and Kasm is running behind a reverse proxy with the timeout set to 1hr. When I go to create a session it initially connects and works fine then after about 10-15 seconds it freezes and then a few seconds later says Connection lost. Reconnecting.... Same things happen on local RDP through Kasm as well as the web native.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior It should stay connected

Screenshots If applicable, add screenshots to help explain your problem. Video Here

Workspaces Version 1.16.1.be60db

Workspaces Installation Method Single Server

Client Browser (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version 131.0.6778.109

Workspace Server Information (please provide the output of the following commands): Device name DESKTOP-SLSRR59 Processor Common KVM processor 2.40 GHz Installed RAM 16.0 GB Device ID 103ED311-6D44-487C-B4E7-21D5B20E9407 Product ID 00330-80145-84715-AA602 System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display

Edition Windows 10 Pro Version 22H2 Installed on ‎13/‎12/‎2024 OS build 19045.3803 Experience Windows Feature Experience Pack 1000.19053.1000.0

Additional context RDP works fine through the windows RDP but only fails through Kasm

emtee14 avatar Dec 14 '24 00:12 emtee14

Actually it's not just the Windows VM it's also containers.

emtee14 avatar Dec 14 '24 01:12 emtee14

An error from the logs though not sure it is related diagnostics (2).zip

emtee14 avatar Dec 14 '24 01:12 emtee14

I have the same issue, have you some sort of figured out what was causing it?

TobiePepitoIT avatar Aug 18 '25 14:08 TobiePepitoIT

If you're running Kasm behind a reverse proxy or similar type service, you'll want to check if there are any connection keeplalive type settings. If its disconnecting at regular intervals like this, thats probably the case. You can review what we recommend for Nginx reverse proxies and try to apply those principals to whatever solution you are running: https://kasmweb.com/docs/latest/how_to/reverse_proxy.html

j-travis avatar Aug 19 '25 00:08 j-travis

TY for pointing that out. Seems like this custom config that I put in nginx worked for me.

location /kasmvnc { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_buffering off; proxy_read_timeout 86400; }

TobiePepitoIT avatar Aug 19 '25 03:08 TobiePepitoIT

Based on further observation, I am still experiencing this issue even after applying the custom config above.

TobiePepitoIT avatar Aug 20 '25 00:08 TobiePepitoIT

Based on further observation, I am still experiencing this issue even after applying the custom config above.

Why are you using the /kasmvnc location path, and why didnt you apply all the options that we define in the docs. Is your issue ralatedd to RDP sessions or all sessions, and are you using the Kasm Workspace platform or running images standalone

j-travis avatar Aug 20 '25 02:08 j-travis