tag:help.appveyor.com,2012-11-13:/discussions/problems/539-cloning-gyp-failsAppVeyor: Discussion 2018-08-25T01:53:39Ztag:help.appveyor.com,2012-11-13:Comment/337803122014-07-15T09:06:35Z2014-07-15T09:06:35ZCloning gyp fails<div><p>There is no firewall for outbound requests.</p>
<p>Is it sporadic error or it's happening all the time?</p>
<p>Try changing it to <code>http://</code></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122014-07-15T12:03:07Z2014-07-15T12:03:08ZCloning gyp fails<div><p>Hi.<br>
With http it worked!<br>
Thanks</p></div>Luigitag:help.appveyor.com,2012-11-13:Comment/337803122015-01-29T23:15:07Z2015-01-29T23:15:10ZCloning gyp fails<div><p>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?</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-29T23:18:26Z2015-01-29T23:18:26ZCloning gyp fails<div><p>Is this a public project/repo?</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-29T23:20:36Z2015-01-29T23:20:36ZCloning gyp fails<div><p>Yes. Here <a href=
"https://ci.appveyor.com/project/equalsraf/neovim">https://ci.appveyor.com/project/equalsraf/neovim</a></p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-29T23:35:42Z2015-01-29T23:35:42ZCloning gyp fails<div><p>Will check it out.</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T04:42:44Z2015-01-30T04:42:44ZCloning gyp fails<div><p>Could you point me to build here <a href=
"https://ci.appveyor.com/project/equalsraf/neovim">https://ci.appveyor.com/project/equalsraf/neovim</a>
with that <code>git clone</code> error?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T09:09:54Z2015-01-30T09:09:55ZCloning gyp fails<div><p>This one (or older ones)</p>
<p><a href=
"https://ci.appveyor.com/project/equalsraf/neovim/build/9-tb-mingw">
https://ci.appveyor.com/project/equalsraf/neovim/build/9-tb-mingw</a></p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T18:17:18Z2015-01-30T18:17:18ZCloning gyp fails<div><p>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:</p>
<pre>
<code>Get-DnsClient | Where-Object {$_.InterfaceAlias -like '*ethernet*'} | Set-DnsClientServerAddress -ServerAddresses ("8.8.8.8","8.8.4.4") -PassThru | Get-DnsClientServerAddress
ipconfig /flushdns</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:06:23Z2015-01-30T22:06:24ZCloning gyp fails<div><p>Hi Feodor</p>
<p>Same error as before</p>
<p>fatal: unable to access '<a href=
"https://git.chromium.org/external/gyp.git/&#39">https://git.chromium.org/external/gyp.git/&#39</a>;:
Failed connect to git.chromium.org:443; No error</p>
<p>And it seems to be specific to that case. That build is also
downloading some tarballs over https without issues.</p>
<p>Full log<br>
<a href=
"https://ci.appveyor.com/project/equalsraf/neovim">https://ci.appveyor.com/project/equalsraf/neovim</a></p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:09:47Z2015-01-30T22:09:47ZCloning gyp fails<div><p>OK, what was the reason of installing your own Git? Maybe this
is the issue?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:24:32Z2015-01-30T22:24:32ZCloning gyp fails<div><p>Ok, here is a temporary fix to force http in git without
changing the build, just run the following before building</p>
<pre>
<code>git config --global url."http://".insteadOf https://</code>
</pre>
<p>Still the https issue is pretty weird. Is it possible there is a
firewall along the way that is blocking the connection?</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:25:53Z2015-01-30T22:25:53ZCloning gyp fails<div><p>I only installed my own git after hitting this problem - but I
am now using the default version again.</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:28:45Z2015-01-30T22:28:45ZCloning gyp fails<div><p>Yes, that's weird. All outbound connections/ports are open.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:39:22Z2015-01-30T22:39:24ZCloning gyp fails<div><p>The last bit of the message makes it more cryptic "No error"</p>
<pre>
<code>fatal: unable to access 'https://git.chromium.org/external/gyp.git/': Failed connect to git.chromium.org:443; No error</code>
</pre>
<p>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).</p>
<p>But this is hard to debug without a packet inspector.</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:44:06Z2015-01-30T22:44:06ZCloning gyp fails<div><p>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?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:53:32Z2015-01-30T22:53:34ZCloning gyp fails<div><p>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</p>
<pre>
<code>git clone https://git.chromium.org/external/gyp.git/</code>
</pre>
<p>that should trigger the same issue.</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T22:57:44Z2015-01-30T22:57:44ZCloning gyp fails<div><p>Seems like Azure specific issue. I ran it for 3 times with all
success: <a href=
"https://ci.appveyor.com/project/FeodorFitsner/simple-console">https://ci.appveyor.com/project/FeodorFitsner/simple-console</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T23:46:11Z2015-01-30T23:46:12ZCloning gyp fails<div><p>Ok. Here is a minimal project of mine failing the clone</p>
<pre>
<code>https://ci.appveyor.com/project/equalsraf/chan42</code>
</pre></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-30T23:48:09Z2015-01-30T23:48:09ZCloning gyp fails<div><p>Do you configure it on UI?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/337803122015-01-31T00:07:25Z2015-01-31T00:07:27ZCloning gyp fails<div><p>Yes used the UI. The only thing i did was create a cmd build
script with</p>
<p>git clone <a href=
"https://git.chromium.org/external/gyp.git/">https://git.chromium.org/external/gyp.git/</a></p>
<p>I did not touch any other option.</p></div>Rui Abreu Ferreiratag:help.appveyor.com,2012-11-13:Comment/337803122015-01-31T00:14:22Z2015-01-31T00:14:22ZCloning gyp fails<div><p>Right, this command perfectly works on "Pro" environment. It's
definitely something on Azure related to networking.</p></div>Feodor Fitsner