Friday 22 April 2016

failed process: Process(`git clone -q -b metadata-v2 git://github.com/JuliaLang/METADATA.jl METADATA`, ProcessExited(128)) [128]


When I tried to run Pkg.status(), Pkg.update() commands i got following errors.
julia> Pkg.status()
INFO: Initializing package repository /var/root/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection refused

ERROR: failed process: Process(`git clone -q -b metadata-v2 git://github.com/JuliaLang/METADATA.jl METADATA`, ProcessExited(128)) [128]
 in run at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
 in anonymous at pkg/dir.jl:52
 in cd at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
 in init at pkg/dir.jl:50
 in cd at pkg/dir.jl:28
 in status at pkg.jl:32 (repeats 2 times)

julia> Pkg.update()
INFO: Initializing package repository /var/root/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection refused

ERROR: failed process: Process(`git clone -q -b metadata-v2 git://github.com/JuliaLang/METADATA.jl METADATA`, ProcessExited(128)) [128]
 in run at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
 in anonymous at pkg/dir.jl:52
 in cd at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
 in init at pkg/dir.jl:50
 in cd at pkg/dir.jl:28
 in update at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib

I got the errors because, my corporate network is not allowing me to connect to the url ‘git://github.com/JuliaLang/METADATA.jl’. One way to resolve this error, type following command before calling functions Pkg.status(), Pkg,update().


git config --global url."https://".insteadOf git://

$ git config --global url."https://".insteadOf git://
$ julia
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.1 (2015-11-08 10:33 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0


               _
julia> Pkg.status()
INFO: Initializing package repository /Users/harikrishna_gurram/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
No packages installed

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> 


Previous                                                 Next                                                 Home

No comments:

Post a Comment