"The system is currently unavailable. Please try again or contact your administrator."
Well... That helps.
Step 1 was to turn on logging for Desktop Director.
Step 2 was the reproduce the issue and analyze the log.
"15:13:37.2515 : [t:5, s:unknown] TimeoutException caught: This request operation sent to net.tcp://wsctxzdc303.healthy.bewell.ca:2513/Citrix/XenAppCommands did not receive a reply within the configured timeout (00:00:10). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client."
So. It appears there is a timeout and the XenAppCommands is not completing in time. Is this because something was wrong with our ZDC? To test this I used Remote-XAPSSession to test the command above in the log (Get-XAServer -OnlineOnly -ZoneName A,B,C). With powershell remoting I connected to the ZDC 301 and 302 and ran the command and it completed within a second. I then tried it against 303 and 304 and the command completed in.... 17 seconds and 22 seconds. Far exceeding the 10 second timeout. Why was it taking so long? It turns out that the ZDC is forced to contact the database with that command as opposed to utilize the LHC (local host cache). Procmon shows lots of database communication and our two ZDC's 303 and 304 are in Edmonton and the database resides in Calgary; communication round-trip makes those ZDC's exceed 10 seconds.
So... It turns out that Desktop Director should be pointed at a data collector that sits closest to the database. If it is too far away you may exceed this timeout and your users will be unable to login. Unforunately, I am unable to find a way to manipulate this timeout to increase it (even though that will cause poor performance, at least users can actually operate).
No comments:
Post a Comment