# Windows 10 -\> Pkg.add -\> ERROR: failed to clone from https://github.com/JuliaRegistries/General.git

**URL:** https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574
**Category:** New to Julia
**Tags:** package, first-steps, github
**Created:** [August 15, 2019, 6:43am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574 "2019-08-15T06:43:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![PhilippG](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@PhilippG](https://discourse.julialang.org/u/PhilippG)
#### Post date: [August 15, 2019, 6:43am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574/1 "2019-08-15T06:43:31Z")

</div>

Hi,  
Julia is awesume, but I have trouble to add packages at my corporate computer. The fixes in the topic below seems to only work at windows 7 machines and I am using windows 10.

> [@ERROR: GitError(Code:ERROR, Class:OS, failed to send request: A connection with the server could not be established )](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192):
>
> I’m trying to install Pkg.add(“DataFrames”) but I get the following message. Any idea what could be the problem? INFO: Cloning METADATA from [https://github.com/JuliaLang/METADATA.jl](https://github.com/JuliaLang/METADATA.jl) ERROR: GitError(Code:ERROR, Class:OS, failed to send request: A connection with the server could not be established ) Stacktrace: [1] macro expansion at .\libgit2\error.jl:99 [inlined] [2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl:276 [3] #clone#100(::String, ::Bool, ::P…

Is there someone with the same problem who has already solved it? At home it works (also Windows 10).

julia\> Pkg.add(“IJulia”)  
Cloning default registries into `C:\Users\gerischerp\.julia`  
Cloning registry from “[GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)”  
ERROR: failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:OS, failed to send request: Das Zeitlimit für den Vorgang wurde erreicht.  
)  
Stacktrace:  
[1] pkgerror(::String) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:120  
[2] #clone#3(::String, ::Base.Iterators.Pairs{Symbol,LibGit2.CachedCredentials,Tuple{Symbol},NamedTuple{(:credentials,),Tuple{LibGit2.CachedCredentials}}}, ::Function, ::String, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\GitTools.jl:111  
[3] (::getfield(Pkg.GitTools, Symbol(“#kw##clone”)))(::NamedTuple{(:header, :credentials),Tuple{String,LibGit2.CachedCredentials}}, ::typeof(Pkg.GitTools.clone), ::String, ::String) at .\none:0  
[4] (::getfield(Pkg.Types, Symbol(“##87#89”)))(::LibGit2.CachedCredentials) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:1103  
[5] shred!(::getfield(Pkg.Types, Symbol(“##87#89”)), ::LibGit2.CachedCredentials) at .\secretbuffer.jl:184  
[6] clone\_or\_cp\_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:1102  
[7] clone\_or\_cp\_registries at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:1087 [inlined]  
[8] clone\_default\_registries() at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:1037  
[9] find\_registered!(::Pkg.Types.EnvCache, ::Array{String,1}, ::Array{Base.UUID,1}) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:1312  
[10] registry\_resolve!(::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:949  
[11] #add\_or\_develop#17(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:52  
[12] #add\_or\_develop at .\none:0 [inlined]  
[13] #add\_or\_develop#16 at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:36 [inlined]  
[14] #add\_or\_develop at .\none:0 [inlined]  
[15] #add\_or\_develop#13 at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:34 [inlined]  
[16] #add\_or\_develop at .\none:0 [inlined]  
[17] #add\_or\_develop#12(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:33  
[18] #add\_or\_develop at .\none:0 [inlined]  
[19] #add#22 at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:64 [inlined]  
[20] add(::String) at C:\cygwin\home\Administrator\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:64  
[21] top-level scope at none:0

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [August 15, 2019, 7:58am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574/2 "2019-08-15T07:58:44Z")

</div>

Maybe you are behind a proxy. You can search for git and proxy and you will find some solution.  
It looks like:

```julia
run(`git config --global http.proxy proxyHost:proxyPort`)

```

But there is probably more to alter which you have to try and error.

---

<div class="post-metadata">

### Author: ![PhilippG](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@PhilippG](https://discourse.julialang.org/u/PhilippG)
#### Post date: [August 15, 2019, 8:43am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574/3 "2019-08-15T08:43:21Z")

</div>

Thants, that was the solution!

---

<div class="post-metadata">

### Author: ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)
#### Post date: [April 20, 2020, 11:42pm UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574/4 "2020-04-20T23:42:22Z")

</div>

Similar problem with Windows 10 and Julia 0.4.1, it was solved by doing: `git config --global --unset http.proxy`

---

<div class="post-metadata">

### Author: ![pastit](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@pastit](https://discourse.julialang.org/u/pastit)
#### Post date: [July 30, 2020, 10:05am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574/5 "2020-07-30T10:05:29Z")

</div>

I’m using windows 10 with the same error. All i did was turn on my PC’s VPN software. Then it worked straight away. Took a few minutes and i thought it had hung a few times, but it worked!  
With much hair pulling beforehand.
