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.

SymptomLikely boundaryNext action
yak is missing or shows an unexpected releaseLocal installationRe-run the installer for the site’s pinned release and check yak --version
yak init cannot finish or a command says credentials are missing/invalidAuthenticationRe-run yak init; finish the browser callback and confirm the account has Preview access
The CLI cannot reach Yak or Python raises ConnectionErrorClient transportVerify local network/client settings; avoid blind resubmission if the previous response may have been lost
The command reports an Image build or preparation errorImage registration/buildRead the first failing build output; verify the base image, package, build command or Dockerfile instruction against Images
An Invocation fails and result() raises InvocationExecutionErrorTask executionInspect user logs and exception details; reproduce the Python path locally where possible
InvocationCancelledError or InvocationTimedOutErrorInvocation lifecycleCheck caller cancellation and execution deadline; see Cancellation
The Task never starts with a mount/credential diagnosticStorage setupVerify the named Secret and Environment, bucket/prefix, mount mode and non-overlapping paths
Volume lookup/file operations failVolume lifecycle or pathVerify the name, Environment, file path and whether the file is staged or already published
The code receives ENOSPC under /scratchEphemeral capacityReduce intermediate data or request a larger supported nominal size; preserve results elsewhere before return
yak deploy reports a candidate/deployment errorLive App preparationCheck App entrypoint, endpoints, Image and App-level named Secrets; DeploymentError carries the server-reported failure

Check the run in order#

  1. Confirm the installed release with yak --version and the target Environment/Workspace.
  2. Run yak init again if authentication is expired, missing or tied to a different account.
  3. Check whether the command failed before an Invocation was accepted. If it did, inspect CLI and Image preparation output.
  4. If an Invocation exists, call await invocation.status() or await invocation.result() and inspect its logs. Do not classify setup failures as Python exceptions.
  5. 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 need publish().
  6. 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.