Bug 495428 - Binary file download is broken for digikam >= 8.4.0
Summary: Binary file download is broken for digikam >= 8.4.0
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Website (show other bugs)
Version: 8.4.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-27 12:51 UTC by Juan
Modified: 2024-10-29 15:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan 2024-10-27 12:51:18 UTC
SUMMARY

After the program is opened, digikam asks the user whether to download binary files associated to face recognition and auto-tagging. If the download fails, it asks the user whether to try again. However when a mirror is not working, the download just fails again, and digikam does not attempt to use a different mirror.

As of today (2024-10-27), it happens when starting a fresh install of digikam from Spain, as it tries to use mirrors.up.pt, which is not responsive.

STEPS TO REPRODUCE
1. Attempt to start a fresh install of digikam from Spain.

OBSERVED RESULT
Binary file download fails.

EXPECTED RESULT
It should attempt to use a different mirror when the download fails.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 8.4.0 (AppImage)

ADDITIONAL INFORMATION
Probably regional.
Comment 1 Maik Qualmann 2024-10-27 12:57:00 UTC
We have no influence on the mirror servers, you will have to try again at a later time. See also Bug 495027

Maik
Comment 2 Maik Qualmann 2024-10-27 13:07:22 UTC
I can at least confirm that "https://mirrors.up.pt/pub/kde/" is currently not accessible from Germany either.

Maik
Comment 3 caulier.gilles 2024-10-27 13:29:04 UTC
As Maik, work fine from France

Gilles Caulier
Comment 4 Juan 2024-10-27 13:50:58 UTC
I'm trying to look at the code and I see that indeed the mirror direction is done from the server. Can't it be forced from the client side?

If I try to download files directly from https://files.kde.org/digikam/ I indeed get redirected, and setting --max-redirect 0 gets me no files. But maybe it could be implemented by adding a (nchecked) checkbox for not using a mirrors that sets the URL to 'cdn.files.kde.org'.
Comment 5 Maik Qualmann 2024-10-27 13:58:19 UTC
In previous versions we had a fallback solution with known good mirror servers. But this was not well received by the KDE admins. I will probably add it again though...

Maik
Comment 6 Maik Qualmann 2024-10-27 14:43:35 UTC
Git commit ac6f084f30f22361dee4e676afed812276f576d8 by Maik Qualmann.
Committed on 27/10/2024 at 14:42.
Pushed by mqualmann into branch 'master'.

use a fallback mirror server for the binary download
FIXED-IN: 8.5.0

M  +1    -1    NEWS
M  +8    -1    core/utilities/setup/downloader/filesdownloader.cpp

https://invent.kde.org/graphics/digikam/-/commit/ac6f084f30f22361dee4e676afed812276f576d8
Comment 7 Juan 2024-10-29 15:39:53 UTC
(In reply to Maik Qualmann from comment #6)
> Git commit ac6f084f30f22361dee4e676afed812276f576d8 by Maik Qualmann.
> Committed on 27/10/2024 at 14:42.
> Pushed by mqualmann into branch 'master'.
> 
> use a fallback mirror server for the binary download
> FIXED-IN: 8.5.0
> 
> M  +1    -1    NEWS
> M  +8    -1    core/utilities/setup/downloader/filesdownloader.cpp
> 
> https://invent.kde.org/graphics/digikam/-/commit/
> ac6f084f30f22361dee4e676afed812276f576d8

Thank you for your very quick answer.