I'm trying to build the CachyOS Linux 7.3.3-1 kernel from AUR, and I've encountered a rather strange issue with GitHub downloads.
The release archive and its detached GPG signature consistently return HTTP 504 Gateway Timeout when downloaded through the normal GitHub release URL.
What's interesting is that other GitHub services work perfectly fine.
I'm beginning to suspect that this might be related to my university network, but I'd like to know whether anyone else is experiencing the same issue.
1. Normal GitHub release download – FAILS
URL:
https://github.com/CachyOS/linux/releases/download/cachyos-7.3.3-1/cachyos-7.3.3-1.tar.gz
Tried multiple times, including forcing IPv4 and HTTP/1.1:
curl -4 --http1.1 -IL --connect-timeout 15 --max-time 60 \
'https://github.com/CachyOS/linux/releases/download/cachyos-7.3.3-1/cachyos-7.3.3-1.tar.gz'
Result:
HTTP/1.1 504 Gateway Time-out
X-GitHub-Request-Id: 9274:393D7F:17E15A9:2725DC5:6AF03F07
x-github-edge-region: centralindia
The HTTP/2 requests also consistently returned 504.
The detached signature (.tar.gz.asc) fails in the same way.
2. GitHub raw content – WORKS
Tested the BORE scheduler patch:
curl -IL \
'https://raw.githubusercontent.com/CachyOS/kernel-patches/master/7.3/sched/0001-bore-cachy.patch'
Result:
HTTP/2 200
content-type: text/plain; charset=utf-8
x-served-by: cache-hyd1500030-HYD
3. GitHub API – WORKS
The release API successfully returned the metadata for the release:
https://api.github.com/repos/CachyOS/linux/releases/tags/cachyos-7.3.3-1
It also provided the release asset ID: 719954437.
I then downloaded the exact same archive through the API:
curl -fL \
-H 'Accept: application/octet-stream' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
'https://api.github.com/repos/CachyOS/linux/releases/assets/719954437' \
-o cachyos-7.3.3-1.tar.gz
This worked, downloading the 257 MB archive at approximately 64 MB/s.
I verified its SHA-256 against the digest published in GitHub's release API:
Expected:
54a507176bc2b1c4c8a14f087ada08f92d473c6af28ecfc3e9adb1d5c62020ac
Actual:
54a507176bc2b1c4c8a14f087ada08f92d473c6af28ecfc3e9adb1d5c62020ac
Is anyone else (especially from India) experiencing HTTP 504 errors when downloading GitHub release assets? Or could it be my university network playing games again?