VMware Horizon Community
N2Z2
Contributor
Contributor

Session stuck in disc state

Hi all,

I've an horizon application pool with these components: Connection server 7.13.1, Agent 7.13.1, Client 5.x, automated desktop pool, instant clone, floating assigment, session types application.

Sometimes the session doesn't disconnect when the user closes the application, so if we open the session from vcenter with remote console we can see the windows logon screen showing the username and asking for user password.

 

N2Z2_2-1646219134078.png

 

In these cases, the user is unable to connect again to a new session, he get the error "All available application servers for this application are currently busy. Please try connecting to this application again later or contact your system administrator.".

Settings for the pool are these

N2Z2_1-1646218768577.png

To avoid the problem I've done a small script that search for user disc session with windows qwinsta and reboot the vm if a session is found. But that's not a solution, that's a stupid workaround.

Any hint?

Thanks

 

 

0 Kudos
4 Replies
kvmw2130
VMware Employee
VMware Employee

Hello,

 

There must be some thing stopping the graceful log off process, if you open blast worker log and look for " invalidating session"  message around these lines there must be some error or some process holding up.

0 Kudos
N2Z2
Contributor
Contributor

Hello,

thanks for your reply.

I've got the files Blast-Service.log and Blast-Worker-SessionId1.log and I've found this event

2022-03-03 17:02:36.594+0100 [INFO ] 0x07bc BlastSessionMgr::DestroySession: invalidating vAuth:ZFcoQU***** for cnx:1

And around this there's a couple of error

2022-03-03 17:02:36.591+0100 [ERROR] 0x1834 AbUtil::EnumRegistryKeys: Failed to open registry key path:SOFTWARE\VMware, Inc.\VMware VDM\SessionData\1, error:0x00000002 (Unknown error 2 (0x2))

2022-03-03 17:02:36.591+0100 [ERROR] 0x1834 MainApp::RegistryListenCallback: Unable to listen for changes on registry key SOFTWARE\VMware, Inc.\VMware VDM\SessionData\1, error:0x000003fa.

2022-03-03 17:02:36.594+0100 [ERROR] 0x07bc AbUtil::EnumRegistryKeys: Failed to open registry key path:SOFTWARE\VMware, Inc.\VMware VDM\SessionData\1, error:0x00000002 (Unknown error 2 (0x2))

 

It could be useful for further investigations?

Thanks again

 

0 Kudos
kvmw2130
VMware Employee
VMware Employee

Thank you, these are the generic messages, all I wanted to know was if there were any stale sessions. 

Do you see any session apart from console session on qwinsta /SERVER:localhost ?

0 Kudos
N2Z2
Contributor
Contributor

Hi,

that's what I see

qwinsta /server:<VMNAME>

SESSIONNAME USERNAME        ID          STATE   TYPE    DEVICE
services                                       0            Disc
                          <username>       1             Disc
rdp-tcp                                         65536    Listen

 

Thanks

 

0 Kudos