Skip to content
ohsudo, Home

Tags

#ci

This job is stuck
CI/CD

GitLab CI "This job is stuck": why no runner picks it up, and how to fix it

Fix GitLab CI "This job is stuck because you don't have any active runners": match the job's tags, enable shared runners, check runner status and protected branches.

Beginner · 5 min read

Resource not accessible
CI/CD

GitHub Actions "Resource not accessible by integration": give the token the right permission

Fix GitHub Actions "Resource not accessible by integration" (HTTP 403): add the right permissions to GITHUB_TOKEN, and handle fork pull requests and Dependabot safely.

Intermediate · 4 min read

Inconsistent dependency lock file
Infrastructure as Code

Terraform "Inconsistent dependency lock file": what to run, and what to commit

Fix Terraform "Inconsistent dependency lock file": run init or init -upgrade, resolve version constraints and checksum errors across platforms, and lock it down in CI.

Beginner · 4 min read

failed to compute cache key: … not found
Docker & Containers

Docker build "failed to compute cache key: … not found": why COPY can't see your file

Fix "failed to compute cache key … not found" and "COPY failed": the file is outside the build context, excluded by .dockerignore, or missing in CI.

Beginner · 4 min read

fatal: detected dubious ownership in repository
CI/CD

Git "fatal: detected dubious ownership in repository": fix it without turning the check off

Fix Git "detected dubious ownership in repository": run Git as the owner, fix the ownership, or trust one path with safe.directory, on servers, Docker and CI.

Beginner · 3 min read

Error: Error acquiring the state lock
Infrastructure as Code

Terraform "Error acquiring the state lock": who holds it, and when force-unlock is safe

Fix Terraform and OpenTofu "Error acquiring the state lock": read the lock info, wait or find the running job, and use force-unlock only on a stale lock.

Intermediate · 4 min read