Wednesday 29 March 2017

Citrix Apps getting disconnecting and disappeared



Hello Professionals,
Its being 15 days that am getting ping to suggest for some Citrix Apps Issue, Apps getting crashed and disconnecting after launch.Here updating some of scenario case what i found and worth to share it. Just tried to put all the issues with solution to techie plate. Review and comment and if any point or line is disturbing you for the solution or any other steps solve your issue. 

Infrastructure Setup:
Domain Controller: 2 No's ( Windows 2012 and Windows 2016)
Citrix Farm: 2 No's ( Windows 2008 R2)
Client : 5 No's (Windows 7 32 bit and 64 bit)

Issue: Apps Console disappeared after some time Ater Launching the Apps in different scenario.
Resolution Steps: Here are some basic points to check with troubleshooting.

1. Any Recent changes
2. Apps is working fine with Citrix Server
3. Users are from Same domain or different domain.
4. Citrix Event Log diagnose
5. Create new Apps for test and see if the same behaviour with new Apps too.
6. Check you Antivirus behavious and logs, in some case i found due to AV Apps  
    traffic getting blocked.

Issue-1: The application initially begins to open. After loading the application, the dialogue box disappears and the application fails to appear.
 
Solution: To resolve the issue, re-provision the base image with the timeout value:
registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI (create the key if it is not available.)

Name: ApplicationLaunchWaitTimeoutMS

Type: REG_DWORD

Data: Required additional time-out, in milliseconds

Note: Set this value using Decimal. Specifying a value less than 10000 reverts to 10000 because 10 seconds is the minimum override.
Issue Explanation: The issue occurs when the default one-minute time-out is exceeded and the session logs off automatically because the application takes a longer time to start.

Issue-2 : Explorer.exe failing again and again and disconnecting after Launch.
    1.The session initially begins to connect as expected. After the loading, the  
       dialogue box disappears and the explorer application fails to appear.
    2.If the session is viewed in the Delivery Services console while the  
      application is loading, it initially shows as connecting, and later shows as 
      disconnected, until finally the session disappears.
 
Solution:
     1. Update the Citrix farm server with Latest Hotfix and reboot.
     2. On the XenApp Server use the following registry key to configure the  
        time-out:
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix 
         \wfshell\TWI

Name: ApplicationLaunchWaitTimeoutMS
Type: REG_DWORD
Data: <required additional time-out, in milliseconds>

Note: Specifying a value of less than 10000 reverts to 10000 because 10 seconds is the minimum override.
 
Issue-4: On the XenApp Server use the following registry change to set the length of time a client session waits before disconnecting the session.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI

Value Name: LogoffCheckerStartupDelayInSeconds
Type: REG_DWORD
Value: An integer that denotes the time to wait for the application to start.

Note: Setting this value also increases the time it takes for a user to log off the server. Enter the delay time in seconds, up to 10 minutes (600 seconds).

It is more useful as a troubleshooting step to confirm that the issue is because of the length of time required for the application to launch.
Issue Explanation:The issue occurs when the default one-minute time-out is exceeded and the session exits automatically. The explorer.exe application takes longer time to start as it is integrated into the Windows shell.

Issue-5: Apps Getting crash and disconnecting.
Solution: apply CTX128953 and CTX131628 by registry or policy XA 

Issue-6:  MS Word is keep crashing after saving some time for all users.
Solution: There is an option in MS word called Auto-Save, that feature was causing that Apps to crash. Just set to turn off the Auto Save feature and it works.

Issue-7: Published Citrix application starts and then exits immediately on a Windows 2008 SP2-based Citrix server

Solution: From Microsoft there is a patch available for this issue, Refer this Link

Learn, Earn and share the Knowledge. Please comment and feedback will help me to understand more on the blogs side, where the suggested solutions worked or not. Appreciate your comment and feedback if any other solution worked for you.