Developers

Troubleshooting

The most common errors and how to fix them.

Updated:

docker login returns 401

The token lacks the pull scope, has expired or was revoked. Check it in the Account, under Server tokens, and create a new one if needed. Also make sure you pass it whole, starting with piap_st_, with no spaces or line breaks.

Pulls return 429

You reached your account's daily download cap (it resets every day at 00:00 UTC). For large fleets, pull the image once and distribute it from an internal mirror, or pin the version so nodes do not pull it again on every restart.

The container exits with code 3

The token was rejected: it is invalid, expired, revoked, missing the computers scope, or the computer was removed in My computers. Restarting does not fix it: fix the token. If you removed the computer on purpose and want it back, delete the volume so it joins as a new computer.

Connected but not receiving requests

Being connected does not guarantee requests all the time. What matters is which models the server can run, current demand and your settings: schedule window, a very narrow PIAP_MODELS, PIAP_DAILY_TOKENS reached, or PIAP_YIELD=on with a busy server. Check /status and the piap_node_sharing metric.

GPU not detected

If /status shows accel as cpu, the container has no GPU: check that you use --gpus all (or the nvidia.com/gpu resource on Kubernetes), that the NVIDIA runtime is configured and that the image is the cuda variant. On the host, check that nvidia-smi works and that the driver is 531 or later.

bash
kubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'

OOMKilled

The model and the process went over the container memory limit. Lower PIAP_MAX_MEMORY_PERCENT (or policy.maxMemoryPercent) or raise the memory limit. With PIAP_MAX_CONCURRENT above 1, leave more headroom.

bash
kubectl -n piap describe pod piap-node-0 | grep -A3 "Last State"
docker inspect piap-node --format '{{.State.OOMKilled}} {{.State.ExitCode}}'

Disk full

PIAP_DISK_GB must be smaller than the /data volume, with room for the identity and temporary download files: for example 40 GB of models on a 60 GB volume. For larger models, raise both.

bash
docker system df -v | grep piap-data

Clock skew

If the server clock is far ahead or behind, sessions are rejected and the computer does not connect. Turn on NTP synchronization:

bash
timedatectl status
chronyc tracking

Egress proxy or firewall

If the connection fails or drops, check that the server reaches the three piap hosts on 443, that the firewall does not block them and that the proxy, if any, does not inspect TLS. Set HTTPS_PROXY in the container when egress goes through a proxy.

bash
curl -sI https://api.piap.io
curl -sI https://models.piap.io
curl -sI https://registry.piap.io/v2/