ERROR

Could not find home for relational data store binaries of the PostgreSQL directory

Last Published: August 8, 2024

Error Message

Attempts to upgrade ArcGIS Data Store to the latest version fail and return the following error message:

Error:
Attempt to configure data store failed. Caused by: Database upgrade failed for relational data store. Caused by: Could not find home for relational data store binaries 'C:\arcgisdatastore\pgsql<PostgreSQL version number>'.
Error message returrned when attempting to upgrade ArcGIS Data Store

Cause

  • In a high availability environment, the pgsql folder is only present on the ArcGIS Data Store standby machine and not on the primary machine.
  • The pgsql folder is deleted in the arcgisdatastore folder.

Solution or Workaround

Copy the pgsql folder from the standby machine to the primary machine

  1. Stop ArcGIS Data Store on both the standby machine and primary machine. Refer to Portal for ArcGIS: Change the status of a data store machine for information.
  2. Open Windows File Explorer on the standby data store machine.
  3. Navigate and open the standby data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
  1. Right-click the pgsql folder and select Copy.
  2. Open Windows File Explorer on the primary data store machine.
  3. Navigate and open the primary data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
  1. Right-click inside the folder and select Paste.
  2. Restart the primary data store machine. Refer to Portal for ArcGIS: Change the status of a data store machine for information.
  3. On the Windows taskbar, search for and select Task Manager.
  4. In the Task Manager window, click on the Details tab.
  5. Ensure the Status of the postgres.exe process is Running.

Copy the pgsql folder from a different folder location or from a backup

  1. On the Windows taskbar, search for and select Task Manager.
  2. In the Task Manager window, click Services.
  3. Search for and select ArcGIS Data Store. Right-click ArcGIS Data Store and select Stop.
  4. Navigate to the location the pgsql folder is located. The folder is commonly located at:
C:\arcgisdportal
  1. Double-click the arcgisportal folder. Right-click on the pgsql folder and select Copy
  2. Navigate to the data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
  1. Right-click inside the arcgisdatastore folder and select Paste.
  2. On the Windows taskbar, search for and select Task Manager.
  3. In the Task Manager window, click Services.
  4. Search and select ArcGIS Data Store. Right-click ArcGIS Data Store and select Start.

Reinstall and import the data store backup

  1. Uninstall ArcGIS Data Store. Refer to ArcGIS Enterprise: Uninstall with the user interface for instructions.
  2. Navigate to the following folder location on the machine:
C:\Program Files\ArcGIS
  1. Delete the DataStore folder.
  2. Navigate to the C:\ drive of the machine, and delete the folder named arcgisdatastore.
  3. Reinstall ArcGIS Data Store. Refer to ArcGIS Enterprise: Install ArcGIS Data Store for instructions.
  4. Run the Windows Command Prompt as an administrator.
  5. Navigate to the ArcGIS Data Store utilities folder using the following command:
cd <ArcGIS Data Store installation directory>\DataStore\tools
  1. In the Command Prompt window, run the restoredatastore command utility to restore the data store backup data. Refer to Portal for ArcGIS: restoredatastore for more information.
  2. When prompted with Do you wish to continue (Yes or No)?, type Yes, and press Enter.

Article ID: 000033207

Software:
  • ArcGIS Data Store
  • Portal for ArcGIS
  • ArcGIS Enterprise 11 1
  • ArcGIS Enterprise 11 3
  • ArcGIS Enterprise 11 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options