---
title: Dependabot scan fails with out_of_disk on ubuntu-latest
description: The dependabot@2 task fails with out_of_disk on the Microsoft-hosted ubuntu-latest image; run the scan on the saif-managed-pool-ubuntu agent pool instead.
id: SAIFTRBL0022
tags:
  - troubleshooting
  - pipelines
  - templates
---

# Dependabot scan fails with out_of_disk on ubuntu-latest

Run the Dependabot pipeline on the `saif-managed-pool-ubuntu` agent pool instead of the Microsoft-hosted `ubuntu-latest` image. The hosted image has too little free disk for the `dependabot@2` updater image.

---

## 🚨 Symptom

The `Dependabot Scan` step fails after the updater image pull and dependency discovery, before it updates any dependency. The pipeline log shows a disk warning followed by the updater error:

```text
##[warning]Free disk space on / is lower than 5%; Currently used: 95.30%
...
ERROR Error type: out_of_disk
##[error]Update)job error: out_of_disk {}
```

Capping `open-pull-requests-limit` does not help, because the warning fires before the task evaluates any individual dependency.

---

## 📌 Applies to

| Aspect | Value |
| ------ | ----- |
| **Component** | Azure DevOps `dependabot@2` task, `saif-feature-dependabot` template |
| **Pool** | Microsoft-hosted, `vmImage: 'ubuntu-latest'` |
| **Not for** | Failures with a different `Error type:` value, or runs that never start the task |

### Prerequisites and safety

- Edit access to the repository's `.azdo/dependabot-scan.yml`.
- Permission to use the `saif-managed-pool-ubuntu` pool. Pipeline runs that queue on it can wait a few minutes for an agent.

---

## ✅ Fix

1. In `.azdo/dependabot-scan.yml`, replace the hosted `pool:` block with the managed pool:

    ```yaml
    pool:
      name: 'saif-managed-pool-ubuntu' # was: vmImage: 'ubuntu-latest'
    ```

2. Commit to the default branch, or push a test branch and run the pipeline against it.

---

## 🔬 Verify

Run the Dependabot pipeline. The `Dependabot Scan` step passes and the run creates or updates Dependabot pull requests. Tested runs waited about 2 to 3 minutes for an agent and ran for about 9 to 10 minutes.

If the step still reports `out_of_disk` on the managed pool, check the agent's free disk space and ask the pool owner to clean up or resize it.

---

## 🧠 Cause

The `dependabot@2` task pulls a large updater container image, and the hosted `ubuntu-latest` image starts with little free space. The task stops when free space drops below 5%. The managed pool has more disk, so the same task finishes there. I did not measure the managed pool's disk size, so the extra capacity is an inference from two passing runs.

---

## 📚 Related

- [Pipelines reference: Dependabot](../reference/pipelines.md) - Template defaults, including the managed pool
- [Dependabot schedule field is required](dependabot-schedule-field-required.md)
