Azure / azure-sdk-for-c

This repository is for active development of the Azure SDK for Embedded C. For consumers of the SDK we recommend visiting our versioned developer docs at https://azure.github.io/azure-sdk-for-c.
MIT License
223 stars 118 forks source link

Intermittent vcpkg bootstrap failure: "Failed to download file", because "Timeout was reached" when downloading zlib from sourcefourge #2256

Open ahsonkhan opened 2 years ago

ahsonkhan commented 2 years ago

From an unrelated PR: https://github.com/Azure/azure-sdk-for-c/pull/2250

Filing the issue to track how frequently we hit this issue to motivate further investigation.

https://dev.azure.com/azure-sdk/public/_build/results?buildId=1678165&view=logs&j=a5fc39c3-d79c-51c5-1c7e-826b06cf306e&t=903cd952-2868-525e-140c-2f3f9f61951e

2022-06-30T18:58:53.9350545Z Building vcpkg.exe... done. 2022-06-30T18:58:53.9350926Z 2022-06-30T18:58:53.9360261Z Telemetry 2022-06-30T18:58:53.9361203Z --------- 2022-06-30T18:58:53.9361946Z vcpkg collects usage data in order to help us improve your experience. 2022-06-30T18:58:53.9362809Z The data collected by Microsoft is anonymous. 2022-06-30T18:58:53.9363611Z You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, 2022-06-30T18:58:53.9364587Z passing --disable-metrics to vcpkg on the command line, 2022-06-30T18:58:53.9365956Z or by setting the VCPKG_DISABLE_METRICS environment variable. 2022-06-30T18:58:53.9366518Z 2022-06-30T18:58:53.9367145Z Read more about vcpkg telemetry at docs/about/privacy.md 2022-06-30T18:58:55.9398406Z Computing installation plan... 2022-06-30T18:58:59.2652935Z The following packages will be built and installed: 2022-06-30T18:58:59.2654183Z cmocka[core]:x64-windows-static 2022-06-30T18:58:59.2654679Z curl[core,non-http,ssl,sspi,winssl]:x64-windows-static 2022-06-30T18:58:59.2655165Z openssl[core]:x64-windows-static 2022-06-30T18:58:59.2655667Z openssl-windows[core]:x64-windows-static 2022-06-30T18:58:59.2656388Z paho-mqtt[core]:x64-windows-static 2022-06-30T18:58:59.2656902Z zlib[core]:x64-windows-static 2022-06-30T18:58:59.2657587Z Additional packages () will be modified to complete this operation. 2022-06-30T18:58:59.2658315Z A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1... 2022-06-30T18:58:59.2658908Z Downloading powershell-core... 2022-06-30T18:58:59.2659568Z https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> D:\a_work_temp\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip 2022-06-30T18:58:59.2660220Z Extracting powershell-core... 2022-06-30T18:58:59.2660705Z A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0... 2022-06-30T18:58:59.2661483Z Downloading 7zip... 2022-06-30T18:58:59.2662059Z https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> D:\a_work_temp\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg 2022-06-30T18:58:59.2662644Z Extracting 7zip... 2022-06-30T18:59:07.6673235Z Starting package 1/6: cmocka:x64-windows-static 2022-06-30T18:59:07.6674844Z Building package cmocka[core]:x64-windows-static... 2022-06-30T19:00:02.5159155Z -- Downloading https://gitlab.com/cmocka/cmocka/-/archive/cmocka-1.1.5/cmocka-cmocka-1.1.5.tar.gz... 2022-06-30T19:00:02.5161165Z -- Extracting source D:/a/_work/_temp/vcpkg/downloads/cmocka-cmocka-cmocka-1.1.5.tar.gz 2022-06-30T19:00:02.5162103Z -- Applying patch shared-lib.patch 2022-06-30T19:00:02.5162832Z -- Applying patch static-lib.patch 2022-06-30T19:00:02.5163563Z -- Applying patch fix-uwp.patch 2022-06-30T19:00:02.5164440Z -- Using source at D:/a/_work/_temp/vcpkg/buildtrees/cmocka/src/ocka-1.1.5-4f6f21534e 2022-06-30T19:00:02.5165314Z -- Configuring x64-windows-static 2022-06-30T19:00:02.5166049Z -- Building x64-windows-static-dbg 2022-06-30T19:00:02.5167123Z -- Building x64-windows-static-rel 2022-06-30T19:00:02.5168029Z -- Performing post-build validation 2022-06-30T19:00:03.4288049Z -- Performing post-build validation done 2022-06-30T19:00:03.4289460Z Building package cmocka[core]:x64-windows-static... done 2022-06-30T19:00:03.4290318Z Installing package cmocka[core]:x64-windows-static... 2022-06-30T19:00:03.4291053Z Installing package cmocka[core]:x64-windows-static... done 2022-06-30T19:00:03.4291762Z Elapsed time for package cmocka:x64-windows-static: 55.75 s 2022-06-30T19:00:03.4292465Z Starting package 2/6: zlib:x64-windows-static 2022-06-30T19:00:03.4293120Z Building package zlib[core]:x64-windows-static... 2022-06-30T19:00:29.4773641Z -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... 2022-06-30T19:00:29.4775176Z -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... Failed. Status: 22;"HTTP response code said error" 2022-06-30T19:00:29.4776098Z -- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz... 2022-06-30T19:00:29.4776934Z -- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz... Failed. Status: 28;"Timeout was reached" 2022-06-30T19:00:29.4777967Z CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message): 2022-06-30T19:00:29.4778689Z
2022-06-30T19:00:29.4779297Z Failed to download file. 2022-06-30T19:00:29.4780030Z If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment 2022-06-30T19:00:29.4782270Z variables to "https://user:***@your-proxy-ip-address:port/". 2022-06-30T19:00:29.4783413Z Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues 2022-06-30T19:00:29.4784183Z 2022-06-30T19:00:29.4784815Z Call Stack (most recent call first): 2022-06-30T19:00:29.4785455Z ports/zlib/portfile.cmake:5 (vcpkg_download_distfile) 2022-06-30T19:00:29.4786185Z scripts/ports.cmake:76 (include) 2022-06-30T19:00:29.4786557Z 2022-06-30T19:00:29.4786906Z 2022-06-30T19:00:29.4787532Z Error: Building package zlib:x64-windows-static failed with: BUILD_FAILED 2022-06-30T19:00:29.4789147Z Please ensure you're using the latest portfiles with .\vcpkg update, then 2022-06-30T19:00:29.4791235Z submit an issue at https://github.com/Microsoft/vcpkg/issues including: 2022-06-30T19:00:29.4792148Z Package: zlib:x64-windows-static 2022-06-30T19:00:29.4792716Z Vcpkg version: 2020.02.04-nohash 2022-06-30T19:00:29.4793086Z 2022-06-30T19:00:29.4793747Z Additionally, attach any relevant sections from the log files above. 2022-06-30T19:00:30.5521569Z ##[error]PowerShell exited with code '1'. 2022-06-30T19:00:30.5540986Z ##[section]Finishing: Vcpkg Bootstrap and Install

cc @danieljurek

ahsonkhan commented 2 years ago

Failed again: https://dev.azure.com/azure-sdk/public/_build/results?buildId=1719016&view=logs&j=a5fc39c3-d79c-51c5-1c7e-826b06cf306e&t=903cd952-2868-525e-140c-2f3f9f61951e&l=244

2022-07-19T18:26:03.2827856Z Elapsed time for package cmocka:x64-windows-static: 48.98 s
2022-07-19T18:26:03.2828616Z Starting package 2/6: zlib:x64-windows-static
2022-07-19T18:26:03.2829352Z Building package zlib[core]:x64-windows-static...
2022-07-19T18:26:03.6899281Z -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
2022-07-19T18:26:03.6900775Z -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... Failed. Status: 22;"HTTP response code said error"
2022-07-19T18:26:03.6901888Z -- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz...
2022-07-19T18:26:03.6902829Z -- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz... Failed. Status: 35;"SSL connect error"
2022-07-19T18:26:03.6903838Z CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message):
2022-07-19T18:26:03.6904644Z       
2022-07-19T18:26:03.6905238Z       Failed to download file.
2022-07-19T18:26:03.6906108Z       If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
2022-07-19T18:26:03.6907492Z       variables to "https://user:***@your-proxy-ip-address:port/".
2022-07-19T18:26:03.6908504Z       Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
2022-07-19T18:26:03.6908880Z 
2022-07-19T18:26:03.6909314Z Call Stack (most recent call first):
2022-07-19T18:26:03.6909923Z   ports/zlib/portfile.cmake:5 (vcpkg_download_distfile)
2022-07-19T18:26:03.6910516Z   scripts/ports.cmake:76 (include)
2022-07-19T18:26:03.6911014Z 
2022-07-19T18:26:03.6911192Z 
2022-07-19T18:26:03.6912288Z Error: Building package zlib:x64-windows-static failed with: BUILD_FAILED
2022-07-19T18:26:03.6913797Z Please ensure you're using the latest portfiles with `.\vcpkg update`, then
2022-07-19T18:26:03.6914942Z submit an issue at https://github.com/Microsoft/vcpkg/issues including:
2022-07-19T18:26:03.6915658Z   Package: zlib:x64-windows-static
2022-07-19T18:26:03.6916271Z   Vcpkg version: 2020.02.04-nohash
2022-07-19T18:26:03.6916633Z 
2022-07-19T18:26:03.6917225Z Additionally, attach any relevant sections from the log files above.
2022-07-19T18:26:03.8819337Z ##[error]PowerShell exited with code '1'.
2022-07-19T18:26:03.8866242Z ##[section]Finishing: Vcpkg Bootstrap and Install