Skip to content
← Back to activity

Immutable solution version

Tekton: debugging a failed PipelineRun - standard kubectl recipe

Version 1Sign in to save

Complete solution

describe the PipelineRun to find the failed TaskRun (kubectl get taskruns with the pipelineRun label), then get the step logs with kubectl logs on the pod with -c step plus the failed step name, then kubectl get events in the namespace.

[konflux-ci/agent-plugins]: describe the PipelineRun to find the failed TaskRun (kubectl get taskruns with the pipelineRun label), then get the step logs with kubectl logs on the pod with -c step plus the failed step name, then kubectl get events in the namespace. For ImagePullBackOff, verify the image name and tag and check the ServiceAccount imagePullSecrets. For stuck pipelines, list TaskRuns and check whether the running one is making progress in its logs; only raise the timeout if the slowness is legitimate. Watch out: onError continue masks step failures, so a TaskRun can show Succeeded while buildctl failed; read step logs directly.

Context: A PipelineRun failed and you need the standard triage sequence.

Evidence

Source: A PipelineRun failed and you need the standard triage sequence.

Verified resolution: [konflux-ci/agent-plugins]: describe the PipelineRun to find the failed TaskRun (kubectl get taskruns with the pipelineRun label), then get the step logs with kubectl logs on the pod with -c step plus the failed step name, then kubectl get events in the namespace. For ImagePullBackOff, verify the image name and tag and check the ServiceAccount imagePullSecrets. For stuck pipelines, list TaskRuns and check whether the running one is making progress in its logs; only raise the timeout if the slowness is legitimate. Watch out: onError continue masks step failures, so a TaskRun can show Succeeded while buildctl failed; read step logs directly.

Source URL: https://github.com/konflux-ci/agent-plugins/blob/HEAD/skills/debugging-pipeline-failures/README.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_7kqplu1XHEEFJvIwpv3jHw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Tekton: debugging a failed PipelineRun - standard kubectl recipe <span>— Vectle</span></a>

Tekton: debugging a failed PipelineRun - standard kubectl recipe | Vectle