Error - "The Citrix Independent Management Architecture (IMA) service is exiting. The Neighborhood (farm name) could not be read from the Data Store or written to the registry."

Error - "The Citrix Independent Management Architecture (IMA) service is exiting. The Neighborhood (farm name) could not be read from the Data Store or written to the registry."

book

Article ID: CTX129155

calendar_today

Updated On:

Description

The IMA Service does not start and the following error message appears in the server Event log:

“The Citrix Independent Management Architecture (IMA) service is exiting. The Neighborhood (farm name) could not be read from the Data Store or written to the registry.”

User-added image

User-added image

This issue causes the IMA to not start, and if IMA is not started the Citrix Server cannot be used for ICA sessions.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

Solution 1

Follow the procedure as a simple workaround to check the registry and create values as shown.

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

  1. On the affected server, run RegEdit.exe to open the Registry Editor for Microsoft Windows.

  2. The IMA registry settings have locations where the Neighborhood value for the farm name is defined. Verify each one of the keys is correct. This error occurs because one or both of these values is named incorrectly or is empty.
    User-added image
    The locations where you can verify the Neighborhood values are:
    Microsoft Windows 32-bit
    HKLM\SOFTWARE \CITRIX\IMA\
    HKLM\SOFTWARE \CITRIX\IMA\RUNTIME\
    Microsoft Windows 64-bit
    HKLM\SOFTWARE\WOW6432NODE\CITRIX\IMA\
    HKLM\SOFTWARE\WOW6432NODE\CITRIX\IMA\RUNTIME\

  1. Set the value to the farm name that the server belongs to if in any of these locations Neighborhood is empty. Restart the IMA service. 

Solution 2 (New Install and the issue occurs during the configuration process)

This issue can also occur when the account used to run initial configuration on a new install does not have sufficient permissions. Hence run the XenApp Server Configuration Wizard as an administrator during initial configuration.
  1. Locate the executable for the XenApp configuration. This is located at C:\Program Files (x86)\Citrix\XenApp\ServerConfig\XenAppServerConfiguration.exe.

  1. Run the executable as Administrator.
    User-added image


Problem Cause

This error might occur if the farm name settings on the server is missing on the IMA registry settings. Usually, this occurs with a bad installation or a bad hotfix installation on the server. This also occurs when the account used to run initial configuration on a new install does not have sufficient permissions.

Issue/Introduction

This article provides resolution to fix the error: The Citrix Independent Management Architecture (IMA) service is exiting. The Neighborhood (farm name) could not be read from the Data Store or written to the registry.

Additional Information

CTX105292 – Troubleshooting IMA Service Failure To Start