Manual / Guides

Troubleshooting

Start with pipewright doctor --env <env>: it checks the live environment, read-only, and each failure says whether you or the platform team can fix it. The problems below were all met for real while building and testing Pipewright; most messages name the fix themselves. For coding agents, see also Things to watch out for.

Why a run failed (1.4.4)

With monitoring.failure_records on (or the environment’s observability.failure_records), every failed run carries its cause and its owner in run.failed, its runs/failed/ marker and the alert email. Pipewright Assist reads the same record. The owner comes from these fixed rules, in this order:

What went wrongOwnerWhere the cause comes from
Your data broke its contract (a check your step attached)teamthe step’s failure record
A bug in your step’s codeteamthe failure record: file, line, the code line
The step’s identity was refused a permissionplatformthe failure record: Pipewright’s own message
A service perimeter refused a callplatformthe record, or Google’s error line
The step ran out of memoryteamGoogle’s error line; on Kubeflow the pod’s status (OOMKilled)
The region cannot provide the machine you asked forteamGoogle’s error line
A quota was reachedplatformGoogle’s error line
The step’s image is missingplatformGoogle’s error line; on Kubeflow the pod’s status
Pipewright refused the step because of the use case’s settings or data (a champion whose model is gone, a registration the launcher refused)teamPipewright’s own message, which says what to change
Pipewright refused the step because the environment is missing something (no launcher address, no ID token for the runner)platformPipewright’s own message, which says what is missing
Anything elseunclearnothing names the cause: read the step’s logs

The record never holds data values: a message Pipewright did not write is not kept, and the code line is kept without its comment. pipewright doctor says when a use case’s causes are not recorded.

Setup and credentials

SymptomCauseFix
SSL or certificate errors from Python, gRPC, pip inside Docker, or gcloudA TLS-inspecting proxy or antivirus re-signs trafficSet REQUESTS_CA_BUNDLE, SSL_CERT_FILE, GRPC_DEFAULT_SSL_ROOTS_FILE_PATH, PIPEWRIGHT_BUILD_CA_BUNDLE and CLOUDSDK_CORE_CUSTOM_CA_CERTS_FILE to your CA bundle (Install)
... Pipewright reads .yaml files; rename itA .yml fileRename it to .yaml
A call to the launcher answers 404A private launcher accepts traffic only from inside the networkUse pipewright run, which publishes to the run requests topic
A key is refused, or a whole section ignoredA typo, or a key in the wrong filepipewright explain <key> suggests close matches; the editor schemas underline it (pipewright schemas)
Schedules fail to syncThe Cloud Scheduler API is not enabledThe platform enables it; in CI set PIPEWRIGHT_SCHEDULES=off meanwhile

Releases

SymptomCauseFix
The release ID ends -dirty-<time>Uncommitted changes in the use caseCommit, then release; dirty releases are never mistaken for a commit
tests.command failed (exit N): nothing was built or releasedtests.on_release is on and a test failedFix the test
A base image or package index is refusedpolicies.imagesUse an approved base image and index; direct references (git+, URLs) are refused
Compile errors after upgrading kfpPipewright compiles with the kfp versions it was tested withKeep kfp in the range Pipewright pins
another release of ... moved the pointer while this one ran; nothing went liveTwo releases at onceRe-run; nothing was half-done

Data and features

SymptomCauseFix
A landing trigger is refused with features_fromThe run’s source must be a bq:// entity tableSet triggers.landing: null; start runs with schedules or the API
A feature table is refusedIt is not in the tenant’s feature datasetsAsk the platform to list the dataset (tenants.<t>.features.datasets)
Training looks too good to be trueLeakage: a view of the "latest" features, rows updated in place, or a timestamp of the period describedRead feature tables point in time (Mistakes to avoid)
The feature check fails although nothing changedA table several jobs write is compared with the last job’s SQLList every job’s SQL in sql_files (1.4.2)
A new feature view serves nothingA view serves nothing until its first syncWait for, or trigger, the first sync; doctor reports it
A changed feature definition keeps serving old values from Feature StoreA sync keeps a row unless its feature_timestamp is newerResync with rows stamped newer than the last sync

Approvals and integrity

SymptomCauseFix
model approve refuses: the working copy’s gates or approvals differApprovals are judged by the release that trained the versionApprove from the release’s commit, or release the change and retrain
A default version is refused by deploy-model or promoteIt became the default outside Pipewright (no model.approved)pipewright model approve it, or policies.integrity.mode: warn with until while you do
Deploy refuses: a model file changedA file was rewritten after approvalpipewright model restore-files ... --confirm; lineage says who wrote it
A note that the audit log could not be readThe deploying identity lacks roles/logging.viewerGrant it; the check is a note, never a refusal, until then
A first version became the default unapprovedAn old register.pyBring components/register.py up to date from the churn example (validate warns)

Serving and online stores

SymptomCauseFix
tenant ... is not enabled for online servingThe manifest’s online_serving is false for the tenantAsk the platform
An endpoint cannot reach Cloud SQL or your own store; lookups time outAn Agent Platform endpoint cannot reach into your networkUse the lookup gateway (lookup.mode: gateway, Serving)
Every lookup answers HTTP 403 after switching to online featuresThe live deployment does not run as the tenant’s runnerSince 1.4.2 deploy-model redeploys it with the right identity
deploy-model refuses a model under features: requestThe version was trained to look features up online by IDDeploy a version trained with request features, or switch to online
The gateway to your own store on Cloud Run answers 404The store has internal ingress and the gateway’s egress went over the internetStarter: lookup.egress: ALL_TRAFFIC (1.4.2); the launcher grants the lookup identity run.invoker on a store in the project
Your own store gets 403 reading the exportThe reader was not grantedThe platform lists it in online_store.yaml export_readers (1.4.2); validate warns until then
KServe refuses {"instances": ["c-42"]}Its serving envelope refuses bare stringsSend objects: [{"customer_id": "c-42"}]
Errors for about a minute while deploying to a shared poolEvery change to a pool restarts all its machinesExpected; callers through the gateway retry; production keeps two machines (policies.serving.pools)
A rebuilt endpoint fails with 409A deleted endpoint’s ID stays reserved for a whileSet id_salt in serving.yaml (Enterprise: spec.serving.id_salt)

Ray

SymptomCauseFix
The Ray cluster starts but its job API never answersA head with fewer than 16 vCPUsSize the head at 16 vCPUs or more (validate checks it)
A Ray step with cpu, memory or gpu is refusedA sized step gets no ID token to ask the launcherSize the cluster, not the step
The Ray client and cluster disagreeVersions differPin ray[default] with google-cloud-aiplatform[ray] in the component requirements

BigQuery ML

SymptomCauseFix
A registry entry cannot be deletedIts BigQuery model went with a datasetAlways DROP MODEL before deleting a dataset; an orphaned entry stays (it costs nothing)
A job stops at its byte limitbqml.max_bytes_billedRaise it within policies.bqml; tree models bill far more than linear ones
k-means passes with one huge segmentDavies-Bouldin rewards a few extreme, distant pointsGate on min_segment_share too
bqml.forecast.engine: ai_forecast is refusedIt sends the series to a Google foundation modelThe platform allows it with policies.bqml.ai_forecast: true

Tearing an environment down

SymptomCauseFix
The subnet cannot be deleted: in use by serverless-ipv4-...Cloud Run releases its egress address a few hours after a service is deletedUndeploy first (since 1.4.2 it removes the lookup service), then retry the destroy later
A bucket cannot be deletedObjects under retention or holdsRetention ends on its date; locked retention cannot be shortened by anyone. Release temporary holds with pipewright model retire --release-holds
Disks left after a GKE clusterPersistent volume disks outlive the clusterDelete unattached pvc-* disks