Thursday, 26 July 2018

Troubleshooting IMA


If IMA services not responding, what troubleshoot you do?

  Some common for Reasons IMA may not start:

  1. Corrupt Local Host Cache: 
                    dsmaint recreatelhc command from CLI.

2. Corrupt Rade Components:
     dsmaint  recreaterade command from CLI.

3. Corrupt Service Account: 
          Citrix IMA uses the network service account, which sometimes goes corrupt.  To verify if this account is working properly, try going into the service console and changing the account that IMA uses from the NSA to the local account.  If this resolves the issue, you’ll know you need to rebuild your account.

4.  Corrupt Data store:
        dscheck /full from CLI and use the command prior to resolve the issue.

5.  Rebuild Link to Data Store: 
“DSMAINT CONFIG /user: username /pwd: password /dsn:DSNFilename” command from the CLI.

  6. XML Service Corruption:
If you do a “Netstat –a” command from the CLI, you may see that it’s not listening on the XML port.
“CTXXMLSS  /u” first to unregister the service
“CTXXMLSS /r80” command to re-register the service on port 80

7. Print Spooler: 
       What does IMA have to do with printing, you may ask?  Well, if the print spooler is hung – Citrix Admins have experienced problems with IMA operation.   You may fix this by restarting the print spooler, or in some cases by locating print drivers on the terminal server that are in a stuck state and deleting them.

 8. Service Account Permissions:
      Open Regedit from RUN, and give full control rights to the local administrators group on the following key: “HKEY_Local_Machine\Software\Citrix\IMA\Data”.

9. Missing Temp Directory:  
             Believe it or not, Citrix IMA can fail to start if the C:\Winnt\Temp folder is missing.  If this directory doesn’t exist, try creating it and verifying that the TMP and TEMP system environment variables are pointed to it.
          Troubleshooting IMA:
1. Event Viewer:  Sometimes the Windows event viewer can provide you with some valuable information on why IMA failed to start.  
2. Check the registry:  
In order to use this registry key, simply launch regedit and browse to the “HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\Runtime\CurrentlyLoadingPlugin” and pay attention to the value in that field.
If the value mentions a particular DLL file, it may give you a clue on something that has gone corrupt or is no longer working in the environment.
According to Citrix, it should be OK to copy working DLL’s from other servers in the environment to a trouble server for troubleshooting purposes.
3. Network Ports: 
           Telnet <server name> 2512 from CLI of any XenApp server in the farm.
      4.  The following could be some reasons, for the IMA Service fail   to start:

IMA Service load time
IMA Service subsystem
Missing Temp directory
Print spooler service
ODBC configuration
Roaming Profile
Another server with an identical NetBIOS name on the same network
        IMA Service load time
If the Service Control Manager reports that the IMA Service could not be started, but the service eventually starts, ignore the error message.
The Service Control Manager has a timeout of six minutes. The IMA Service can take longer than six minutes to start if the load on the database exceeds the capabilities of the database hardware or if the network has high-latency. If you feel that the service is merely hung (stuck in a “starting” state) you can terminate the ImaSrv.exe process in Task Manager and restart the Citrix Independent Management Architecture service as a test
         IMA Service subsystem
Examine the following Windows Registry setting:
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\Runtime\CurrentlyLoadingPlugin.
If there is no value specified in the CurrentlyLoadingPlugin portion of the above Windows   Registry entry, then either the IMA Service could not connect to the data store or the local host cache is missing or corrupt.
If a CurrentlyLoadingPlugin value is specified, the IMA Service made a connection to the data store and the value displayed is the name of the IMA Service subsystem that failed to load.
        Missing Temp directory
If administrators see an “IMA Service Failed” error message with an error code of 2147483649 when starting the server, the local system account might be missing a Temp directory which is required for the IMA Service to run.
To gain further insight into the situation, change the IMA Service startup account to the local administrator and restart the server. If the IMA Service is successful in starting under the local administrator’s account, then it is likely that a missing Temp directory for the local system account is causing the situation.
If the Temp directory is not present, then manually create one as <roor directory>\Temp. For example: 
C:\Winnt\Temp
Also, verify that the TMP and TEMP system environment variables point to the temporary directory. Restart the server to restart the IMA Service.
      Print spooler service
When the server attempts to start the IMA Service, the “Setup Could Not Start The IMA Service” error message appears. This error shows that the IMA Service is not starting, possibly because the print spooler service is not running or was configured incorrectly. In addition, the following error messages appear in the Event Viewer:
Failed to load plugin MfPrintSs.dll with error 80000001h
Failed to load initial plugins with error 80000001h
The Independent Management Architecture service terminated with service-specific error
The error occurs because the print spooler service:
Has stopped
Is disabled
Is not configured to run under the Local System Account
To correct this error, verify that the print spooler service was started in the context of system rather than in the context of a user. A print spooler service that is not running or has been configured incorrectly might cause the printing subsystem to fail to load.
To resolve the situation, stop and start the print spooler service, making sure that it is configured to run under the Local System Account. Then, try to start the IMA Service.
      ODBC configuration
Verify that the Microsoft SQL Server or Oracle server is online.
Verify the name of the DSN file that the IMA Service is using by looking at the following key in the Windows Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\DataSourceName.
Attempt to connect to the database using the DSN file with an ODBC test utility such as Oracle ODBC Test or SQL Server ODBC Test.
Verify that the correct user name and password are being used for database connectivity.
Change the user name and password using the DSMAINT CONFIG command, if needed using dsmaint config /user:username /pwd:password /dsn:dsnfilename
Enable ODBC Tracing for further troubleshooting.


Roaming Profile


     When the server attempts to start the IMA Service, the “Setup Could Not Start the IMA Service” error message appears. In the event viewer you might see the following error: IMA_RESULT_INVALID_MESSAGE or other events related to the IMA Service not being able to start.

Verify the size of the roaming profile, especially if it is crossing a WAN. Also watch for error messages related to not being able to load the profile. Test with a local user profile or one that is smaller in size.


Another server with an identical NetBIOS name on the same network


              Verify that there is not another server on the network with the same NetBIOS name on the network. If the CurrentlyLoadingPlugin has the ImaLicSs.dll listed, this might be an indication of this condition. Another symptom of ImaLicSs.dll
“106. The IMA Service failed to start because of license group corruption in the data store.
Note: This fix prevents corruption in the data store but it does not correct any corruption that may already exist. You need to check for corruptions present in the data store and correct them using the appropriate tools.

[#66583]”

No comments:

Post a Comment

How to remove a dead server from the Citrix Management Console?

- Execute the DSVERIFY SERVERS /CLEAN /FORCE for optimizing the Data Store. - DSVerify can run on any of the server in the farm. - MetaFrame...