---
name: codeengine-ts-app-connection-fail
title: Why does my app connection fail?
description: Your application connects to another service, such as a database. When your app runs, you notice that the connection ends unexpectedly, and you receive an error similar to the following example.
last-updated: 2024-01-17
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why does my app connection fail?
{: #ts-app-connection-fail}
{: troubleshoot}

Your application connects to another service, such as a database. When your app runs, you notice that the connection ends unexpectedly, and you receive an error similar to the following example.
{: tsSymptoms}

```txt
[IBM][CLI Driver] SQL30081N  A communication error has been detected. Communication protocol being used: "SSL". 
```
{: screen}


By default, your app times out after 5 minutes. If it does not receive any updates from the connection within this time, then your app ends the connection. For more information, see [Application defaults and limits](https://cloud.ibm.com/docs/codeengine?topic=codeengine-limits&format=markdown#limits_application).
{: tsCauses}

You can resolve this issue by changing the timeout value for your app. If your app requires a connection time that is longer than 10 minutes, configure your app to include a heartbeat connection to the other service, which keeps your connection active. 
{: tsResolve}

You can also run a Code Engine job and then return the output to your app. For more information about jobs, see [Working with jobs and job runs](https://cloud.ibm.com/docs/codeengine?topic=codeengine-job-plan&format=markdown).

For more information about troubleshooting app connection failures when you use a proxy, see [Why does my app connection fail when using a proxy](https://cloud.ibm.com/docs/codeengine?topic=codeengine-ts-app-connection-failwithproxy&format=markdown)?




## Updating your app timeout value from the console
{: #ts-app-timeout-console}

To update your app from the console,

1. Open the [Code Engine console](https://cloud.ibm.com/codeengine/overview){: external}.
2. Click the project that contains your app.
3. Click the application that you want to work with. This action opens the application page.
4. Click the **Configuration** tab. From the **Resources & scaling** tab, change the value in the **Request timeout (seconds)** field. The maximum value is 600 seconds (10 minutes). 
5. Click **Deploy** to save your change and deploy the app revision.

## Updating your app timeout value with the CLI
{: #ts-app-timeout-cli}

To update your app with the CLI, run the [**app update**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-update) command with the `--request-timeout` option set to the new timeout value. The maximum value is 600 seconds (10 minutes).


After your app is updated, Code Engine creates a revision of your app. When the app revision reaches a `Ready` state, all traffic is routed to this new instance.