Engine start-up fails after running the start.sh|bat script. Although port 2181 is free
While attempting to start the ZooKeeper server using the start.bat command with the -p <password> -s all,
2024-11-14 15:51:17,675 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: C:\appian243\appian\services\conf\zookeeper.properties...2024-11-14 15:51:18,707 [myid:0] - INFO [main:o.a.z.s.NIOServerCnxnFactory@660] - binding to port 0.0.0.0/0.0.0.0:21812024-11-14 15:51:18,711 [myid:0] - ERROR [main:o.a.z.s.ZooKeeperServerMain@91] - Unexpected exception, exiting abnormallyjava.net.BindException: Address already in use: bind at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:555) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:89) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:81) at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:662) at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:160) at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:113) at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:68) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:141) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:91)2024-11-14 15:51:18,713 [myid:0] - INFO [main:o.a.z.a.ZKAuditProvider@42] - ZooKeeper audit is disabled.2024-11-14 15:51:18,717 [myid:0] - ERROR [main:o.a.z.u.ServiceUtils@48] - Exiting JVM with code 1
Discussion posts and replies are publicly visible
It seems the ZooKeeper instance may not have shut down properly, or another process might be using the port. Please check if there's an active ZooKeeper process running and, if possible, shut it down. If necessary, you can kill the process[not recommended use it if no other option is working ]and try restarting ZooKeeper.