> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/set-up-the-adaptive-execution-layer-ael/troubleshooting-ael-cp/driver-timeout-and-deployment-errors-with-ael-on-secured-clusters-ael-troubleshooting/web-socket-deployment-exception-ael-secured-cluster-errors-ael-troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.pentaho.com/~gitbook/mcp).

# Web socket deployment exception

You might execute a transformation and it completes immediately with the following error:

```
2020/01/22 14:40:01 - Spoon - Started the transformation execution.
2020/01/22 14:40:02 - Spoon - The transformation has finished!!
2020/01/22 14:40:02 - Spoon - ERROR (version 9.0.0.0-387, build 9.0.0.0-387 from 2020-01-09 11.20.10 by buildguy) : Error starting step threads
2020/01/22 14:40:02 - Spoon - ERROR (version 9.0.0.0-387, build 9.0.0.0-387 from 2020-01-09 11.20.10 by buildguy) : org.pentaho.di.core.exception.KettleException: 
2020/01/22 14:40:02 - Spoon - javax.websocket.DeploymentException: Connection failed.
2020/01/22 14:40:02 - Spoon - Connection failed.

```

This issue occurs because you do not have access to the AEL daemon, it is not running, or the **Spark host URL** setting is not correct in your PDI run configuration.

Perform the following workflow to resolve this issue.

1. Verify that you can access the node running the AEL daemon.

   If you cannot access the node, contact your cluster administrator for further instructions.
2. If you can access the node, verify that the AEL daemon is active (running) by using the **status** option while executing the `daemon` command from the `data-integration/adaptive-execution` directory, as shown in the following example:

   ```
   ./daemon.sh status
   ```
3. If the daemon is not active, enter the start option of the daemon command, as shown in the following example:

   ```
   ./daemon.sh start
   ```
4. If you can access the node and the daemon is active, but the error still occurs, verify that the port number specified in **Spark host URL** option of your run configuration for the Spark engine matches the **ael.unencrypted.port** property in the `application.properties` file.

   Also, verify that the hostname or IP address in the URL matches the **hostname** property in the `application.properties` file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/set-up-the-adaptive-execution-layer-ael/troubleshooting-ael-cp/driver-timeout-and-deployment-errors-with-ael-on-secured-clusters-ael-troubleshooting/web-socket-deployment-exception-ael-secured-cluster-errors-ael-troubleshooting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
