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

phantomjs@2.1.1: download via aria2 failed #5375

Closed
shinji257 opened this issue Dec 25, 2023 · 3 comments
Closed

phantomjs@2.1.1: download via aria2 failed #5375

shinji257 opened this issue Dec 25, 2023 · 3 comments

Comments

@shinji257
Copy link

ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-windows.zip
    referer=https://bitbucket.org/ariya/phantomjs/downloads/
    dir=C:\Users\shinj\scoop\cache
    out=phantomjs#2.1.1#https_bitbucket.org_ariya_phantomjs_downloads_phantomjs-2.1.1-windows.zip

ERROR & 'C:\Users\shinj\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\shinj\scoop\cache\phantomjs.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.4 (Windows NT 10.0; Win64; x64; Core)' --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=32112 --continue --summary-interval=0 --auto-save-interval=1

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=phantomjs%402.1.1%3a+download+via+aria2+failed

I had to disable aria2c in order to install at which point it does so successfully.

Copy link
Contributor

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)

@shinji257
Copy link
Author

(I know this was an auto-close bot reply but I'll still reply to it here)
Yes. Obviously the file downloaded fine without aria2c. I went back and did a bit more digging. Still fails to connect.

Additional logs:
Default attempt: https://gist.github.com/shinji257/cc37a45f481d53effc02ce7f1cd0eade

Retry download manually via aria2c using supplied commandline: https://gist.github.com/shinji257/c5a845044616066cc6247718e4c76a30
Now it says network unreachable

One more time but with log verbosity debug: https://gist.github.com/shinji257/f09ec1903606dd6facc3c8b59aa12c39

Looks like aria2c is only attempting over IPv6 and never falling back to IPv4. It is probably getting an ipv6 address because of the ZeroTier network I have setup (it gives out IPv6 for it's internal net) but there is no internet connectivity there.

Workaround: Add --disable-ipv6 true to aria2-options if you want to use aria2c or you can just disable as the warning suggests.

@shinji257
Copy link
Author

Reporting the issue to aria2c as well since the issue is on them given that it fails to fallback. I tried 4 times and managed to get it to work once because aria2c decided to pick an ipv4 address randomly for that attempt. The rest were trying the ipv6 address only.

Related: aria2/aria2#2158

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