> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensor9.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

Common issues and how to resolve them.

For a service-adapter issue, coordinate with your software vendor using [Getting Help](https://docs.tensor9.com/byoc/support/getting-help.md). Preserve the original request identifiers and permitted target-service observations. You do not need to prove whether the adapter or target service is at fault before asking for help, and an investigation does not authorize live changes without your approval. [How Support Works](https://docs.tensor9.com/byoc/support/overview.md) describes the vendor, customer and Tensor9 responsibilities.

## General Issues

These apply regardless of environment.

### Terraform Apply Fails

**Common causes:**

* **Permission denied** - Verify your cloud credentials have the required permissions (see [Prerequisites](https://docs.tensor9.com/byoc/customer/getting-started/prerequisites.md))
* **Resource quota exceeded** - Check your cloud account's service limits
* **State conflict** - If you re-run `terraform apply` after a partial failure, Terraform should pick up where it left off

### DNS Not Resolving

**Symptom:** Domain configured but not resolving.

**Check:**

```bash theme={null}
dig <your-domain>
nslookup <your-domain>
```

**Common causes:**

* **Propagation delay** - DNS changes can take up to 48 hours to propagate (usually much faster)
* **Incorrect DNS provider credentials** - Verify your Route 53 or Cloudflare credentials are correct
* **Zone delegation** - For custom domains, verify you've delegated to the correct nameservers

### Can't Reach the Application

**1. Check DNS**

Verify DNS is resolving: `dig <your-domain>`

**2. Check load balancer**

Check that the load balancer / ingress is healthy.

**3. Check TLS**

Verify TLS certificates are valid: `curl -v https://<your-domain>`

## Environment-Specific Issues

> [tab] Kubernetes
>
> ### Controller Pod Won't Start
>
> **Symptom:** Pod stuck in `Pending`, `CrashLoopBackOff`, or `ImagePullBackOff`.
>
> **Check pod status:**
>
> ```bash theme={null}
> kubectl describe pod -n <namespace> <pod-name>
> ```
>
> **Common causes:**
>
> | Status | Likely Cause | Fix |
> | - | - | - |
> | `Pending` | Insufficient CPU or memory on nodes | Scale up your cluster or free resources: `kubectl describe nodes` |
> | `CrashLoopBackOff` | Configuration error or missing dependency | Check logs: `kubectl logs -n <namespace> <pod-name>` |
> | `ImagePullBackOff` | Container registry access issue | Verify your cluster can pull images from the internet |
>
> ### Setup Wizard Shows "Waiting for Controller"
>
> The controller hasn't connected to our systems yet. This usually resolves in 2-5 minutes.
>
> **If it persists:**
>
> **1. Check pod**
>
> Verify the pod is running: `kubectl get pods -n <namespace>`
>
> **2. Check logs**
>
> Check logs for connection errors: `kubectl logs -n <namespace> <pod-name>`
>
> **3. Check network**
>
> Verify outbound internet access from the pod's namespace.
>
> **4. Check policies**
>
> Check if network policies are blocking egress on port 443.
>
> ### Application Not Responding
>
> **1. Controller status**
>
> Check controller status: `kubectl get pods -n <namespace>`
>
> **2. App pod status**
>
> Check application pod status: `kubectl get pods -n <namespace> -l app=<app-label>`
>
> **3. App logs**
>
> View application logs: `kubectl logs -n <namespace> <app-pod-name>`
>
> **4. Events**
>
> Check events: `kubectl get events -n <namespace> --sort-by='.lastTimestamp'`
>
> **5. Contact us**
>
> Contact us with the error details.
>
> ### High Resource Usage
>
> ```bash theme={null}
> kubectl top pods -n <namespace>
> kubectl top nodes
> ```
>
> If the controller or application is consuming more resources than expected, contact us. It may indicate a configuration issue or a need to scale.

> [tab] AWS
>
> ### Controller Instance Won't Start
>
> **Symptom:** EC2 instance in `stopped` or `terminated` state.
>
> **Check:**
>
> ```bash theme={null}
> aws ec2 describe-instance-status --instance-ids <instance-id>
> ```
>
> **Common causes:**
>
> * **Insufficient instance quota** - Request a limit increase in your AWS account
> * **IAM role issues** - Verify the IAM role from the infrastructure template was created successfully
> * **Subnet issues** - Ensure the private subnet has a route to a NAT gateway for outbound access
>
> ### Setup Wizard Shows "Waiting for Controller"
>
> The controller hasn't connected to our systems yet. This usually resolves in 2-5 minutes.
>
> **If it persists:**
>
> **1. Check instance**
>
> Verify the instance is running: `aws ec2 describe-instances --instance-ids <instance-id>`
>
> **2. Check logs**
>
> Check the system log: AWS console - EC2 - Instances - your instance - Monitor and troubleshoot - Get system log.
>
> **3. Check security group**
>
> Verify the security group allows outbound HTTPS (port 443).
>
> **4. Check routing**
>
> Verify the private subnet routes through a NAT gateway.
>
> ### Application Not Responding
>
> **1. Check instance**
>
> Verify the controller instance is running (see above).
>
> **2. Check Customer Portal**
>
> Check your Customer Portal for deployment errors.
>
> **3. Check logs**
>
> View the controller system log via the AWS console.
>
> **4. Contact us**
>
> Contact us with the error details.
>
> ### High Resource Usage
>
> Check CloudWatch metrics for the controller instance:
>
> ```bash theme={null}
> aws cloudwatch get-metric-statistics \
>   --namespace AWS/EC2 \
>   --metric-name CPUUtilization \
>   --dimensions Name=InstanceId,Value=<instance-id> \
>   --start-time $(date -u -v-1H +%Y-%m-%dT%H:%M:%S) \
>   --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \
>   --period 300 \
>   --statistics Average
> ```
>
> If the controller is consuming more resources than expected, contact us. It may indicate a configuration issue or a need to resize the instance.

## Getting Help

If you can't resolve an issue:

**1. Gather information**

* Controller logs
* Controller status
* Any error messages from the setup wizard or Customer Portal
* When the issue started

**2. Contact us**

Send us the above information. The more detail you provide, the faster we can help.

**3. Enable troubleshooting permissions**

If we need to investigate, enable the appropriate [permission tier](https://docs.tensor9.com/byoc/customer/security/permissions.md). You can revoke them as soon as the investigation is complete.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.