Bug description:
After cloning the repository to my local machine and running the bootstrap-vcpkg.bat, I cannot install anything with vcpkg. There is the following error:
Computing installation plan...
A suitable version of cmake was not found (required v3.14.0). Downloading portable cmake v3.14.0...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-win32-x86.zip -> C:\vcpkg\downloads\cmake-3.14.0-win32-x86.zip
WinHttpSendRequest() failed: 12007
In the downloads directory, a 0-bytes-file cmake-3.14.0-win32-x86.zip.part is created.
I have tried running the program from cmd and powershell, with and without administrator privilegues. I also tried disabling my antivirus in case it's blocking something. Nothing changed.
Environment
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/microsoft/vcpkg.gitcd vcpkg.\bootstrap-vcpkg.bat.\vcpkg.exe install sqlite3 (or any other library)Failure logs
See bug description. I have not found anything helpful about the error 12007 when searching in the internet.
Edit:
I have also tried manually downloading the zip file from https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-win32-x86.zip (which worked without any problems), saving it to the downloads directory and extracting it to downloads\tools\cmake-3.14.0-windows, which led to the following output when running the .\vcpkg.exe install sqlite3 command:
Computing installation plan...
The following packages will be built and installed:
sqlite3[core]:x86-windows
A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> C:\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip
WinHttpSendRequest() failed: 12007
https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip, saved in downloads and extracted to downloads\tools\powershell-core-6.2.1-windows. Next thing it can't download with the same error is git. https://github.com/git-for-windows/git/releases/download/v2.26.2.windows.1/PortableGit-2.26.2-32-bit.7z.exe, saved in downloads and extracted to downloads\tools\git-2.26.2-1-windowsNow when attempting to install sqlite3, it shows the following and seems to hang forever:
Computing installation plan...
The following packages will be built and installed:
sqlite3[core]:x86-windows
Starting package 1/1: sqlite3:x86-windows
Building package sqlite3[core]:x86-windows...
Another edit:
It actually finished installing the library after several minutes. So I believe I got it working now.
Interestingly, it seemed to have no trouble with
Downloading https://sqlite.org/2020/sqlite-amalgamation-3310100.zip...
Still I think I will leave this open because of the weird error when the program tries to download its tools.
Regarding the first issue, see https://github.com/microsoft/vcpkg/issues/7207
Regarding the second issue,
Now when attempting to install sqlite3, it shows the following and seems to hang forever:
I also have the same problem in Windows since a couple of weeks: vcpkg looks hanged for a long time, then finally starts. Any hint on how to diagnose it?
>
Regarding the first issue, see #7207
Oh, wow: I actually stumbled upon that before I created this issue, but I didn't see the relation (since in that issue vcpkg actually started to try installing the library), but now that I read it again, the problem looks similar indeed.
Just notice that the error codes are different as well (for me it always said 12007 and not 12002)
>
I also have the same problem in Windows since a couple of weeks: vcpkg looks hanged for a long time, then finally starts. Any hint on how to diagnose it?
I have no idea why this is. I personally just started using vcpkg.
All I can do is confirm that installations take quite a long time:
Elapsed time for package poco:x86-windows: 22.23 min
https://github.com/microsoft/vcpkg/issues/10468
Yes, and as you know there are no psychics here, attach log files
@cenit @Olgabrezel
Set these 2 environment variables before running vcpkg and the hang in VS2019 stops.
set VSCMD_SKIP_SENDTELEMETRY=1set VCPKG_KEEP_ENV_VARS=VSCMD_SKIP_SENDTELEMETRYYou can check by opening cmd or powershell in <vcpkg-root>
.\vcpkg.exe env
set VSCMD_SKIP_SENDTELEMENTRY
and you should get:
VSCMD_SKIP_SENDTELEMETRY=1
As @Voskrese mentions, you can read #10468 to get the full explanation :)
Thanks @Voskrese
Thank you for the link for the discussion. And great that many people were already on it!!
Hi @strega-nil
Could you please help take a look about this issue?
I unfortunately don't know anything about this; can @ras0219-msft look at this?
Most helpful comment
https://github.com/microsoft/vcpkg/issues/10468