Error using Package manager through VPN Linux server, Private repository

#1

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
0 Likes

#2

If you delete the folder .julia/clones and try again, does it help?

0 Likes

#3

I did that but now I just get errors installing normal packages as they try to build. I am guessing this is a server problem and not Julia.

               _
   _       _ _(_)_     |  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 PackageCompiler
   Cloning default registries into `~/.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
     Added registry `General` to `~/.julia/registries/General`
 Resolving package versions...
   Cloning [9b87118b-4619-50d2-8e1e-99f35a4d4d9d] PackageCompiler from https://github.com/JuliaLang/PackageCompiler.jl.git
[ Info: Installed PackageCompiler â v0.6.3
   Cloning [30578b45-9adc-5946-b283-645ec420af67] URIParser from https://github.com/JuliaWeb/URIParser.jl.git
[ Info: Installed URIParser âââââââ v0.4.0
   Cloning [b718987f-49a8-5099-9789-dcd902bef87d] TextWrap from https://github.com/carlobaldassi/TextWrap.jl.git
[ Info: Installed TextWrap ââââââââ v0.3.0
   Cloning [34da2185-b29b-5c13-b0c7-acf172513d20] Compat from https://github.com/JuliaLang/Compat.jl.git
[ Info: Installed Compat ââââââââââ v1.5.1
   Cloning [0862f596-cf2d-50af-8ef4-f2be67dfa83f] HTTPClient from https://github.com/JuliaWeb/HTTPClient.jl.git
[ Info: Installed HTTPClient ââââââ v0.2.1
   Cloning [9e28174c-4ba2-5203-b857-d8d62c4213ee] BinDeps from https://github.com/JuliaPackaging/BinDeps.jl.git
[ Info: Installed BinDeps âââââââââ v0.8.10
   Cloning [b27032c2-a3e7-50c8-80cd-2d36dbcbfd21] LibCURL from https://github.com/JuliaWeb/LibCURL.jl.git
[ Info: Installed LibCURL âââââââââ v0.4.1
   Cloning [e1450e63-4bb3-523b-b2a4-4ffa8c0fd77d] BufferedStreams from https://github.com/BioJulia/BufferedStreams.jl.git
[ Info: Installed BufferedStreams â v1.0.0
   Cloning [c7e460c6-2fb9-53a9-8c5b-16f535851c63] ArgParse from https://github.com/carlobaldassi/ArgParse.jl.git
[ Info: Installed ArgParse ââââââââ v0.6.1
   Cloning [c17dfb99-b4f7-5aad-8812-456da1ad7187] WinRPM from https://github.com/JuliaPackaging/WinRPM.jl.git
[ Info: Installed WinRPM ââââââââââ v0.4.2
   Cloning [522f3ed2-3f36-55e3-b6df-e94fee9b0c07] LibExpat from https://github.com/JuliaIO/LibExpat.jl.git
[ Info: Installed LibExpat ââââââââ v0.5.0
   Cloning [b99e7846-7c00-51b0-8f62-c81ae34c0232] BinaryProvider from https://github.com/JuliaPackaging/BinaryProvider.jl.git
[ Info: Installed BinaryProvider ââ v0.5.3
   Cloning [2ec943e9-cfe8-584d-b93d-64dcb6d567b7] Libz from https://github.com/BioJulia/Libz.jl.git
[ Info: Installed Libz ââââââââââââ v1.0.0
  Updating `~/.julia/environments/v1.1/Project.toml`
  [9b87118b] + PackageCompiler v0.6.3
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [c7e460c6] + ArgParse v0.6.1
  [9e28174c] + BinDeps v0.8.10
  [b99e7846] + BinaryProvider v0.5.3
  [e1450e63] + BufferedStreams v1.0.0
  [34da2185] + Compat v1.5.1
  [0862f596] + HTTPClient v0.2.1
  [b27032c2] + LibCURL v0.4.1
  [522f3ed2] + LibExpat v0.5.0
  [2ec943e9] + Libz v1.0.0
  [9b87118b] + PackageCompiler v0.6.3
  [b718987f] + TextWrap v0.3.0
  [30578b45] + URIParser v0.4.0
  [c17dfb99] + WinRPM v0.4.2
  [2a0f44e3] + Base64 
  [ade2ca70] + Dates 
  [8bb1440f] + DelimitedFiles 
  [8ba89e20] + Distributed 
  [b77e0a4c] + InteractiveUtils 
  [76f85450] + LibGit2 
  [8f399da3] + Libdl 
  [37e2e46d] + LinearAlgebra 
  [56ddb016] + Logging 
  [d6f4376e] + Markdown 
  [a63ad114] + Mmap 
  [44cfe95a] + Pkg 
  [de0858da] + Printf 
  [3fa0cd96] + REPL 
  [9a3f8284] + Random 
  [ea8e919c] + SHA 
  [9e88b42a] + Serialization 
  [1a1011a3] + SharedArrays 
  [6462fe0b] + Sockets 
  [2f01184e] + SparseArrays 
  [10745b16] + Statistics 
  [8dfed614] + Test 
  [cf7118a7] + UUIDs 
  [4ec0a83e] + Unicode 
  Building LibCURL âââââââââ `~/.julia/packages/LibCURL/OoXMv/deps/build.log`
â Error: Error building `LibCURL`: 
â 
â curl: (35) SSL connect error
â ERROR: LoadError: failed process: Process(`curl -g -L -f -o /home/davis/.julia/packages/LibCURL/OoXMv/deps/build_Zlib.v1.2.11.jl https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.2/build_Zlib.v1.2.11.jl`, ProcessExited(35)) [35]
â Stacktrace:
â  [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
â  [2] pipeline_error at ./process.jl:785 [inlined]
â  [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
â  [4] run at ./process.jl:724 [inlined]
â  [5] download(::String, ::String) at ./download.jl:27
â  [6] top-level scope at /home/davis/.julia/packages/LibCURL/OoXMv/deps/build.jl:19
â  [7] include at ./boot.jl:326 [inlined]
â  [8] include_relative(::Module, ::String) at ./loading.jl:1038
â  [9] include(::Module, ::String) at ./sysimg.jl:29
â  [10] include(::String) at ./client.jl:403
â  [11] top-level scope at none:0
â in expression starting at /home/davis/.julia/packages/LibCURL/OoXMv/deps/build.jl:16
â @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075
  Building WinRPM ââââââââââ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building PackageCompiler â `~/.julia/packages/PackageCompiler/oT98U/deps/build.log`

(Libcurl version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2)

0 Likes

#4

Sounds to me like your VPN has a firewall up on outbound port 443 (HTTPS/SSL). You should address that with whoever manages your VPN (or if that’s you, don’t block that port).

0 Likes