# Cloud Build: build timed out (default 10 minutes) — step or total build timeout exceeded

**Code:** `timeout` · **Category:** Google Cloud / Firebase · **Seen on:** Google Cloud

The build ran longer than its timeout, so Cloud Build cancelled it.

## Meaning

Raise `timeout` at the build level (and per step), cache dependencies (Kaniko cache, `--cache-from`), use a bigger machine type (`E2_HIGHCPU_8`), parallelise steps with `waitFor`, and avoid downloading large artifacts repeatedly.

## Common causes

- Default 600 s timeout
- Slow dependency install/Docker build
- Small machine type
- No layer caching
- Hanging step (waiting for input)

## Quick fix

1. Set `timeout: 1800s`
2. Enable caching and use `E2_HIGHCPU_8`
3. Fix hanging steps

## Detailed fix by platform

### YAML

1. 

```bash
timeout: 1800s
options:
  machineType: E2_HIGHCPU_8
```


## How to diagnose

1. **Timeout** — Default?
2. **Cache** — Used?
3. **Machine** — Large enough?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/gcp/cloudbuild-timeout-exceeded)
