You are currently reviewing an older revision of this page.

KB-1890 Data server does not start with "Could not establish WebSocket connection with <HOST_AND_POST>"

Symptoms

The Appian data server will fail to start with the message "killed" in the stdout command line window:

{"level":"INFO","time":"YYYY-MM-DDTHH-mm-ssZ","logger":"watchdog","caller":"Watchdog.java:1063","thread":"main","msg":"Starting Data Server in the background"}
{"level":"INFO","time":"YYYY-MM-DDTHH-mm-ssZ","logger":"watchdog","caller":"JvmStarter.java:41","thread":"main","msg":"Starting JVM process: Config{class=com.appian.data.server.Watchdog, hostAndPort=<HOST_AND_PORT>, args=[-f]}"}
Killed

When reviewing the watchdog.log file, located in <APPIAN_HOME>/logs/data-server, the following message will be seen:

Failed to start HS gateway (port=5401)"}
Could not establish WebSocket connection with localhost:5401. The target Go process exited abnormally. Check for earlier errors (e.g. Go startup errors).
...
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /0.0.0.0:5401
...
Failed to start RTS-0 gateway (port=5404)"}
Could not establish WebSocket connection with localhost:5404. The target Go process exited abnormally. Check for earlier errors (e.g. Go startup errors).
...
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /0.0.0.0:5404

Cause

This message is seen when the user attempting to start the data server does not have the required privileges to access the ports and services that the data server uses to start and run.

Action

Ensure that the user intended to start the data server has the necessary privileges to access the ports and services required to start and run it as per the documentation.

Affected Versions

This article applies to Appian 18.2 and later.

Last Reviewed: June 2019