Bug 28186

Summary: DNF Failed to download metadata for repo
Product: Mageia Reporter: christian barranco <chb0>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: lewyssmith, ouaurelien, sb.cw
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description christian barranco 2021-01-21 18:59:12 CET
Description of problem:
For any 'dnf install package_name' the following error is returned:
" Mageia 8 - x86_64 - Nonfree                 430  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64-nonfree': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Nonfree - Updates       436  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64-nonfree': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Tainted                 452  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64-tainted': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Tainted - Updates       452  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64-tainted': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64                           462  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                 473  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
"

Version-Release number of selected component (if applicable):
Mageia 8 beta2

How reproducible:
So far, all my laptops and VM exhibit the issue

Steps to Reproduce:
1.try to install a package as root with 'dnf install'
2.
3.
Comment 1 Lewis Smith 2021-01-22 13:38:21 CET
Sorry for the angst.
I tried:

 $ LANG=C sudo dnf install grisbi
Mageia Cauldron - x86_64 - Updates          9.9  B/s | 136  B     00:13    
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - At least one of the zchunk checksums doesn't match in ftp://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/updates/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Checksum error /var/cache/dnf/cauldron-updates-x86_64-7e1fcdfdaf44a85f/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck: Unable to validate zchunk checksums
Mageia 8 - x86_64                            73  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                  29  B/s |  51  B     00:01    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Ignoring repositories: cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Last metadata expiration check: 1:14:38 ago on Fri Jan 22 09:32:43 2021.
Dependencies resolved.
============================================================================
 Package      Architecture Version              Repository             Size
============================================================================
Installing:
 grisbi       x86_64       1.2.2-2.mga8         cauldron-x86_64       5.8 M

which worked because I had added other repos. It also worked without complaint with urpmi, which used an added repo.

It is possible that your repos are not correctly defined. Please post the O/P of:
 $ inxi -r | grep -v yum

Mirrorlist is a mystery to me, CC'ing Aurélien who probably knows more. We need to judge whether it is a 'mirror' problem, or DNF.

CC: (none) => lewyssmith, ouaurelien

Comment 3 Jani Välimaa 2021-01-22 17:12:30 CET
The issue is in our infra. Directory/file permissions are fcked in main mirror and thus repodata doesn't get updated.
Comment 4 Jani Välimaa 2021-01-22 17:58:17 CET
The issue should be fixed now. Please test again in a while after mirrors gets synced.
Comment 5 Lewis Smith 2021-01-22 20:02:47 CET
Thanks Jani for your explanation.

@christian : if you find later that the problem has gone, please report back here (& close the bug 'fixed' if you like).
Comment 6 christian barranco 2021-01-22 20:14:24 CET
I am trying but without success so far. 
I will try again tomorrow. Mirrors will have had then the chance to update.
I will report and change status.
Comment 7 Sébastien B. 2021-01-22 21:05:49 CET
Hello,

After a test this evening, I confirm having the same bug with DNF as Christian.

root@localhost ~]# dnf update
détermination du miroir le plus rapide (1 hôtes).. done.35  B     00:00 ETA
Mageia Cauldron - x86_64 - Updates          6.4  B/s | 136  B     00:21    
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - At least one of the zchunk checksums doesn't match in ftp://ftp.free.fr/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/updates/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Checksum error /var/cache/dnf/cauldron-updates-x86_64-7e1fcdfdaf44a85f/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck: Unable to validate zchunk checksums
Mageia 8 - x86_64                            38  B/s |  51  B     00:01    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                  48  B/s |  51  B     00:01    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Dépôts ignorés : cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Dernière vérification de l’expiration des métadonnées effectuée il y a 1 day, 0:07:00 le jeu. 21 janv. 2021 20:57:19.
Dépendances résolues.
Rien à faire.
Terminé !

I see that the terminal output shows Cauldron sources, as well as Mageia 8 sources.

Reagrds,

SB

CC: (none) => vigenmailbox

Comment 8 christian barranco 2021-01-23 09:43:41 CET
Hi
Just tested. 
It has improved for nonfree and tainted.
However, I still have the issue for 'mageia-x86_64' and 'updates-x86_64'
Comment 9 christian barranco 2021-01-23 18:48:29 CET
Ok,just tested and it works now.
Thanks!

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 10 Sébastien B. 2021-01-24 11:42:18 CET
Hello,

Issue are still active, today, after un dnf update:

dnf update
Mageia Cauldron - x86_64 - Updates           21 kB/s |  30 kB     00:01    
Errors during downloading metadata for repository 'cauldron-updates-x86_64':
  - Zchunk header checksum didn't match expected checksum
Error: Failed to download metadata for repo 'cauldron-updates-x86_64': Checksum error /var/cache/dnf/cauldron-updates-x86_64-7e1fcdfdaf44a85f/repodata/eb0e1b28d39394c1e512824bb33d07dca6b4451fbdc1584c24974558f067885c-primary.xml.zck: Unable to read zchunk lead
Mageia 8 - x86_64                           299  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'mageia-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Mageia 8 - x86_64 - Updates                 323  B/s |  51  B     00:00    
Error: Failed to download metadata for repo 'updates-x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Dépôts ignorés : cauldron-updates-x86_64, mageia-x86_64, updates-x86_64
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:41:51 le dim. 24 janv. 2021 10:58:24.
Dépendances résolues.
Rien à faire.
Terminé !

urpmi works fine !!

Regards,

Sébastien B.
Comment 11 Lewis Smith 2021-01-24 14:45:34 CET
Can you both try say at the end of the month; the mirror problem was apparently still lurking after this bug was closed.
If it still persists, please re-open it.
Comment 12 christian barranco 2021-01-24 21:17:20 CET
Will do.
Comment 13 christian barranco 2021-02-08 09:09:37 CET
Hi
Just tried on a fresh install made 1 week ago (with beta2 iso) and up to date with urpmi --auto-update.
No more issue on my side.