Cloning gyp fails

Luigi's Avatar

Luigi

15 Jul, 2014 08:50 AM

Hello.
My build script downloads gyp if not installed in a subfolder of the workspace.
Anyway it fails to connect to the gyp repository.
Here is the command:
git clone https://git.chromium.org/external/gyp.git build/gyp

Here is the error:
fatal: unable to access 'https://git.chromium.org/external/gyp.git/': Failed connect to git.chromium.org:443; No error

It look like some kind of firewall blocking the request.
Is there a way I can make the command work?
Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Jul, 2014 09:06 AM

    Feodor Fitsner's Avatar

    There is no firewall for outbound requests.

    Is it sporadic error or it's happening all the time?

    Try changing it to http://

  2. 2 Posted by Luigi on 15 Jul, 2014 12:03 PM

    Luigi's Avatar

    Hi.
    With http it worked!
    Thanks

  3. 3 Posted by Rui Abreu Ferre... on 29 Jan, 2015 11:15 PM

    Rui Abreu Ferreira's Avatar

    I'm seeing the exact same issue when building Neovim - gets a tarball for libuv (that internally gets gyp) - problem is I can't just change the URL. Is there any other way around this?

  4. Support Staff 4 Posted by Feodor Fitsner on 29 Jan, 2015 11:18 PM

    Feodor Fitsner's Avatar

    Is this a public project/repo?

    -Feodor

  5. 5 Posted by Rui Abreu Ferre... on 29 Jan, 2015 11:20 PM

    Rui Abreu Ferreira's Avatar
  6. Support Staff 6 Posted by Feodor Fitsner on 29 Jan, 2015 11:35 PM

    Feodor Fitsner's Avatar

    Will check it out.

    -Feodor

  7. Support Staff 7 Posted by Feodor Fitsner on 30 Jan, 2015 04:42 AM

    Feodor Fitsner's Avatar

    Could you point me to build here https://ci.appveyor.com/project/equalsraf/neovim with that git clone error?

  8. 8 Posted by Rui Abreu Ferre... on 30 Jan, 2015 09:09 AM

    Rui Abreu Ferreira's Avatar
  9. Support Staff 9 Posted by Feodor Fitsner on 30 Jan, 2015 06:17 PM

    Feodor Fitsner's Avatar

    OK, in case this is DNS issue you could try the following trick with updating NICs DNS servers. Add this PowerShell commands to your build:

    Get-DnsClient | Where-Object {$_.InterfaceAlias -like '*ethernet*'} | Set-DnsClientServerAddress -ServerAddresses ("8.8.8.8","8.8.4.4") -PassThru | Get-DnsClientServerAddress
    ipconfig /flushdns
    
  10. 10 Posted by Rui Abreu Ferre... on 30 Jan, 2015 10:06 PM

    Rui Abreu Ferreira's Avatar

    Hi Feodor

    Same error as before

       fatal: unable to access 'https://git.chromium.org/external/gyp.git/': Failed connect to git.chromium.org:443; No error

    And it seems to be specific to that case. That build is also downloading some tarballs over https without issues.

    Full log
        https://ci.appveyor.com/project/equalsraf/neovim

  11. Support Staff 11 Posted by Feodor Fitsner on 30 Jan, 2015 10:09 PM

    Feodor Fitsner's Avatar

    OK, what was the reason of installing your own Git? Maybe this is the issue?

  12. 12 Posted by Rui Abreu Ferre... on 30 Jan, 2015 10:24 PM

    Rui Abreu Ferreira's Avatar

    Ok, here is a temporary fix to force http in git without changing the build, just run the following before building

        git config --global url."http://".insteadOf https://

    Still the https issue is pretty weird. Is it possible there is a firewall along the way that is blocking the connection?

  13. 13 Posted by Rui Abreu Ferre... on 30 Jan, 2015 10:25 PM

    Rui Abreu Ferreira's Avatar

    I only installed my own git after hitting this problem - but I am now using the default version again.

  14. Support Staff 14 Posted by Feodor Fitsner on 30 Jan, 2015 10:28 PM

    Feodor Fitsner's Avatar

    Yes, that's weird. All outbound connections/ports are open.

  15. 15 Posted by Rui Abreu Ferre... on 30 Jan, 2015 10:39 PM

    Rui Abreu Ferreira's Avatar

    The last bit of the message makes it more cryptic "No error"

        fatal: unable to access 'https://git.chromium.org/external/gyp.git/': Failed connect to git.chromium.org:443; No error

    I doubt it is the firewall at the VM/Host. More likely it is in transit. Wild guess - a lot of enterprise grade firewalls have stepped up their SSL filters after the recent vulnerabilities, and kill connections if the protocol version is two low. In some cases they only kill connections from a specific SSL library (openssl/gnutls).

    But this is hard to debug without a packet inspector.

  16. Support Staff 16 Posted by Feodor Fitsner on 30 Jan, 2015 10:44 PM

    Feodor Fitsner's Avatar

    Interesting. I'm just wondering if this error is also reproducible on "Pro" environment which run in a different data center. Would you be able to test it back with "https" if I switch your account to Pro for a day/two?

  17. 17 Posted by Rui Abreu Ferre... on 30 Jan, 2015 10:53 PM

    Rui Abreu Ferreira's Avatar

    Sure. It should just be a matter of removing the git command from the script. Also If it is easier you can just setup any project with a build script as

        git clone https://git.chromium.org/external/gyp.git/

    that should trigger the same issue.

  18. Support Staff 18 Posted by Feodor Fitsner on 30 Jan, 2015 10:57 PM

    Feodor Fitsner's Avatar

    Seems like Azure specific issue. I ran it for 3 times with all success: https://ci.appveyor.com/project/FeodorFitsner/simple-console

  19. 19 Posted by Rui Abreu Ferre... on 30 Jan, 2015 11:46 PM

    Rui Abreu Ferreira's Avatar

    Ok. Here is a minimal project of mine failing the clone

        https://ci.appveyor.com/project/equalsraf/chan42

  20. Support Staff 20 Posted by Feodor Fitsner on 30 Jan, 2015 11:48 PM

    Feodor Fitsner's Avatar

    Do you configure it on UI?

  21. 21 Posted by Rui Abreu Ferre... on 31 Jan, 2015 12:07 AM

    Rui Abreu Ferreira's Avatar

    Yes used the UI. The only thing i did was create a cmd build script with

       git clone https://git.chromium.org/external/gyp.git/

    I did not touch any other option.

  22. Support Staff 22 Posted by Feodor Fitsner on 31 Jan, 2015 12:14 AM

    Feodor Fitsner's Avatar

    Right, this command perfectly works on "Pro" environment. It's definitely something on Azure related to networking.

  23. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac