KB-1898 Recovery.sh script fails to execute due to "Unable to connect to zookeeper server within timeout" error

Symptoms

The recovery script, recovery.sh, located in <APPIAN_HOME>/services/bin/ fails to execute with the following error printed on console: 

Exception in thread "main" org.I0Itec.zkclient.exception.ZKTimeoutException: Unable to connect to zookeeper server within timeout : 30000

Cause

The script fails to execute because Zookeeper did not respond within the timeout threshold. 

Action

Check if Zookeeper is running.

  • If yes, check zookeeper.logs located in <APPAIN_HOME>/logs/service-manager/zookeeper to find why it is not responding to the script. 
  • If no, start Service Manager by running: <APPIAN_HOME>/services/bin/start.sh|bat -p <password> -s manager. Rerun the recovery script using the recovery script documentation.

Affected Versions

This article applies to Appian 17.3 and later. 

Last Reviewed: March 2019

Related
Recommended