Forum Discussion
Started a few days ago at most: Agent on Session host no longer communicates properly with WVD
- Aug 15, 2019
ClearForward Thanks for reporting the issue. This is service side issue and we have fixed it few minutes back. Can you please verify if it working now. We would like to further investigate if that's not the case. Thanks.
Johan_Eriksson I'm having what I think is a related issue. Our setup is also from May 2019, and in the last 48 hours we're having constant issues.
Ever since our virtual desktop VMs auto-updated to Remote Desktop Services Infrastructure Agent 1.0.1006.2006, they keep falling into a bad state of "NoHeartbeat" after only a few minutes. When the VMs first boot, the status is "Available" and "LastHeartBeat" reflects the time of boot. We're able to connect to the pool without issue and can maintain sessions, but cannot start new sessions because the status changes to "NoHeartbeat".
If an admin restarts the "RDAgentBootloader" service, the status changes to "Available" and "LastHeartBeat" reflects the time of the service restart.
For reference, I am checking on the status of the pool with the "Get-RdsSessionHost" cmdlet.
- Roop_Kiran_ChevuriAug 15, 2019
Microsoft
Thanks for bringing this to our attention. Can you reply back with output of Get-RDSSessionHost please? Thanks.- GuyPaddockAug 15, 2019Brass Contributor
- GuyPaddockAug 15, 2019Brass ContributorThis was from a screenshot I took right before implementing the workaround that restarts the RD Agent Bootloader every 1 min.
- GuyPaddockAug 15, 2019Brass ContributorAs a quick workaround for my issue, I'm had to setup a task with Task Scheduler that runs NET STOP and NET START of RdAgentBootloader every 1 min, starting at system boot and continuing indefinitely. This gives us about 55 seconds out of every minute where the session hosts are "Available", and 5 seconds where they're "NoHeartbeat". It's an awful hack, but it's better than nothing until MSFT can push a version of the RD Agent that can actually post heartbeats.
- iconicmleeAug 15, 2019Copper ContributorDo you mind sending me your task scheduler settings please. I am in a bind and would like to get through the testing of the task scheduler you already did by reaching out. Thanks a million! GuyPaddock
- GuyPaddockAug 15, 2019Brass Contributor
One other power user tip: I found a Powershell cmdlet that makes it really easy to monitor the status of the session hosts so you can see the scheduled task in action.
You can get the cmdlet here:
http://wragg.io/watch-for-changes-with-powershell/You can run it to monitor session hosts this way:
{ Get-RdsSessionHost -TenantName "TENANT" -HostPoolName "HOST POOL" } | Watch-Command -Verbose -ContinuousIf any values like status, heartbeat time, session count, etc change, it prints the output.