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

Transient failure for strawberryperl.com #3973

Closed
atulkumarpccs opened this issue Jul 30, 2018 · 5 comments
Closed

Transient failure for strawberryperl.com #3973

atulkumarpccs opened this issue Jul 30, 2018 · 5 comments

Comments

@atulkumarpccs
Copy link

PS C:\Users\Atul\Documents\Term 2_Udacity\vcpkg> .\vcpkg install openssl zlib libuv
The following packages will be built and installed:
libuv[core]:x86-windows
openssl[core]:x86-windows

  • openssl-windows[core]:x86-windows
    zlib[core]:x86-windows
    Additional packages (*) will be modified to complete this operation.
    Starting package 1/4: openssl-windows:x86-windows
    Building package openssl-windows[core]:x86-windows...
    A suitable version of cmake was not found (required v3.11.4). Downloading portable cmake v3.11.4...
    Downloading cmake...
    Downloading cmake... done.
    Extracting cmake...
    A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
    Downloading 7zip...
    Downloading 7zip... done.
    Extracting 7zip...
    A suitable version of nuget was not found (required v4.6.2). Downloading portable nuget v4.6.2...
    Downloading nuget...
    Downloading nuget... done.
    Extracting 7zip... done.
    Extracting cmake... done.
    -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip...
    -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip... Failed. Status: 6;"Couldn't resolve host name"
    CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:151 (message):

    Failed to download file.
    If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
    variables to "https://user:password@your-proxy-ip-address:port/".
    Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
scripts/cmake/vcpkg_find_acquire_program.cmake:217 (vcpkg_download_distfile)
ports/openssl-windows/portfile.cmake:9 (vcpkg_find_acquire_program)
scripts/ports.cmake:71 (include)

Error: Building package openssl-windows:x86-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-windows:x86-windows
Vcpkg version: 0.0.113-nohash

Additionally, attach any relevant sections from the log files above.
PS C:\Users\Atul\Documents\Term 2_Udacity\vcpkg> .\vcpkg update
Using local portfile versions. To update the local portfiles, use git pull.
No packages need updating.
PS C:\Users\Atul\Documents\Term 2_Udacity\vcpkg> git pull
Already up to date.
PS C:\Users\Atul\Documents\Term 2_Udacity\vcpkg>

@MVoz
Copy link
Contributor

MVoz commented Jul 30, 2018

proxy ?

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731131(v=ws.10)#BKMK_2

netsh winhttp show proxy
netsh winhttp reset proxy

reg

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings

SecureProtocols - SSL\TLS

https://support.microsoft.com/en-us/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-a-default-secure-protocols-in

@coryan
Copy link
Contributor

coryan commented Jul 30, 2018

I do not think this is a problem with proxy settings. First http://strawberryperl.com/ seems to be down:

http://www.isitdownrightnow.com/strawberryperl.com.html

Second, I am not using a proxy:

# netsh winhttp show proxy

Current WinHTTP proxy settings:

    Direct access (no proxy server).

@Stayer
Copy link

Stayer commented Jul 30, 2018

Site is down, can't connect to it

@traversaro
Copy link
Contributor

Tangentially related (in that the case the problem was not the site downtime): #932 .

coryan added a commit to googleapis/google-cloud-cpp that referenced this issue Jul 31, 2018
Today was not a good day.  The Windows build broke over the weekend (maybe
late last week, but I did not notice until the weekend).

This morning I could not even troubleshoot the problem because `strawberryperl.com`
was down, and we use that (indirectly) to build openssl on Windows:

microsoft/vcpkg#3973

I tried to do other stuff, without success. Late in the morning the site was back up.
At first, I thought it was just a matter of adapting to the newer protobuf (3.6.0) that
we got as part of a regular vcpkg update:

microsoft/vcpkg@c95b6bf

Well, the changes I made in our `cmake/*` files (included in this PR) did fix the build,
and look like useful changes.  But then the unit tests would not pass because of:

protocolbuffers/protobuf#4773

Which is "Not Good"[tm].  I decided to revert the vcpkg version for now, that got the
tests to compile and pass on my Windows machine.  The programming gods wanted
to toy with this mortal today. Because the `.appveyor.yml` file was not properly clearing
the cache, and the builds on appveyor.com still used the protobuf 3.6 artifacts already
cached there.

BTW, this is probably why the builds did not break immediately: vcpkg reused the cached
versions even other stuff had changed.  Our builds continued to work after that commit
made it through.

I think all the necessary changes are in now.  I will commute home and fix anything else
that is broken when I get there.  May the programming gods be kind to you, oh faithful
reviewer.

* Use targets in add_custom_command.

CMake automatically expands targets to the correct generator
expression in add_custom_command, no need for generator
expressions.

* Set missing paths for PROTOBUF_IMPORT_DIRS.

Depending on your version of CMake you get PROTOBUF_IMPORT_DIRS,
or Protobuf_IMPORT_DIRS, or nothing:

https://cmake.org/cmake/help/v3.10/module/FindProtobuf.html
https://cmake.org/cmake/help/v3.5/module/FindProtobuf.html

Make an educated guess in the file dealing with such nonsense.

* Pin vcpkg to an older version.

The newer version includes protobuf-3.6.0 which is broken on
Windows.
@ras0219-msft ras0219-msft changed the title Error: Building package openssl-windows:x86-windows failed with: BUILD_FAILED Transient failure for strawberryperl.com Aug 8, 2018
@ras0219-msft
Copy link
Contributor

ras0219-msft commented Aug 8, 2018

The website appears to be back up for now; we will look into a longer-term solution for the problem in the future. (Duplicate of #3977)

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

6 participants