How to debug Pkg "failed to connect" issue?

436 views
Skip to first unread message

Arch Robison

unread,
Feb 8, 2016, 12:53:58 PM2/8/16
to julia-users
How do I go about debugging why the Julia package manager can't connect to Github?  I've tried the usual firewall workarounds (see below).  Either of the following works fine:


But within Julia, Pkg.init() fails with:

julia> Pkg.init()
INFO: Initializing package repository /nfs/fx/home/adrobiso/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to connect to github.com: Connection timed out)


I've already have the following variables set: 
git config --global url."https://".insteadOf git://
git config --global http.proxy $HTTP_PROXY

Suggestions?

- Arch

Yichao Yu

unread,
Feb 8, 2016, 12:55:44 PM2/8/16
to Julia Users
On Mon, Feb 8, 2016 at 12:53 PM, Arch Robison <arch.d....@gmail.com> wrote:
> How do I go about debugging why the Julia package manager can't connect to
> Github? I've tried the usual firewall workarounds (see below). Either of
> the following works fine:
>
> git clone https://github.com/JuliaLang/METADATA.jl
>
> git clone git://github.com/JuliaLang/METADATA.jl
>
> But within Julia, Pkg.init() fails with:
>
> julia> Pkg.init()
> INFO: Initializing package repository /nfs/fx/home/adrobiso/.julia/v0.5
> INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
> ERROR: GitError(Code:ERROR, Class:OS, Failed to connect to github.com:
> Connection timed out)

Given the error and that you want to use proxy. Maybe
https://github.com/JuliaLang/julia/issues/13472 ?

Arch Robison

unread,
Feb 9, 2016, 4:17:36 PM2/9/16
to julia-users
Thanks.  The advice in https://github.com/JuliaLang/julia/issues/13472#issuecomment-179454292 worked for me, except that since I was on Ubuntu, I used the following command instead of the yum step:

sudo apt-get install libcurl4-openssl-dev
Reply all
Reply to author
Forward
0 new messages