Knowledge Search


[CSO] How to find and clear stale entries in Arango DB

  [KB34631] Show Article Properties


This article explains how to find and clear stale entries in Arango DB.


  • Symptoms 1: I am unable to delete the site, and checking the tssm logs and kibana logs indicate that the error is received from the topology-service (note: the topology service data is saved in Arango DB).

  • Symptoms 2: When trying to list departments under Admin Portal > Resources > Shared Object > Departments, I receive the 500 Internal Error and the department is not listed (the list department request is also served from Arango DB).



It is seen that stale/null entries in Arango DB may result in the above symptoms.



To find and clear stale or null entries in Arango DB, perform the following steps:

  1. Download the attached script to any central/regional infra VM:
  2. Copy the above script to any of the central/regional infra VMs in the /tmp location. Execute and run the script as follows:

chmod +x 
  1. When prompted, supply the Arango DB password for the system. (To obtain the Arango DB password, log in to the installer VM, navigate to the CSO installer directory, and type the command ./ deploy_manager/utils/ 

  2. The script will find any null entries and display the output on the screen:

  1. Edit the above script by using the vi editor and set const REMOVE_NULL_REFS = true to remove the null references.
  2. Run the script again to remove the null references by using the ./ command.

  3. The script will find and remove the null entries and display the output on the screen.

Note: No downtime is required to run this script.


Related Links: