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>'.
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
- 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.
- Open Windows File Explorer on the standby data store machine.
- Navigate and open the standby data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
- Right-click the pgsql folder and select Copy.
- Open Windows File Explorer on the primary data store machine.
- Navigate and open the primary data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
- Right-click inside the folder and select Paste.
- Restart the primary data store machine. Refer to Portal for ArcGIS: Change the status of a data store machine for information.
- On the Windows taskbar, search for and select Task Manager.
- In the Task Manager window, click on the Details tab.
- Ensure the Status of the postgres.exe process is Running.
Copy the pgsql folder from a different folder location or from a backup
- On the Windows taskbar, search for and select Task Manager.
- In the Task Manager window, click Services.
- Search for and select ArcGIS Data Store. Right-click ArcGIS Data Store and select Stop.
- Navigate to the location the pgsql folder is located. The folder is commonly located at:
C:\arcgisdportal
- Double-click the arcgisportal folder. Right-click on the pgsql folder and select Copy.
- Navigate to the data store machine’s arcgisdatastore folder. The folder is commonly located at:
C:\arcgisdatastore
- Right-click inside the arcgisdatastore folder and select Paste.
- On the Windows taskbar, search for and select Task Manager.
- In the Task Manager window, click Services.
- Search and select ArcGIS Data Store. Right-click ArcGIS Data Store and select Start.
Reinstall and import the data store backup
- Uninstall ArcGIS Data Store. Refer to ArcGIS Enterprise: Uninstall with the user interface for instructions.
- Navigate to the following folder location on the machine:
C:\Program Files\ArcGIS
- Delete the DataStore folder.
- Navigate to the C:\ drive of the machine, and delete the folder named arcgisdatastore.
- Reinstall ArcGIS Data Store. Refer to ArcGIS Enterprise: Install ArcGIS Data Store for instructions.
- Run the Windows Command Prompt as an administrator.
- Navigate to the ArcGIS Data Store utilities folder using the following command:
cd <ArcGIS Data Store installation directory>\DataStore\tools
- 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.
- When prompted with Do you wish to continue (Yes or No)?, type Yes, and press Enter.