Start by locating the boundary where the command stopped. A local CLI/configuration problem happens before remote Task code. An image or mount setup failure prevents the callable from starting. A Task exception occurs after the Invocation has begun running.
| Symptom | Likely boundary | Next action |
|---|---|---|
yak is missing or shows an unexpected release | Local installation | Re-run the installer for the site’s pinned release and check yak --version |
yak init cannot finish or a command says credentials are missing/invalid | Authentication | Re-run yak init; finish the browser callback and confirm the account has Preview access |
The CLI cannot reach Yak or Python raises ConnectionError | Client transport | Verify local network/client settings; avoid blind resubmission if the previous response may have been lost |
| The command reports an Image build or preparation error | Image registration/build | Read the first failing build output; verify the base image, package, build command or Dockerfile instruction against Images |
An Invocation fails and result() raises InvocationExecutionError | Task execution | Inspect user logs and exception details; reproduce the Python path locally where possible |
InvocationCancelledError or InvocationTimedOutError | Invocation lifecycle | Check caller cancellation and execution deadline; see Cancellation |
| The Task never starts with a mount/credential diagnostic | Storage setup | Verify the named Secret and Environment, bucket/prefix, mount mode and non-overlapping paths |
| Volume lookup/file operations fail | Volume lifecycle or path | Verify the name, Environment, file path and whether the file is staged or already published |
The code receives ENOSPC under /scratch | Ephemeral capacity | Reduce intermediate data or request a larger supported nominal size; preserve results elsewhere before return |
yak deploy reports a candidate/deployment error | Live App preparation | Check App entrypoint, endpoints, Image and App-level named Secrets; DeploymentError carries the server-reported failure |
Check the run in order#
- Confirm the installed release with
yak --versionand the target Environment/Workspace. - Run
yak initagain if authentication is expired, missing or tied to a different account. - Check whether the command failed before an Invocation was accepted. If it did, inspect CLI and Image preparation output.
- If an Invocation exists, call
await invocation.status()orawait invocation.result()and inspect its logs. Do not classify setup failures as Python exceptions. - For storage, verify named Secret scope and mount declarations before changing Task code. Read-only mounts reject writes; Ephemeral Disk contents vanish at terminal state;
Volume.open()changes needpublish(). - After a connection interruption, inspect known Invocation state before submitting duplicate work.
Keep secrets out of logs, screenshots and copied exception output. See Authentication for login and scope selection, and Logs, Results & Failures for the exception boundaries.