Hi,
I get the following error when trying to install a package for a private repository when SSHing to a sever through a VPN connection.
Stacktrace included below. Any ideas. Is it a git issue?
This installs fine when I clean install Julia and run without a VPN connection.
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.1.0 (2019-01-21)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(v1.1) pkg> add https://github.com/UserName/PrivRepo
Updating git-repo `https://github.com/UserName/PrivRepo`
Username for 'https://github.com': email@emailadress.com
Password for 'https://email@emailadress.com':
ERROR: GitError(Code:EUNBORNBRANCH, Class:Reference, reference
'refs/heads/master' not found)
Stacktrace:
[1] macro expansion at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/error.jl:101
[inlined]
[2] head(::LibGit2.GitRepo) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/reference.jl:44
[3] branch(::LibGit2.GitRepo) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/LibGit2.jl:368
[4] #handle_repos_add!#61(::Bool, ::Nothing, ::Function,
::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:744
[5] #handle_repos_add! at ./none:0 [inlined]
[6] #add_or_develop#15(::Symbol, ::Bool,
::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},
::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:42
[7] (::getfield(Pkg.API,
Symbol("#kw##add_or_develop")))(::NamedTuple{(:mode,),Tuple{Symbol}},
::typeof(Pkg.API.add_or_develop), ::Pkg.Types.Context,
::Array{Pkg.Types.PackageSpec,1}) at ./none:0
[8] do_add!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1},
::Dict{Symbol,Any}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:659
[9] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},
::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at
./essentials.jl:742
[10] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
[11] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:561
[12] #do_cmd#30(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:536
[13] do_cmd at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:532
[inlined]
[14] (::getfield(Pkg.REPLMode,
Symbol("##48#51")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState,
::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:967
[15] #invokelatest#1 at ./essentials.jl:742 [inlined]
[16] invokelatest at ./essentials.jl:741 [inlined]
[17] run_interface(::REPL.Terminals.TextTerminal,
::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:2273
[18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:1035
[19] run_repl(::REPL.AbstractREPL, ::Any) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:192
[20] (::getfield(Base,
Symbol("##734#736")){Bool,Bool,Bool,Bool})(::Module) at
./client.jl:362
[21] #invokelatest#1 at ./essentials.jl:742 [inlined]
[22] invokelatest at ./essentials.jl:741 [inlined]
[23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
[24] exec_options(::Base.JLOptions) at ./client.jl:284
[25] _start() at ./client.jl:436
(v1.1) pkg> add https://github.com/UserName/PrivRepo
Updating git-repo `https://github.com/UserName/PrivRepo`
Username for 'https://github.com': email@emailadress.com
Password for 'https://email@emailadress.com@github.com':
ERROR: GitError(Code:EUNBORNBRANCH, Class:Reference, reference
'refs/heads/master' not found)
Stacktrace:
[1] macro expansion at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/error.jl:101
[inlined]
[2] head(::LibGit2.GitRepo) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/reference.jl:44
[3] branch(::LibGit2.GitRepo) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/LibGit2.jl:368
[4] #handle_repos_add!#61(::Bool, ::Nothing, ::Function,
::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:744
[5] #handle_repos_add! at ./none:0 [inlined]
[6] #add_or_develop#15(::Symbol, ::Bool,
::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},
::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:42
[7] (::getfield(Pkg.API,
Symbol("#kw##add_or_develop")))(::NamedTuple{(:mode,),Tuple{Symbol}},
::typeof(Pkg.API.add_or_develop), ::Pkg.Types.Context,
::Array{Pkg.Types.PackageSpec,1}) at ./none:0
[8] do_add!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1},
::Dict{Symbol,Any}) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:659
[9] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},
::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at
./essentials.jl:742
[10] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
[11] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:561
[12] #do_cmd#30(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:536
[13] do_cmd at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:532
[inlined]
[14] (::getfield(Pkg.REPLMode,
Symbol("##48#51")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState,
::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:967
[15] #invokelatest#1 at ./essentials.jl:742 [inlined]
[16] invokelatest at ./essentials.jl:741 [inlined]
[17] run_interface(::REPL.Terminals.TextTerminal,
::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:2273
[18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:1035
[19] run_repl(::REPL.AbstractREPL, ::Any) at
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:192
[20] (::getfield(Base,
Symbol("##734#736")){Bool,Bool,Bool,Bool})(::Module) at
./client.jl:362
[21] #invokelatest#1 at ./essentials.jl:742 [inlined]
[22] invokelatest at ./essentials.jl:741 [inlined]
[23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
[24] exec_options(::Base.JLOptions) at ./client.jl:284
[25] _start() at ./client.jl:436