# Update problems behind a corporate proxy with user and pass

**URL:** <https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560>\
**Category:** General Usage\
**Tags:** package\
**Created:** [March 9, 2017, 11:23am UTC](https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560 "2017-03-09T11:23:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Hecht](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_hecht/32/38468_2.png) [@Michael\_Hecht](https://discourse.julialang.org/u/Michael_Hecht)\
**Post date:** [March 9, 2017, 11:23am UTC](https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560/1 "2017-03-09T11:23:34Z")

</div>

Hello,

I know this question was asked a hundred times in the web, but I did’nt find any solution. So I ask again for my special situation:

I istalled a fresh Julia 0.5.1 64-bit on my windows 7 computer. There is no program “git” or “git.exe” on the computer (which is part of several soutions) and it did not come with Julia.

If I call e.g. Pkg.status() (or any other Pkg related command) then I get:

```julia

INFO: Initializing package repository C:\Users\di29394\.julia\v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to set proxy: Falscher Parameter.
)
 in macro expansion at .\libgit2\error.jl:99 [inlined]
 in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl
:191
 in #clone#112(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredent
ials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:327
 in (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::St
ring) at .\<missing>:0
 in (::Base.Pkg.Dir.##4#6{String,String})() at .\pkg\dir.jl:49
 in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at .\file.jl:48
 in init(::String, ::String) at .\pkg\dir.jl:47
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Base.TTY, ::Vararg{Base.TTY,N}) a
t .\pkg\dir.jl:28
 in status(::Base.TTY) at .\pkg\pkg.jl:136 (repeats 2 times)

```

The environment variables HTTP\_PROXY, HTTPS\_PROXY, FTP\_PROXY,http\_proxy,https\_proxy and ftp\_proxy are set in a proper way, i.e. [http://user:pass@proxy](http://user:pass@proxy):port and work well e.g. for all of my Python installations.  
I also set C:/users/user/.gitconfig to:

```julia
[http]
    	proxy = proxy:port
[https]
    	proxy = proxy:port
[url "https://"]
    	insteadof = git://

```

and also tried to set

```julia
[http]
    	proxy = user:pass@proxy:port
[https]
    	proxy = user:pass@proxy:port
[url "https://"]
    	insteadof = git://

```

The error is always almost the same.

What to do now?

P.S.: user, pass, proxy and port were set to the actual values 🙂

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [March 10, 2017, 10:57am UTC](https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560/2 "2017-03-10T10:57:59Z")

</div>

Maybe this is relevant:

> [@Pkg.add() through proxy fails on Julia 0.5, Windows](https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687/16):
>
> I think the libgit2 version included in 0.5 just missed the [libgit2 commit](https://github.com/libgit2/libgit2/pull/3110) adding support for parsing credentials from .gitconfig. So there’s a fairly good chance this will work on master/0.6.

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [March 18, 2017, 11:33pm UTC](https://discourse.julialang.org/t/update-problems-behind-a-corporate-proxy-with-user-and-pass/2560/3 "2017-03-18T23:33:36Z")

</div>

Should now work in 0.6 with `.gitconfig` or environment variables.

[https://github.com/JuliaLang/julia/issues/20948#issuecomment-287306113](https://github.com/JuliaLang/julia/issues/20948#issuecomment-287306113)
