Skip to content

Change Qt mirror (download.qt.io is down/flakey) - #8500

Merged
nbolton merged 1 commit into
masterfrom
qt-mirror
Apr 17, 2025
Merged

Change Qt mirror (download.qt.io is down/flakey)#8500
nbolton merged 1 commit into
masterfrom
qt-mirror

Conversation

@nbolton

@nbolton nbolton commented Apr 17, 2025

Copy link
Copy Markdown
Member

Qt default base (download.qt.io) has been flakey over the last few days:

ERROR   : Failed to download checksum for the file '6.9.0-0-202503301022d3dcompiler_47-x64.7z' from mirrors '['https://download.qt.io/']

On my local machine:

curl https://download.qt.io/                                                              
curl: (7) Failed to connect to download.qt.io port 443 after 43 ms: Could not connect to server

We should try a mirror.

Edit: I tried setting --base but it turns out that aqt ignores that for checksums. The only way to get aqt to use checksums from the mirror seems to be to write a .ini file and pass it via AQT_CONFIG env var.

@nbolton

nbolton commented Apr 17, 2025

Copy link
Copy Markdown
Member Author

Hmm, weird, it didn't seem to like the https://qt.mirror.constant.com/ mirror:

INFO    : aqtinstall(aqt) v3.1.21 on Python 3.11.9 [CPython Clang 13.0.0 (clang-1300.0.29.30)]
/Users/runner/hostedtoolcache/Python/3.11.9/x64/bin/python3 -m aqt install-qt mac desktop 6.9.0 --autodesktop --outputdir /Users/runner/Qt --base https://qt.mirror.constant.com/
INFO    : aqtinstall(aqt) v3.1.21 on Python 3.11.9 [CPython Clang 13.0.0 (clang-1300.0.29.30)]
WARNING : Failed to download checksum for the file 'online/qtsdkrepository/mac_x64/desktop/qt6_690/qt6_690/Updates.xml'. This may happen on unofficial mirrors.
WARNING : Caught ChecksumDownloadFailure, terminating installer workers
ERROR   : Failed to download checksum for the file '6.9.0-0-202503301021qtsvg-MacOS-MacOS_14-Clang-MacOS-MacOS_14-X86_64-ARM64.7z' from mirrors '['https://download.qt.io/']
INFO    : aqtinstall(aqt) v3.1.21 on Python 3.11.9 [CPython MSC v.1938 64 bit (AMD64)]
C:\hostedtoolcache\windows\Python\3.11.9\x64\python.exe -m aqt install-qt windows desktop 6.9.0 win64_msvc2022_64 --autodesktop --outputdir C:/Qt --base https://qt.mirror.constant.com/
INFO    : aqtinstall(aqt) v3.1.21 on Python 3.11.9 [CPython MSC v.1938 64 bit (AMD64)]
WARNING : Failed to download checksum for the file 'online/qtsdkrepository/windows_x86/desktop/qt6_690/qt6_690/Updates.xml'. This may happen on unofficial mirrors.
WARNING : Caught ChecksumDownloadFailure, terminating installer workers
ERROR   : Failed to download checksum for the file '6.9.0-0-202503301022qtsvg-Windows-Windows_11_23H2-MSVC2022-Windows-Windows_11_23H2-X86_64.7z' from mirrors '['https://download.qt.io/']

I'll try https://mirrors.ocf.berkeley.edu/qt

Edit: Nope, same error:

/Users/runner/hostedtoolcache/Python/3.11.9/arm64/bin/python3 -m aqt install-qt mac desktop 6.9.0 --autodesktop --outputdir /Users/runner/Qt --base https://mirrors.ocf.berkeley.edu/qt
INFO    : aqtinstall(aqt) v3.1.21 on Python 3.11.9 [CPython Clang 13.0.0 (clang-1300.0.29.30)]
WARNING : Failed to download checksum for the file 'online/qtsdkrepository/mac_x64/desktop/qt6_690/qt6_690/Updates.xml'. This may happen on unofficial mirrors.
WARNING : Caught ChecksumDownloadFailure, terminating installer workers
ERROR   : Failed to download checksum for the file '6.9.0-0-202503301021qtbase-MacOS-MacOS_14-Clang-MacOS-MacOS_14-X86_64-ARM64.7z' from mirrors '['https://download.qt.io/']

@nbolton nbolton changed the title build(qt): Change mirror to https://qt.mirror.constant.com build(qt): Change Qt mirror Apr 17, 2025
@nbolton nbolton changed the title build(qt): Change Qt mirror Change Qt mirror (download.qt.io is down/flakey) Apr 17, 2025

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seams reasonable

@nbolton
nbolton merged commit 07d837a into master Apr 17, 2025
@nbolton
nbolton deleted the qt-mirror branch April 17, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants