UiPath Documentation
automation-suite
2022.10
false
Automation Suite installation guide

Step 1: Removing old Identity cache keys

To remove the old Identity cache keys, take the following steps:

  1. To retrieve the Redis password, run the following command:

    kubectl --kubeconfig kubeconfig get secrets/redb-redis-cluster-db -n uipath --template '{{ .data.password }}'
    kubectl --kubeconfig kubeconfig get secrets/redb-redis-cluster-db -n uipath --template '{{ .data.password }}'
    
  2. To retrieve the Redis port, run the following command:

    kubectl --kubeconfig kubeconfig get secrets/redb-redis-cluster-db -n uipath --template '{{ .data.port }}'
    kubectl --kubeconfig kubeconfig get secrets/redb-redis-cluster-db -n uipath --template '{{ .data.port }}'
    
  3. To access the Redis node, run the following commnad:

    kubectl --kubeconfig kubeconfig exec -i -t -n redis-system redis-master-0 -c redis "--" sh -c "clear; (bash || ash || sh)"
    kubectl --kubeconfig kubeconfig exec -i -t -n redis-system redis-master-0 -c redis "--" sh -c "clear; (bash || ash || sh)"
    
  4. To delete the old keys, use the retrieved password and port and run the following command:

    redis-cli -p <Port number> -a <Password> --scan --pattern is:* | while read key; do redis-cli -p <Port number> -a <Password> del "$key"; done
    redis-cli -p <Port number> -a <Password> --scan --pattern is:* | while read key; do redis-cli -p <Port number> -a <Password> del "$key"; done
    
  5. To end the session, run the exit command.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated