KB-1694 Engine start up fails with Zookeeper "Address already in use" error


Engine start-up fails after running the start.sh|bat script. Although port 2181 is free, the following error is found in the zookeeper.log located in <APPIAN_HOME>/logs/service-manager/zookeeper/:

2018-08-20 04:46:51,819 [myid:] - ERROR [main:ZooKeeperServerMain@66] - Unexpected exception, exiting abnormally
java.net.BindException: Address already in use

After running the start script located in the <APPIAN_HOME>/services/bin directory, the following error is observed in the command line prompt:

waiting for process QuorumPeerMain
waiting for process QuorumPeerMain
process QuorumPeerMain not running after 10000 seconds
Unable to start service QuorumPeerMain
java.util.concurrent.TimeoutException: Process QuorumPeerMain did not launch within 10000 ms


This error occurs when any of the zookeeper ports (2181, 2888, and 3888) are either blocked or occupied by an orphan process. 


Check the port availability with Administrator privileges. 

Affected Versions

This article applies to Appian 17.3 and later.

Last Reviewed: September 2018