amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
500 stars 38 forks source link

[Bug] - Permission denied to access perl-Text-Tabs+Wrap #659

Closed DaanDeMeyer closed 3 months ago

DaanDeMeyer commented 3 months ago

Describe the bug

I'm trying to add support for building Amazon Linux images in https://github.com/systemd/mkosi. This is almost working except that dnf downloading packages fails at downloading perl-Text-Tabs+Wrap. Note it's only this package that fails to download. Other packages download fine without issues.

To Reproduce Steps to reproduce the behavior:

git clone https://github.com/DaanDeMeyer/mkosi.git --branch amazon
cd mkosi
bin/mkosi -d amazon --tools-tree=default -f
...

Expected behavior

The above commands first build a fedora image and then use it to build an amazon linux image. Instead it fails to download perl-Text-Tabs+Wrap.

Additional context

[276/332] perl-Text-Tabs+Wrap-0:2021.0726-1.amzn2023.0.1.noarch                                                                                                                                       1% |  98.0   B/s | 243.0   B |  00m02s
>>> Status code: 403 for https://cdn.amazonlinux.com/al2023/blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm (IP: 2600:9000:21d7:a600:a:3144:5280:93a1) - 
>>> Status code: 403 for https://cdn.amazonlinux.com/al2023/blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm (IP: 2600:9000:21d7:a600:a:3144:5280:93a1) - 
>>> Status code: 403 for https://cdn.amazonlinux.com/al2023/blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm (IP: 2600:9000:21d7:a600:a:3144:5280:93a1) - 
>>> Status code: 403 for https://cdn.amazonlinux.com/al2023/blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm (IP: 2600:9000:21d7:a600:a:3144:5280:93a1) - 
>>> No more mirrors to try - All mirrors were already tried without success
[277/332] libstdc++-0:11.4.1-2.amzn2023.0.2.x86_64                                                                                                                                                    0% |   0.0   B/s |   0.0   B |  00m01s
>>> Not finished - interrupted by error: Cannot download ../../../../blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm: All mirrors were tried
[278/332] libxml2-0:2.10.4-1.amzn2023.0.6.x86_64                                                                                                                                                      0% |   0.0   B/s |   0.0   B |  00m01s
>>> Not finished - interrupted by error: Cannot download ../../../../blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm: All mirrors were tried
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[278/332] Total                                                                                                                                                                 11% [==                ] | 237.3 KiB/s |   3.6 MiB | -02m04sFailed to download packages
 Librepo error: Cannot download ../../../../blobstore/c26b33388c5e1addd19255110a48797eefd23476a911f72338d422c212d0c2d8/perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm: All mirrors were tried
elsaco commented 3 months ago

@DaanDeMeyer the package is in the repo. Did a quick test with dnf download perl-Text-Tabs+Wrap and perl-Text-Tabs+Wrap-2021.0726-1.amzn2023.0.1.noarch.rpm was downloaded indeed! Notice the slight rpm name difference.

DaanDeMeyer commented 3 months ago

@elsaco The package may be in the repo, but I don't seem to have permission to access it.

DaanDeMeyer commented 3 months ago

This only reproduces when using dnf5. When running MKOSI_DNF=dnf bin/mkosi -d amazon --tools-tree=default -f, the build succeeds.

DaanDeMeyer commented 3 months ago

dnf5 bug opened: https://github.com/rpm-software-management/dnf5/issues/1321

vigh-m commented 3 months ago

Looks like this is not an issue on Amazon Linux's side. I see you already have an issue open with dnf5. Hope that is able to unblock you on this.