> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/generic/solution/host-fails-to-converge-with-error-rpmdb-open-failed.md).

# Host Fails to Converge With Error: "rpmdb open failed"

## Problem

* A host is failing to converge with the following error printed in */var/log/pf9/hostagent.log.*

{% tabs %}
{% tab title="None" %}

```none
246 - session.py INFO - --- Converging ---
...
188 - pf9_app.py INFO - Setting the desired service state
703 - pf9_app_db.py ERROR - Erase command failed : sudo /opt/pf9/hostagent/bin/pf9-yum erase pf9-*. Return code: 1, stdout: , stderr: error: db5 error(11) from dbenv->open: Resource tempo
rarily unavailable
error: cannot open Packages index using db5 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:


Error: rpmdb open failed
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Platform9 Managed Kubernetes - All Versions
* CentOS

## Cause

* One or more partitions on the root disk are full.
* The **Yum** database is corrupted on disk.

## Resolution

1. Check the disk utilization on the host.

{% tabs %}
{% tab title="None" %}

```none
# df -h
```

{% endtab %}
{% endtabs %}

2. If one or more partitions are full, identify where space is being utilized and clear the necessary amount of disk space so that the Platform9 components may continue to function.

{% tabs %}
{% tab title="None" %}

```none
# du -h /partition | sort -h
```

{% endtab %}
{% endtabs %}

3. If there is a sufficient amount of disk space available (<97%) on all of the root disk partitions and yum commands fail with the same error, the package database may need to be rebuilt.

{% tabs %}
{% tab title="None" %}

```none
# rpm --rebuilddb
```

{% endtab %}
{% endtabs %}

4. Restart the ***pf9-hostagent*** service.

{% tabs %}
{% tab title="None" %}

```none
# systemctl restart pf9-hostagent
```

{% endtab %}
{% endtabs %}

## Additional Information

[How to Fix Corrupted Package Database for Yum](https://www.unixtutorial.org/how-to-fix-corrupted-packages-database-for-yum)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/generic/solution/host-fails-to-converge-with-error-rpmdb-open-failed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
