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

mariadb@10.3.14: download via aria2 failed #3316

Closed
0x326 opened this issue Apr 9, 2019 · 2 comments
Closed

mariadb@10.3.14: download via aria2 failed #3316

0x326 opened this issue Apr 9, 2019 · 2 comments

Comments

@0x326
Copy link

0x326 commented Apr 9, 2019

With aria2:

PS C:\Users\Foo Bar> scoop update mariadb
mariadb: 10.3.8 -> 10.3.14
Updating one outdated app:
WARN  Scoop uses 'aria2c' for multi-connection downloads.
WARN  Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
Updating 'mariadb' (10.3.8 -> 10.3.14)
Downloading new version
Starting download with aria2 ...
Download: 04/09 13:59:27 [ERROR] CUID#8 - Download aborted. URI=https://downloads.mariadb.org/f/mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip
Download: Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://downloads.mariadb.org/f/mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip
Download:   -> [SocketCore.cc:1015] errorCode=1 SSL/TLS handshake failure: Error: The client and server cannot communicate, because they do not possess a common algorithm.
Download: (80090331)
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 4fe28d|ERR |       0B/s|C:/Users/Foo Bar/scoop/cache/mariadb#10.3.14#https_downloads.mariadb.org_f_mariadb-10.3.14_winx64-packages_mariadb-10.3.14-winx64.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 1) An unknown error occurred
ERROR https://downloads.mariadb.org/f/mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip
    referer=https://downloads.mariadb.org/f/mariadb-10.3.14/winx64-packages/
    dir=C:\Users\Foo Bar\scoop\cache
    out=mariadb#10.3.14#https_downloads.mariadb.org_f_mariadb-10.3.14_winx64-packages_mariadb-10.3.14-winx64.zip

ERROR & 'C:\Users\Foo Bar\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\Foo Bar\scoop\cache\mariadb.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=12160 --continue

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

Manual download via curl scoop package:

PS C:\Users\Foo Bar> curl.exe -sv https://downloads.mariadb.org/f/mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip -O
*   Trying 173.203.201.148...
* TCP_NODELAY set
* Connected to downloads.mariadb.org (173.203.201.148) port 443 (#0)
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 186 bytes...
* schannel: sent initial handshake data: sent 186 bytes
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 2/3)
* schannel: encrypted data got 4096
* schannel: encrypted data buffer: offset 4096 length 4096
* schannel: encrypted data length: 4034
* schannel: encrypted data buffer: offset 4034 length 4096
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 2/3)
* schannel: encrypted data got 284
* schannel: encrypted data buffer: offset 4318 length 5058
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 2/3)
* schannel: encrypted data got 723
* schannel: encrypted data buffer: offset 5041 length 5342
* schannel: sending next handshake data: sending 326 bytes...
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 2/3)
* schannel: encrypted data got 282
* schannel: encrypted data buffer: offset 282 length 5342
* schannel: SSL/TLS handshake complete
* schannel: SSL/TLS connection with downloads.mariadb.org port 443 (step 3/3)
* schannel: stored credential handle in session cache
> GET /f/mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip HTTP/1.1
> Host: downloads.mariadb.org
> User-Agent: curl/7.55.1
> Accept: */*
>
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 709
* schannel: encrypted data buffer: offset 709 length 103424
* schannel: decrypted data length: 670
* schannel: decrypted data added: 670
* schannel: decrypted data cached: offset 670 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 670 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 670
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 302 FOUND
< Date: Tue, 09 Apr 2019 18:03:03 GMT
< Server: Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.30 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k mod_wsgi/2.8 Python/2.6.5
< Strict-Transport-Security: max-age=15768000
< Vary: Accept-Language,Cookie
< Content-Language: en
< Location: http://ftp.osuosl.org/pub/mariadb//mariadb-10.3.14/winx64-packages/mariadb-10.3.14-winx64.zip
< Content-Disposition: attachment; filename=mariadb-10.3.14-winx64.zip
< Set-Cookie:  mariadb_sessionid=ggn5uw9k0nhb3hb3jjdv5vnvalt42c34; Domain=.mariadb.org; expires=Tue, 23-Apr-2019 18:03:08 GMT; httponly; Max-Age=1209600; Path=/
< Content-Length: 0
< Content-Type: application/zip
<
* Connection #0 to host downloads.mariadb.org left intact

Without aria2:

PS C:\Users\Foo Bar> scoop config aria2-enabled false
PS C:\Users\Foo Bar> scoop update mariadb
mariadb: 10.3.8 -> 10.3.14
Updating one outdated app:
Updating 'mariadb' (10.3.8 -> 10.3.14)
Downloading new version
mariadb-10.3.14-winx64.zip (66.3 MB) [======================================================================================================================] 100%
Checking hash of mariadb-10.3.14-winx64.zip ... ok.
Uninstalling 'mariadb' (10.3.8)
Removing shim for 'aria_chk'.
Removing shim for 'aria_dump_log'.
Removing shim for 'aria_ftdump'.
Removing shim for 'aria_pack'.
Removing shim for 'aria_read_log'.
Removing shim for 'innochecksum'.
Removing shim for 'myisamchk'.
Removing shim for 'myisamlog'.
Removing shim for 'myisampack'.
Removing shim for 'myisam_ftdump'.
Removing shim for 'mysql'.
Removing shim for 'mysqladmin'.
Removing shim for 'mysqlbinlog'.
Removing shim for 'mysqlcheck'.
Removing shim for 'mysqld'.
Removing shim for 'mysqldump'.
Removing shim for 'mysqlimport'.
Removing shim for 'mysqlshow'.
Removing shim for 'mysqlslap'.
Removing shim for 'mysqltest'.
Removing shim for 'mysql_client_test'.
Removing shim for 'mysql_install_db'.
Removing shim for 'mysql_plugin'.
Removing shim for 'mysql_tzinfo_to_sql'.
Removing shim for 'mysql_upgrade'.
Removing shim for 'mysql_upgrade_service'.
Removing shim for 'my_print_defaults'.
Unlinking ~\scoop\apps\mariadb\current
The system cannot find the file specified.
The system cannot find the path specified.
Installing 'mariadb' (10.3.14) [64bit]
Loading mariadb-10.3.14-winx64.zip from cache
Extracting mariadb-10.3.14-winx64.zip ... done.
Linking ~\scoop\apps\mariadb\current => ~\scoop\apps\mariadb\10.3.14
Creating shim for 'aria_chk'.
Creating shim for 'aria_dump_log'.
Creating shim for 'aria_ftdump'.
Creating shim for 'aria_pack'.
Creating shim for 'aria_read_log'.
Creating shim for 'innochecksum'.
Creating shim for 'myisamchk'.
Creating shim for 'myisamlog'.
Creating shim for 'myisampack'.
Creating shim for 'myisam_ftdump'.
Creating shim for 'mysql'.
Creating shim for 'mysqladmin'.
Creating shim for 'mysqlbinlog'.
Creating shim for 'mysqlcheck'.
Creating shim for 'mysqld'.
Creating shim for 'mysqldump'.
Creating shim for 'mysqlimport'.
Creating shim for 'mysqlshow'.
Creating shim for 'mysqlslap'.
Creating shim for 'mysql_install_db'.
Creating shim for 'mysql_plugin'.
Creating shim for 'mysql_tzinfo_to_sql'.
Creating shim for 'mysql_upgrade'.
Creating shim for 'mysql_upgrade_service'.
Creating shim for 'my_print_defaults'.
Persisting data
Running post-install script...
2019-04-09 14:07:11 0 [Note] C:\Users\Foo Bar\scoop\apps\mariadb\current\bin\mysqld.exe (mysqld 10.3.14-MariaDB) starting as process 12180 ...
'mariadb' (10.3.14) was installed successfully!
Notes
-----
Run following command as administrator to run MariaDB as a service.
mysqld --install "[Service Name(default:MySQL)]"
@0x326
Copy link
Author

0x326 commented Apr 9, 2019

The error might be due to the --min-tls-version=TLSv1.2 flag passed to aria2 since downloads.mariadb.org appears to use TLSv1. Here's a screenshot of the Firefox developer tools accessing the page https://downloads.mariadb.org/:

Capture

@r15ch13
Copy link
Member

r15ch13 commented Apr 10, 2019

Of all the programs MariaDB's server is one out of 5 that doesn't support TLSv1.2 ... 😁
#2040 (comment)

Changed it to a mirror that supports TLSv1.2

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

2 participants