openSUSE / MirrorCache

Download Redirector
https://opensuse.github.io/MirrorCache/
GNU General Public License v2.0
37 stars 12 forks source link

Missing files in the mirror https://mirror.aardsoft.fi/ #516

Open kum-deepak opened 2 months ago

kum-deepak commented 2 months ago

The files in https://download.opensuse.org/repositories/graphics:/darktable/xUbuntu_24.04/amd64/ are missing.

https://mirror.aardsoft.fi/opensuse/repositories/graphics%3A/darktable/xUbuntu_24.04/amd64/darktable_4.8.1-1.1%2B80.1_amd64.deb goes 404. This leads to apt install darktable to fail.

I can confirm that this file is available in another mirror: https://ftp.gwdg.de/pub/opensuse/repositories/graphics%3A/darktable/xUbuntu_24.04/amd64/darktable_4.8.1-1.1%2B80.1_amd64.deb

andrii-suse commented 2 months ago

It is not guaranteed that files will be present on any mirror. (Mirrors are typically fully managed by contributors, so openSUSE infrastructure can only read access).

The only behavior you can expect is that redirect from download.opensuse.org is not happening to mirrors which are missing the desired resource.

Was it some particular problem that you did encounter? (E.g. with redirection from download.opensuse.org)

asg7443 commented 1 month ago

Hi!

download.opensuse.org does redirect to https://mirror.aardsoft.fi/ and in my case it returns somewhat outdated file.

Package was rebuilt on 03 Oct 2024 03:28:33 +0000, it's almost 34 hours ago.

> wget https://download.opensuse.org/repositories/home:/alvistack/Debian_12/amd64/containernetworking_1.2.3-1_amd64.deb
--2024-10-04 16:51:56--  https://download.opensuse.org/repositories/home:/alvistack/Debian_12/amd64/containernetworking_1.2.3-1_amd64.deb
Resolving download.opensuse.org (download.opensuse.org)... 195.135.223.226, 2a07:de40:b250:131:10:151:131:30
Connecting to download.opensuse.org (download.opensuse.org)|195.135.223.226|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://mirror.aardsoft.fi/opensuse/repositories/home%3A/alvistack/Debian_12/amd64/containernetworking_1.2.3-1_amd64.deb [following]
--2024-10-04 16:51:57--  https://mirror.aardsoft.fi/opensuse/repositories/home%3A/alvistack/Debian_12/amd64/containernetworking_1.2.3-1_amd64.deb
Resolving mirror.aardsoft.fi (mirror.aardsoft.fi)... 95.216.238.135, 2a01:4f9:1a:7200::135
Connecting to mirror.aardsoft.fi (mirror.aardsoft.fi)|95.216.238.135|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1334216 (1,3M) [application/octet-stream]
asg7443 commented 1 month ago

Oh, according to this comment, it looks like in my case it's not the mirror to be blamed.

andrii-suse commented 1 month ago

Yeah, it is kind of known problem that redirection may be incorrect if the filename was not changed after rebuild. And there is not easy fix at the moment, because download.opensuse.org doesn't have capacity to verify integrity of all files on all mirrors, so it relies only on the name to conclude if a mirror has the file.

To work around this problem the .deb project should be tweaked in build.opensuse.org to include build number, so every package has unique name on every rebuild.