> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/tunnel-terminate-request/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Received tunnel terminate request from server

```text
ERRO[12:00:00] Received tunnel terminate request from server  reason=deleted
FATA[12:00:00] Tunnel was deleted

```

tuna CLI shows this error while the tunnel is running. After it, the client exits and doesn't reconnect on its own. Tuna Desktop stops the tunnel in this case and shows the reason.

## Cause

The server closed the tunnel and sent the client the reason in the `reason` field:

| `reason`        | Second line                                                    | What happened                                                                                                                                     |
| --------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `deleted`       | `Tunnel was deleted`                                           | The tunnel was deleted in the [dashboard](https://my.tuna.am/tunnels?lang=en), via the API, or together with an app                               |
| `suspended`     | `Tunnel was suspended`                                         | The tunnel was suspended                                                                                                                          |
| `session_limit` | `Session time limit reached`                                   | The session time allowed by your plan ran out. A minute before that, the client warns: `Your session will expire in 1m0s. Please save your work!` |
| `reconnect`     | `Tunnel terminated by server`                                  | The same tunnel connected again over another connection, and the old one was closed                                                               |
| `session_ended` | ``Login session was ended, run `tuna login` to sign in again`` | The login session was ended, see [session expired or revoked](https://tuna.am/en/docs/troubleshooting/errors/session-expired-or-revoked.md)       |

With `session_limit`, the line is logged at `WARN` rather than `ERRO`. With `session_ended`, the client first tries to continue with this device's new session: if you've already signed in again, the tunnel restarts without an error.

## What to do

* `deleted` — if the tunnel was deleted by mistake, start it again. If it runs as a [service](https://tuna.am/en/docs/tunnels/guides/service.md), the service restarts it on its own.
* `session_limit` — start the tunnel again. The session length limit depends on your [plan](https://tuna.am/#pricing).
* `reconnect` — make sure this tunnel isn't running twice, for example as a service and by hand. If there's only one client and the error keeps coming back, update it by following the [instructions](https://tuna.am/en/docs/guides/update.md).
* `session_ended` — sign in again with `tuna login`.
