You are currently reviewing an older revision of this page.

[Draft] KB-XXXX Data server start failed due to WebSocket connection failure

Symptoms

The data server fails to start with the following errors:

ERROR com.appian.data.server.Watchdog - Shutting down with exit code 1... com.appian.data.server.UnrecoverableError: Established WebSocket connection but failed to receive heartbeat from localhost:5400
.
.
.
ERROR com.appian.data.server.Watchdog - Start up failed. Shutting down... Cause:
java.lang.IllegalStateException: Unable to kill data-server component using d:\appian\data-server\bin\..\lib\scripts\kill-component.bat
at com.appian.data.server.Watchdog.killComponent(Watchdog.java:549)
at com.appian.data.server.Watchdog.heal(Watchdog.java:263)
at com.appian.data.server.Watchdog.healOnStart(Watchdog.java:208)
at com.appian.data.server.Watchdog.startup(Watchdog.java:135)
at com.appian.data.server.Watchdog.main(Watchdog.java:687)
Caused by: java.util.concurrent.TimeoutException: Timed out waiting for java.lang.ProcessImpl@e3cee7b to finish, timeout: 5000 milliseconds, executed command [d:\appian\data-server\bin\..\lib\scripts\kill-component.bat, hs]
at org.zeroturnaround.exec.ProcessExecutor.newTimeoutException(ProcessExecutor.java:1079)
at org.zeroturnaround.exec.ProcessExecutor.waitFor(ProcessExecutor.java:1042)
at org.zeroturnaround.exec.ProcessExecutor.execute(ProcessExecutor.java:860)
at com.appian.data.server.Watchdog.killComponent(Watchdog.java:547)

Cause

When the get-pids.bat|sh script takes longer than 5 seconds to return, watchdog times out and exits without attempting to start.

Action

Apply the latest hotfix to your Appian installation. 

Workaround

Rename get-pids.bat to get-pids.bat.bak. Then create an empty get-pids.bat file in the same directory APPIAN_HOME/data-server/lib/scripts.

Affected Versions

This article applies to Appian 18.1 and later.