---
title: Troubleshooting
slug: hosty/troubleshooting
createdAt: 2026-11-08T11:27:49.007Z
---

Common problems that admins run into, and how to fix them. For the commands to look into a cluster, see [Basic commands](https://wiki.systemseed.com/hosty/basic-commands).

## Hosty CLI is out of date

```text
Hosty 1.4.4 is out of date: version 1.5.0 is released. Update Hosty to run its commands.
```

Hosty CLI refuses to run when a newer minor or major release is out. Update the image `systemseed/hosty` in the CI of the project, or pull the latest code of Hosty and run `make build` for your local container.

If you have to fix production urgently before the update, set the environment variable `HOSTY_SKIP_VERSION_CHECK=1` for that command. A newer patch release only shows a notice.

## The MFA session has expired

```text
An error occurred (ExpiredTokenException) when calling the DescribeCluster operation: The security token included in the request is expired
```

The session of `hosty auth` lasts 12 hours. Run `hosty auth` again and enter a new code from your authenticator app.

## kubectl has no cluster

```text
couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
```

kubectl has no cluster in its config. Add it:

```bash
aws eks update-kubeconfig --name <cluster> --region <region>
```

## The cluster doesn't answer

```text
dial tcp <address>:443: i/o timeout
```

The API of the cluster is reachable only through the VPN. Connect to the VPN of the cluster and try again. The same applies to `tofu plan` and `tofu apply`, which manage resources inside the clusters: without the VPN, they fail with a similar timeout or `Kubernetes cluster unreachable`.

## An environment is deployed but doesn't open

The AWS Load Balancer Controller adds environments to the load balancers. It builds each load balancer from all the ingresses that share it, so one broken ingress stops the updates for every environment on that load balancer, while the sites already on it keep working. When it keeps failing, the alarm "Load balancer controller fails to update load balancers" fires.

Look for errors in the logs of the controller, and in the events of the ingresses of the environment:

```bash
kubectl logs -n kube-system deployment/aws-load-balancer-controller --since=1h | grep -i error
kubectl describe ingress -n <namespace>
```

Common errors:

- **No certificate for a domain.** An ingress has a domain without an issued certificate. Validate the certificate of the domains of the project (see [Adding a new project](https://wiki.systemseed.com/hosty/7xVm-adding-a-new-project)), or remove the domain from the environment.
- **`TooManyUniqueTargetGroupsPerLoadBalancer`.** A load balancer can have at most 100 target groups, and every environment adds at least one. It usually happens on the development load balancer when there are too many development environments. Delete the ones nobody uses, then deploy the environment again.

## Pods are stuck terminating

When you delete a cluster or a project, `tofu apply` may fail with:

```text
Error: context deadline exceeded
```

after a line like:

```text
module.cluster_<cluster>.kubernetes_namespace_v1.production["<project>"]: Still destroying... [id=<project>-production, 4m50s elapsed]
```

A pod is probably stuck terminating, which keeps its namespace from being deleted. Check:

```bash
kubectl get pods -n <namespace>
```

```text
NAME                                      READY   STATUS        RESTARTS   AGE
shop-production-drupal-8454559f74-tfk5d   0/2     Terminating   0          39h
```

Remove the stuck pods by force, then run `tofu apply` again:

```bash
kubectl delete pods --all --grace-period=0 --force -n <namespace>
```

## The database accounts job fails

On MySQL clusters, `tofu apply` runs a job in the `hosty-system` namespace that creates the database accounts of each project. If it fails, see why:

```bash
kubectl get pods -n hosty-system
kubectl logs -n hosty-system <pod>
```

The job only creates accounts and sets their passwords, so it's safe to run again with `tofu apply` once the cause is fixed.

## A build stops on the version of a Wodby image

Since 1.5.2, Hosty CLI checks that the release of a Wodby image it found has the latest version of its software. When Wodby publishes a newer version under tags that Hosty doesn't recognise, the build stops. Until Hosty is fixed, the developers can pin a release with `tag` of the container in `hosty.yaml`, which skips the check. See [Software updates](https://wiki.systemseed.com/hosty/software-updates).
