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

Bad tempfile path #18

Open
RobinClowers opened this issue Jun 23, 2016 · 5 comments
Open

Bad tempfile path #18

RobinClowers opened this issue Jun 23, 2016 · 5 comments

Comments

@RobinClowers
Copy link

Looks like there is an extra / in the tempfile path.

$ asdf install elixir 1.3
/var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip
** Resuming transfer from byte position 21
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
[/var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip or
        /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip.zip, and cannot find /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip.ZIP, period.
@RobinClowers
Copy link
Author

Turns out this is a just a really confusing secondary error. The correct command is asdf install elixir 1.3.0. Maybe we should validate the version number? Also it would be good to fail faster, so we don't try to unzip a bogus file.

@ulbrich
Copy link

ulbrich commented Jul 1, 2017

Thanks for discussing this error here: I had the same today with Erlang when trying to run asdf install erlang 20 instead of asdf install erlang 20.0 and was puzzled until I found this post… 👍

@kamidev
Copy link

kamidev commented Jan 3, 2019

This also happens for new Elixir releases, when the compiled file isn't ready yet. That seems to be the case with 1.8 RC1 right now.

@Stratus3D
Copy link
Member

@kamidev yep, just came across that issue with 1.8 RC1.

@Stratus3D
Copy link
Member

I do not think #29 fixed this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants