Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]: download via aria2 failed #529

Closed
lostdusty opened this issue Oct 9, 2024 · 1 comment
Closed

[email protected]: download via aria2 failed #529

lostdusty opened this issue Oct 9, 2024 · 1 comment

Comments

@lostdusty
Copy link

I could previously update it fine with aria2, now seems like azul's servers doesn't like range headers.

Console output

Updating one outdated app:
Updating 'zulu-jdk' (22.32.15 -> 23.28.85)
Downloading new version
Starting download with aria2 ...
Download: 10/09 11:51:18 [ERROR] CUID#14 - Download aborted. URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64Download: Exception: [AbstractCommand.cc:351] errorCode=8 URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.ziDownload:   -> [HttpResponse.cc:81] errorCode=8 Invalid range header. Request: 155189248-163577855/216573686, Response: 0-216573Download: 10/09 11:51:18 [ERROR] CUID#13 - Download aborted. URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64Download: Exception: [AbstractCommand.cc:351] errorCode=8 URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.ziDownload:   -> [HttpResponse.cc:81] errorCode=8 Invalid range header. Request: 199229440-216573685/216573686, Response: 0-216573Download: 10/09 11:51:18 [ERROR] CUID#10 - Download aborted. URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64Download: Exception: [AbstractCommand.cc:351] errorCode=8 URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.ziDownload:   -> [HttpResponse.cc:81] errorCode=8 Invalid range header. Request: 146210816-155189247/216573686, Response: 0-216573Download: 10/09 11:51:18 [ERROR] CUID#12 - Download aborted. URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64Download: Exception: [AbstractCommand.cc:351] errorCode=8 URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.ziDownload:   -> [HttpResponse.cc:81] errorCode=8 Invalid range header. Request: 163577856-181403647/216573686, Response: 0-216573Download: 10/09 11:51:18 [ERROR] CUID#11 - Download aborted. URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64Download: Exception: [AbstractCommand.cc:351] errorCode=8 URI=https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.ziDownload:   -> [HttpResponse.cc:81] errorCode=8 Invalid range header. Request: 181403648-199229439/216573686, Response: 0-216573Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 08901b|ERR |       0B/s|C:/Users/Rebecca/scoop/cache/zulu-jdk#23.28.85#dd65de5.zip
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR Download failed! (Error 8) Remote server did not support resume when resume was required to complete download
ERROR https://cdn.azul.com/zulu/bin/zulu23.28.85-ca-jdk23.0.0-win_x64.zip
    referer=https://cdn.azul.com/zulu/bin/
    dir=C:\Users\Rebecca\scoop\cache
    out=zulu-jdk#23.28.85#dd65de5.zip

ERROR & 'C:\Users\Rebecca\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\Rebecca\scoop\cache\zulu-jdk.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/5.1 (Windows NT 10.0; Win64; x64; Desktop)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=2240 --continue --summary-interval=0 --auto-save-interval=1

Scoop Configuration

{
    "last_update":  "2024-10-09T11:49:05.6548503-03:00",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "scoop_branch":  "master"
}
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Cannot reproduce.

All files could be downloaded without any issue.
Problems with download could be caused by:

  • Network error
  • Blocked site (Great Firewall of China, Corporate restrictions, ...)
  • Antivirus settings blocking URL/downloaded file
  • Proxy configuration
  • Aria2 being unreliable (if you're facing problems with aria2, disable it by running scoop config aria2-enabled false and try again)

@github-actions github-actions bot closed this as completed Oct 9, 2024
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

No branches or pull requests

1 participant