Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libcurl errors with download() #33950

Closed
rafaqz opened this issue Nov 26, 2019 · 5 comments
Closed

Libcurl errors with download() #33950

rafaqz opened this issue Nov 26, 2019 · 5 comments
Labels
needs more info Clarification or a reproducible example is required

Comments

@rafaqz
Copy link
Contributor

rafaqz commented Nov 26, 2019

Using the download method is broken for me in julia 1.2 on arch linux, using the julia download provided by julialang.org. Basically any command that calls download fails, here the Pkg.build for GR:

(v1.2) pkg> build GR
  Building GR  `~/.julia/packages/GR/oiZD3/deps/build.log`
┌ Error: Error building `GR`: 
│ tar (child): downloads/gr-0.44.0-ArchLinux-x86_64.tar.gz: Cannot open: No such file or directory
│ tar (child): Error is not recoverable: exiting now
│ tar: Child returned status 2
│ tar: Error is not recoverable: exiting now
│ [ Info: Downloading pre-compiled GR 0.44.0 ArchLinux binary
│ ┌ Error: Download failed: curl: /opt/julia/bin/../lib/julia/libcurl.so.4: no version information available (required by curl)
│ └ @ Base download.jl:43
│ ┌ Error: Download failed: curl: /opt/julia/bin/../lib/julia/libcurl.so.4: no version information available (required by curl)
│ └ @ Base download.jl:43
│ [ Info: Using insecure connection
│ ┌ Error: Download failed: curl: /opt/julia/bin/../lib/julia/libcurl.so.4: no version information available (required by curl)
│ └ @ Base download.jl:43
│ [ Info: Cannot download GR run-time
│ ERROR: LoadError: failed process: Process(`tar xzf downloads/gr-0.44.0-ArchLinux-x86_64.tar.gz`, ProcessExited(2)) [2]
│ 
│ Stacktrace:
│  [1] pipeline_error at ./process.jl:813 [inlined]
│  [2] #run#536(::Bool, ::typeof(run), ::Cmd) at ./process.jl:728
│  [3] run(::Cmd) at ./process.jl:726
│  [4] top-level scope at /home/raf/.julia/packages/GR/oiZD3/deps/build.jl:123
│  [5] include at ./boot.jl:328 [inlined]
│  [6] include_relative(::Module, ::String) at ./loading.jl:1094
│  [7] include(::Module, ::String) at ./Base.jl:31
│  [8] include(::String) at ./client.jl:431
│  [9] top-level scope at none:5in expression starting at /home/raf/.julia/packages/GR/oiZD3/deps/build.jl:57
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Pkg/src/backwards_compatible_isolation.jl:647
julia> versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_NUM_THREADS = 2
  JULIA_EDITOR = atom  -a
@stevengj
Copy link
Member

stevengj commented Nov 26, 2019

Does

curl -s -S -g -L -f -o gr-0.44.0-ArchLinux-x86_64.tar.gz http://github.com/sciapp/gr/releases/download/v0.44.0/gr-0.44.0-ArchLinux-x86_64.tar.gz

work if you run it in your terminal? Or

run(`curl -s -S -g -L -f -o gr-0.44.0-ArchLinux-x86_64.tar.gz http://github.com/sciapp/gr/releases/download/v0.44.0/gr-0.44.0-ArchLinux-x86_64.tar.gz`)

in Julia?

@rafaqz
Copy link
Contributor Author

rafaqz commented Nov 26, 2019

I think the system curl always worked fine. And download just fixed itself somehow, now working in atom and the terminal after a few weeks of being broken - I can't replicate the above error, not sure what changed it may have been restart after a system update a few days ago.

@stevengj stevengj added the needs more info Clarification or a reproducible example is required label Nov 26, 2019
@stevengj
Copy link
Member

Closing as not reproducible, then.

@rafaqz
Copy link
Contributor Author

rafaqz commented Dec 17, 2019

This occurs when the bash PATH or environment is somehow broken, as was happening for me when using julia in tmux. It works fine without tmux.

I can reliably produce that now, but it's a large surface area to work out exactly what is broken, besides the terminal environment somehow affects finding libcurl.so

@stevengj
Copy link
Member

Yes, on Linux we require on the curl in the PATH. If this is broken, then download will break.

Eventually it would be good to eliminate this dependency (#27043).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Clarification or a reproducible example is required
Projects
None yet
Development

No branches or pull requests

2 participants