Error Message
When the queue store configured for a relational ArcGIS Data Store encounters an issue, scheduled backups for the relational data store are not completed successfully. Attempting a manual backup fails and returns the following error:
Error:
Cannot invoke "com.esri.arcgis.datastore.model.rabbitmq.QueueStoreConfiguration.toString()" because "input" is null.
Cause
An empty or nearly empty queue store directory folder, containing only a single folder or file, prevents the relational ArcGIS Data Store component from functioning correctly during backups.
Solution or Workaround
Rebuild the queue store.
- Stop the ArcGIS Data Store service.
- In the Windows search bar, type services, and click the Services icon..
- In the Services window, navigate to the ArcGIS Data Store service and click Stop.
- Remove all files and folders from the rabbitmqdata folder found in:
C:\arcgisdatastore\rabbitmqdata
- Within the configuration directory folder, delete the following files:
C:\arcgisdatastore\etc\queuestore-config.json
C:\arcgisdatastore\etc\queuestore-config.json.history
- Within the configuration directory folder, open the arcgis-data-store-config.json file using Notepad and set the following:
"feature.queueStore": false
- In ArcGIS Server Admin Directory, navigate to data > items > nosqlDatabases > AGSDataStore_nosql_<data store name> and copy the Item Path parameter.
- Navigate to data > unregisterItem and paste the Item Path.
- Select Unregister Item. Once the screen is refreshed, the Item was successfully unregistered message is prompted.
- Start the ArcGIS Data Store Windows Service.
- In the Windows search bar, type services, and click the Services icon.
- In the Services window, navigate to the ArcGIS Data Store service and click Start.
- Open Windows Command Prompt as an administrator.
- Log in to the ArcGIS Data Store machine as an administrator.
- Click Start on the Windows taskbar or press the Windows key.
- Type cmd to search for Command Prompt.
- Right-click Command Prompt and click Run as administrator.
- In the Command Prompt window, run the following command for ArcGIS Data Store:
configuredatastore.bat https://<hosting server fqdn>:6443 <administrator_username> <password> C:\arcgisdatastore --stores queue
- Verify that the rabbitmqdata folder has new content and attempt to back up the relational data store.