Docs / Pods

Troubleshooting

Most pod problems fall into a handful of patterns. Start with the logs, then find your symptom below.

Read the logs first

Pod logs include image pull progress, platform events and your container's stdout and stderr.

$ apipods logs pod_8f2k1x9q --follow

Stuck in CREATED

  • No host has a free GPU of that type in the requested region. Remove regionId or pick a similar GPU from the GPU reference.
  • An env value references a secret that does not exist. The logs show secret HF_TOKEN not found.
  • A networkVolumeId pins the pod to one region. Check availability with apipods gpus list --region eu-nl-1.

Stuck in PROVISIONING

  • Large images take time to pull the first time on a host. Images over 20 GB can take several minutes. Prefer slimmer images or the official ones, which are cached.
  • image pull failed: unauthorized: the image is private. Add a registry credential.
  • manifest unknown: the tag does not exist or was built for ARM only. Build for linux/amd64.

Container exits right away

A pod's container runs as long as its main process. If the command exits, the pod goes to EXITED. Common causes:

  • The image has no long-running CMD, for example a base CUDA image. Set startCommand to sleep infinity or start a server.
  • lastExitCode: 137: the process was killed for using too much RAM. Choose a GPU type with more system memory or lower your data loader workers.
  • lastExitCode: 1 or 2: your program crashed; the stack trace is in the logs.

no_capacity when starting a stopped pod

The volume disk ties the pod to its host, and that host's GPUs are now used by someone else. Retry in a while, or copy your data off (the volume is still billed and intact) and recreate the pod. To avoid this in future, keep data on a network volume.

Ports and SSH

SymptomFix
HTTP port returns 502Your server is not listening yet or listens on 127.0.0.1. Bind to 0.0.0.0.
HTTP request fails after about 100 sThe proxy closes idle requests. Stream the response or use a TCP port.
Permission denied (publickey)Your key was added after the pod started. Restart the pod or append it to /root/.ssh/authorized_keys.
scp fails through the gatewayThe gateway is shell-only. Expose 22/tcp and use full SSH.
Connection refused on the TCP portThe image does not run sshd, or the mapping changed after a restart. Re-read ports from the API.

GPU problems

  • CUDA error: no kernel image is available: your PyTorch build does not support the GPU architecture. Blackwell GPUs such as the B300 need CUDA 12.8 or newer, which apipods/pytorch:2.9.0-py3.12-cuda12.8.1 includes.
  • CUDA out of memory: lower the batch size, enable gradient checkpointing, or move to a GPU with more VRAM.
  • nvidia-smi shows fewer GPUs than expected: check APIPODS_GPU_COUNT and that you did not override CUDA_VISIBLE_DEVICES.

Suspect faulty hardware? Note the pod ID and the output of nvidia-smi -q and email support@apipods.com. We credit time lost to hardware faults. The number of GPUs you can run at once depends on your plan (Starter 10, Team 50, Enterprise custom concurrent GPUs); going over returns gpu_quota_exceeded.