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

Problems in downloading strawberry-perl-5.24.1.1-32bit-portable.zip #932

Closed
traversaro opened this issue Apr 12, 2017 · 6 comments
Closed
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed requires:repro The issue is not currently repro-able

Comments

@traversaro
Copy link
Contributor

When installing the openssl port on a PC at my institution, I have this weird problem when downloading the strawberry-perl-5.24.1.1-32bit-portable.zip from http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip:

PS C:\vcpkg> .\vcpkg install openssl --triplet x64-windows
The following packages will be built and installed:
    openssl:x64-windows
Building package openssl:x64-windows...
-- CURRENT_INSTALLED_DIR=C:/vcpkg/installed/x64-windows
-- DOWNLOADS=C:/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/vcpkg/packages/openssl_x64-windows
-- CURRENT_BUILDTREES_DIR=C:/vcpkg/buildtrees/openssl
-- CURRENT_PORT_DIR=C:/vcpkg/ports/openssl/.
-- [download 0% complete]
-- [download 1% complete]
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:103 (file):
  file DOWNLOAD HASH mismatch

    for file: [C:/vcpkg/downloads/strawberry-perl-5.24.1.1-32bit-portable.zip]
      expected hash: [a6e685ea24376f50db5f06c5b46075f1d3be25168fa1f27fa9b02e2ac017826cee62a2b435
6c110075457764de2d11f99d5e0f26]
        actual hash: [3b718638b940ba6c4801ae42d31ad5cc9531f0923448eb0725f474b4ab97bf2da8f24171a7
0dafa6e1e71bd21b28b27c8c0c9019]
             status: [56;"Failure when receiving data from the peer"]

Call Stack (most recent call first):
  ports/openssl/portfile.cmake:9 (vcpkg_find_acquire_program)
  scripts/ports.cmake:73 (include)


Error: Building package openssl:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: openssl:x64-windows
  Vcpkg version: 0.0.79-37b250abb8f25d95a4c4323be8860875bd1e2168

Additionally, attach any relevant sections from the log files above.

Apparently for some weird combination of my work internal network settings and the settings of the http://strawberryperl.com server, I notice that the download connection is reset 5/10 seconds after the beginning of the download, even when downloading the file from a browser, even using an OS different from Windows. I was able to download the file using wget, and I was able to get vcpkg to work my manually extracting the archive in the correct place.

Clearly, this is an issue due to a strange combination of factors that would be difficult to reproduce. Anyway, I opened this issue so that users that have a similar problem can find a workaround.

Furthermore, this kind of problems could be avoided using having mirrors for all archives downloaded in vcpkg_find_acquire_program, for example using vcpkg_download_distfile. Having Microsoft-based mirrors would make vcpkg less sensitive to problem or shortages in third-party servers.

@ras0219-msft ras0219-msft added requires:repro The issue is not currently repro-able category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed labels Apr 14, 2017
@traversaro
Copy link
Contributor Author

Apparently, the issue is due to a problem with my institution firewall with these two files:

In particular the connection was reset during the download. As a workaround, I was able to manually download these two files in vcpkg/downloads using a download manager that supports resuming a download after a reset (I used wget, see http://gnuwin32.sourceforge.net/packages/wget.htm). Once the files are in the downloads directory, vcpkg is able to use them.

I sent a request to the ICT department of my institution to whitelist this two files. Interestingly, the connection reset is related to the contents of the files, so adding new mirrors would not solve the problem, so there is nothing that can be done on this on the vcpkg side (except switching to a download method that supports resume, that is probably out of scope for this issue). For this reason, I think we can close the issue.

@pattacini
Copy link
Contributor

Another possibility could be to resort to web.archive.com.
In particular, click here to download strawberry-perl.

@traversaro
Copy link
Contributor Author

Apparently, the issue is due to a problem with my institution firewall with these two files:

* http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win32/nasm-2.12.02-win32.zip

* http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip

I am not sure if something changed in those server or on our side, but the problems that we had for a long time seems to have disappeared now.

@bluespidernav
Copy link

bluespidernav commented Jun 12, 2020

Hmm maybe its a temporary website issue BUT I'm trying to download: strawberry-perl-5.30.0.1-32bit-portable.zip. Initially this download was being automated by the build of qtwebkit but I could see in the build progress it was stalling here and eventually failed! So I went directly to the strawberry site and attempt to download manually. This is NOT working! It gets only as far as 215Kb! The file is only 144Mb I'm trying again this time in Chrome 0.3 of 144Mb lots of retries estimated 2 days remaining! I have a quite reasonable internet connection and it isn't me. Is the connection between the strawberry web server and the partition where this file resides connected with a low bandwidth media like wet string - it seems like it! Oh dear that 144Mb certainly holds up the build. Ok in Chrome (or any other browser) this download appears to fail, its not appearing to be resumable either. So unless I can download it it can say goodbye to qtwebkit - I don't think so! I'll try again next week. Never mind it must have been a temporary issue as its all back to normal and the file is now downloading correctly. Probably maintenance on the strawberry server!

@traversaro
Copy link
Contributor Author

Hi @bluespidernav, if this is helpful I uploaded the required file in https://github.com/traversaro/vcpkg-download-cache/releases/tag/cache , so if you still have the problem you can download the file from there and copy it manually in the vcpkg's download folder.

@traversaro
Copy link
Contributor Author

This PR will probably help: #11938 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

4 participants