threads / discuss / 49743

Git Slowness on Windows w/o Internet

Subject: Git Slowness on Windows w/o Internet

## tl;dr

4 messages between Nov 2, 2018 and Nov 5, 2018.

replies: 3people: 3as markdown or json

Peter Kostyukov· Nov 2, 2018, 16:10 UTC · lore
Hello,

Wanted to bring to your attention an issue that we discovered on our Windows Jenkins nodes with git scm installed (git.exe). Our Jenkins servers don't have Internet access. It appears that git.exe is trying to connect to various Cloudflare and Akamai CDN instances over the Internet when it first runs and it keeps trying to connect to these CDNs every git.exe execution until it makes a successful attempt. See the screenshot attached with the details.

Enabling Internet access via proxy fixes the issue and git.exe continues to work fast on the next attempts to run git.exe

Is there any configuration setting that can disable this git's behavior or is there any other workaround without allowing Internet access? Otherwise, every git command run on a server without the Internet takes about 30 seconds to complete.

Please advise.

Thanks, Peter CONFIDENTIALITY NOTICE: This is a transmission from Kohl's Department Stores, Inc. and may contain information which is confidential and proprietary. If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited. If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000.

CAUTION: Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received. Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time without any further consent.

brian m. carlson· Nov 3, 2018, 16:44 UTC · re: Peter Kostyukov · lore

Re: Git Slowness on Windows w/o Internet

On Fri, Nov 02, 2018 at 11:10:51AM -0500, Peter Kostyukov wrote:
Show 15 quoted lines
> Wanted to bring to your attention an issue that we discovered on our
> Windows Jenkins nodes with git scm installed (git.exe). Our Jenkins
> servers don't have Internet access. It appears that git.exe is trying
> to connect to various Cloudflare and Akamai CDN instances over the
> Internet when it first runs and it keeps trying to connect to these
> CDNs every git.exe execution until it makes a successful attempt. See
> the screenshot attached with the details.
> 
> Enabling Internet access via proxy fixes the issue and git.exe
> continues to work fast on the next attempts to run git.exe
> 
> Is there any configuration setting that can disable this git's
> behavior or is there any other workaround without allowing Internet
> access? Otherwise, every git command run on a server without the
> Internet takes about 30 seconds to complete.

Git itself doesn't make any attempt to access those systems unless it's configured to do so (e.g. a remote is set up to talk to those systems and fetch or pull is used).

It's possible that you're using a distribution package that performs this behavior, say, to check for updates. I'd recommend that you contact the distributor, which in this case might be Git for Windows, and see if they can tell you more about what's going on. The URL for that project is at https://github.com/git-for-windows/git.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Philip Oakley· Nov 3, 2018, 23:48 UTC · re: brian m. carlson · lore

Re: Git Slowness on Windows w/o Internet

On 03/11/2018 16:44, brian m. carlson wrote:
Show 27 quoted lines
> On Fri, Nov 02, 2018 at 11:10:51AM -0500, Peter Kostyukov wrote:
>> Wanted to bring to your attention an issue that we discovered on our
>> Windows Jenkins nodes with git scm installed (git.exe). Our Jenkins
>> servers don't have Internet access. It appears that git.exe is trying
>> to connect to various Cloudflare and Akamai CDN instances over the
>> Internet when it first runs and it keeps trying to connect to these
>> CDNs every git.exe execution until it makes a successful attempt. See
>> the screenshot attached with the details.
>>
>> Enabling Internet access via proxy fixes the issue and git.exe
>> continues to work fast on the next attempts to run git.exe
>>
>> Is there any configuration setting that can disable this git's
>> behavior or is there any other workaround without allowing Internet
>> access? Otherwise, every git command run on a server without the
>> Internet takes about 30 seconds to complete.
> 
> Git itself doesn't make any attempt to access those systems unless it's
> configured to do so (e.g. a remote is set up to talk to those systems
> and fetch or pull is used).
> 
> It's possible that you're using a distribution package that performs
> this behavior, say, to check for updates.  I'd recommend that you
> contact the distributor, which in this case might be Git for Windows,
> and see if they can tell you more about what's going on.  The URL for
> that project is at https://github.com/git-for-windows/git.
> 

The normal Git for Windows install includes an option to check for updates at a suitable rate. Maybe you are hitting that. It can be switched off.

-- 
Philip
Peter Kostyukov· Nov 5, 2018, 22:11 UTC · re: Philip Oakley · lore

Re: Git Slowness on Windows w/o Internet

Good point. I'll check it out. Thanks for the tip.

Thanks, Peter Thanks,

Peter Kostyukov
Senior Systems Engineer
Kohl's Department Stores - KIC
Office: 262-703-6533
On Sat, Nov 3, 2018 at 6:48 PM Philip Oakley <philipoakley@talktalk.net> wrote:
Show 37 quoted lines
>
>
> On 03/11/2018 16:44, brian m. carlson wrote:
> > On Fri, Nov 02, 2018 at 11:10:51AM -0500, Peter Kostyukov wrote:
> >> Wanted to bring to your attention an issue that we discovered on our
> >> Windows Jenkins nodes with git scm installed (git.exe). Our Jenkins
> >> servers don't have Internet access. It appears that git.exe is trying
> >> to connect to various Cloudflare and Akamai CDN instances over the
> >> Internet when it first runs and it keeps trying to connect to these
> >> CDNs every git.exe execution until it makes a successful attempt. See
> >> the screenshot attached with the details.
> >>
> >> Enabling Internet access via proxy fixes the issue and git.exe
> >> continues to work fast on the next attempts to run git.exe
> >>
> >> Is there any configuration setting that can disable this git's
> >> behavior or is there any other workaround without allowing Internet
> >> access? Otherwise, every git command run on a server without the
> >> Internet takes about 30 seconds to complete.
> >
> > Git itself doesn't make any attempt to access those systems unless it's
> > configured to do so (e.g. a remote is set up to talk to those systems
> > and fetch or pull is used).
> >
> > It's possible that you're using a distribution package that performs
> > this behavior, say, to check for updates.  I'd recommend that you
> > contact the distributor, which in this case might be Git for Windows,
> > and see if they can tell you more about what's going on.  The URL for
> > that project is at https://github.com/git-for-windows/git.
> >
>
> The normal Git for Windows install includes an option to check for
> updates at a suitable rate. Maybe you are hitting that. It can be
> switched off.
>
> --
> Philip

CONFIDENTIALITY NOTICE: This is a transmission from Kohl's Department Stores, Inc. and may contain information which is confidential and proprietary. If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited. If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000.

CAUTION: Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received. Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time without any further consent.

← back to recent threads