# Troubleshooting

## `401: no API key`

Run `runcompute login`, or set `RUNCOMPUTE_API_KEY`. Check with
`runcompute whoami`.

## `422: no compute matches these constraints`

No machine meets `min_vram`, `gpu`, `max_price_hr` and `allow_spot` together.
Run `runcompute quote` with fewer constraints to see what exists.

## Job ends as `failed` with "No compute fits the remaining budget"

After a preemption, every remaining machine's estimate was higher than the
budget left. Submit again with a higher budget, or a shorter `checkpoint_every`
so less work is redone.

## Job ends as `stopped`

Spend reached the budget. Checkpoints are kept. Submit again with a higher
budget; if your code resumes from `/outputs/checkpoints`, it continues where it
stopped.

## Progress restarts from zero after a preemption

Your code is not loading checkpoints at start. See
[training and fine-tuning](/docs/guides/training/).

## `runcompute run` says job files need Python 3.11+

Use Python 3.11 or newer, or call `Client.run()` from Python 3.10.
