GitLab CI: ERROR: Job failed: execution took longer than 1h0m0s seconds
The job ran past its timeout (project default is 60 minutes) and GitLab killed it.
ERROR: Job failed: execution took longer than 1h0m0s secondsexecution took longer thanJob failed: execution took longer than 1h0m0s secondsjob timed out GitLab Meaning
Hung processes and interactive prompts are the usual cause. Set a realistic timeout: on slow jobs, make commands non-interactive, and find the step that stalls using timestamps in the log. Runners can also impose a maximum job timeout that overrides the project setting.
Common causes
- Command waiting for input or a lock
- Network call without timeout
- Tests deadlocked or very slow on a small runner
- Service container never healthy
- Project/runner timeout set lower than the job needs
⚡ Quick fix
- Add
timeout: 30mper job to fail fast, or raise it for long builds - Run steps non-interactively and with explicit timeouts
- Check the runner's maximum job timeout
Detailed fix by platform
GitLab CI
- Settings → CI/CD → General pipelines → Timeout
- Use
script: - timeout 20m ./long-task.sh
Code examples
Per-job timeout
integration:
timeout: 30m
script:
- timeout 25m ./run-integration.shHow to diagnose
- Last output — Where did the log stop?
- Prompt — Waiting for input?
- Limits — Job vs runner timeout?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Cannot connect to the Docker daemon (GitLab) GitLab CI: Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?
- exceeded the maximum execution time GitHub Actions: The job running on runner GitHub Actions 12 has exceeded the maximum execution time of 360 minutes
- failed to pull image (GitLab) GitLab CI: ERROR: Job failed: failed to pull image "registry.example.com/app:latest" with specified policies [always]: access forbidden
Most viewed in CI/CD
- The process '/usr/bin/git' failed with exit code 128 GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
- ComparisonError: manifest generation failed Argo CD: ComparisonError: rpc error: code = Unknown desc = Manifest generation error (cached): kustomize build failed
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026