# GitError when using Pkg.status or Pkg.add

**URL:** <https://discourse.julialang.org/t/giterror-when-using-pkg-status-or-pkg-add/5357>\
**Category:** New to Julia\
**Tags:** packages, error\
**Created:** [August 13, 2017, 3:25pm UTC](https://discourse.julialang.org/t/giterror-when-using-pkg-status-or-pkg-add/5357 "2017-08-13T15:25:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucasLang](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@LucasLang](https://discourse.julialang.org/u/LucasLang)\
**Post date:** [August 13, 2017, 3:25pm UTC](https://discourse.julialang.org/t/giterror-when-using-pkg-status-or-pkg-add/5357/1 "2017-08-13T15:25:51Z")

</div>

Hi everybody,

I’m trying to add a package, but whenever I call Pkg.add or Pkg.status in the REPL I get the following output:

INFO: Initializing package repository /home/lucas/.julia/v0.6  
INFO: Cloning METADATA from [https://github.com/JuliaLang/METADATA.jl](https://github.com/JuliaLang/METADATA.jl)  
ERROR: GitError(Code:ERROR, Class:Net, curl error: Failed to connect to localhost port 8080: Connection refused  
)  
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, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at ./libgit2/libgit2.jl:562  
[4] (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::String) at ./:0  
[5] (::Base.Pkg.Dir.##8#10{String,String})() at ./pkg/dir.jl:55  
[6] cd(::Base.Pkg.Dir.##8#10{String,String}, ::String) at ./file.jl:70  
[7] init(::String, ::String) at ./pkg/dir.jl:53  
[8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at ./pkg/dir.jl:28  
[9] add(::String) at ./pkg/pkg.jl:117

Does anybody have an idea what this means and how to resolve the problem? Thanks!

---

<div class="post-metadata">

**Author:** ![traktofon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/traktofon/32/591_2.png) [@traktofon](https://discourse.julialang.org/u/traktofon)\
**Post date:** [August 14, 2017, 2:22am UTC](https://discourse.julialang.org/t/giterror-when-using-pkg-status-or-pkg-add/5357/2 "2017-08-14T02:22:20Z")

</div>

> [@LucasLang](#):
>
> curl error: Failed to connect to localhost port 8080: Connection refused

Looks like your system is trying to access github through a proxy. Check your system’s proxy settings.
