# Unable to repair broken Yum repository

**URL:** <https://community.sonatype.com/t/unable-to-repair-broken-yum-repository/6751>\
**Category:** Sonatype Nexus Repository\
**Created:** [June 17, 2021, 7:21am UTC](https://community.sonatype.com/t/unable-to-repair-broken-yum-repository/6751 "2021-06-17T07:21:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sverre.moe](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sverre.moe](https://community.sonatype.com/u/sverre.moe)\
**Post date:** [June 17, 2021, 7:21am UTC](https://community.sonatype.com/t/unable-to-repair-broken-yum-repository/6751/1 "2021-06-17T07:21:11Z")

</div>

We have been using Nexus to proxy OpenSUSE RPM repositories.

This has worked fine up until now, when we got an invalid repository.

```auto
[2021-06-17T06:47:39.919Z] Repository 'repo-update-oss' is invalid.
[2021-06-17T06:47:39.919Z] [repo-update-oss|https://nexus.company.com:8443/repository/OpenSUSE_Leap15.2-update-oss/] Valid metadata not found at specified URL
[2021-06-17T06:47:39.919Z] History:
[2021-06-17T06:47:39.919Z] - File './repodata/8ae
3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz' not found on medium 'https://nexus.company.com:8443/repository/OpenSUSE_Leap15.2-update-oss/'
[2021-06-17T06:47:39.919Z] - Can't provide ./repodata/8ae3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz

```

How can this file just be gone from the repository?

I have tried everything to fix it:  
Invalidate cache  
Rebuild index  
Deleting RPMs  
Deleting repodata

But the repository is never being rebuilt.

I tried to create the task `Repair - Rebuild Yum repository metadata (repodata)`, but something in that is broken, because I cannot select a Yum repository. The drop down list for repository will not open up (or is empty).

**Edit** :  
The repodata eventually came back after I deleted it, but it does not contain any file other than repomd.xml and repomd.xml.asc. The repodata file is referring to files that are not there.

**Edit2** :  
I deleted the repository i Nexus, then recreated it.  
After Nexus has created repodata, there is now also one “_-deltainf.xml.gz" and one "_-primary.xml.gz”.  
However now, it fails with refresh. It complains about wrong file size

```auto
Retrieving repository 'repo-update-oss' metadata ...............................................................................................................................................[error]
Repository 'repo-update-oss' is invalid.
[repo-update-oss|https://nexus.company.com:8443/repository/OpenSUSE_Leap15.2-update-oss/] Valid metadata not found at specified URL
History:
 - Downloaded data exceeded the expected filesize '567.4 KiB' of 'https://nexus.company.com:8443/repository/OpenSUSE_Leap15.2-update-oss/repodata/8ae3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz'.
 - Can't provide ./repodata/8ae3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz

```

This file is actually 2.8MB showing in Nexus.  
The correct size is actually 567KB from OpenSUSE, so why is it 2.8MB in Nexus?  
[https://download.opensuse.org/update/leap/15.2/oss/repodata/8ae3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz](https://download.opensuse.org/update/leap/15.2/oss/repodata/8ae3296bc61c3424ed4aaa9029f2ced8c39e385e18a7cadb7121a20ffbe0b925-deltainfo.xml.gz)

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [June 17, 2021, 2:18pm UTC](https://community.sonatype.com/t/unable-to-repair-broken-yum-repository/6751/2 "2021-06-17T14:18:05Z")

</div>

I don’t think we support the deltainfo file, at least I see no references to it in the code. Possibly this is something OpenSUSE has started using recently.

---

<div class="post-metadata">

**Author:** ![sverre.moe](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sverre.moe](https://community.sonatype.com/u/sverre.moe)\
**Post date:** [June 17, 2021, 6:56pm UTC](https://community.sonatype.com/t/unable-to-repair-broken-yum-repository/6751/3 "2021-06-17T18:56:37Z")

</div>

It must be very recently then. The Yum Proxy has worked fine up until now.  
Found an issue that seems related to this, but it is an old issue.

> **[What Happened To issues.sonatype.org?](https://central.sonatype.org/faq/what-happened-to-issues-sonatype-org/)**
