Applies to: Nerdio Private Cloud (NPC)
The error message "The View agent reports that this desktop is currently logging off a previous session" is generally displayed when a VM has a process hanging up the VM upon logoff. This is a known issue with VMWare and our steps below include a fix from VMWare that can be applied. The same error can also manifest itself as “Available desktop resources are currently busy” or as “A desktop resource is unavailable”.
Steps to troubleshoot the error:
- The first and foremost step is to troubleshoot the error to find its root cause. This error occurs when there is a process from the previous session hanging up the VM, preventing the session to log off.
- Looking at the workstation via your RMM tool or RDP'ing into it may allow you to see what process is pending termination to allow the VM to completely logoff.
- Looking at the "Task Manager" for the particular VM may provide some insights into what processes are still running for the user as well.
Steps to resolve the issue:
- The quick resolution, allowing the user to log in, is to perform a reset from the NAP, or the user can reset their own workstation using the steps given in the article below:
- Another way is setting processes to "Auto-end" at logoff: Regardless of the root cause, the registry key shown below and described in this article (https://kb.vmware.com/s/article/2151503) should be implemented to "Auto-end" processes at logoff. This will force quit the processes upon logoff. Refer article for more details: https://help.nerdio.net/hc/en-us/articles/360020712652?flash_digest=a7acb070b130fd9d4a1d00ffd0af21d8eb0fba8a
Here's the excerpt from the article:
Set AutoEndtasks to 1: If the user process does not cleanly shut down, this will tell Windows to close the process rather than prompt the user.
HKCU\Control Panel\Desktop | AutoEndTasks = 1
WaitToKillAppTimeout determines how long in milliseconds Windows will wait before prompting the user or closing the process. Note: If AutoEndTasks does not equal 1, this will not prevent the issue described in this article. Changing this value is optional. The default value is 20000 (20 seconds).
HKCU\Control Panel\Desktop | WaitToKillAppTimeout = 20