Grizzlih

Grizzlih

Asdf install elixir 1.18.3 downloads zero-byte file (zip not found)

Hi all,

I’m trying to install Elixir 1.18.3 with asdf on macOS Catalina (10.15.7), but the installation fails because the downloaded archive is empty. Here’s the full output:

sudo asdf install elixir 1.18.3
==> Checking whether specified Elixir release exists...
==> Downloading 1.18.3 to /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
==> Copying release into place
[/Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.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 /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip or
        /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip.zip, and cannot find /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip.ZIP, period.

It looks like asdf is downloading a zero-byte file instead of the actual precompiled release.

What I’ve tried so far:

  • Updated asdf itself (git -C ~/.asdf pull) and the Elixir plugin (asdf plugin-update elixir)

  • Removed stale downloads in ~/.asdf/downloads/elixir/1.18.3/

  • Retried with ASDF_DEBUG=1 (still shows a zero-byte download)

  • Installing different Elixir versions (e.g. 1.18.4, 1.18.3, and earlier) — all give the same result

Questions:

  • Is this a known issue with the precompiled Elixir 1.18.3/1.18.4 releases on GitHub?

  • Or could it be something wrong with my local setup (curl, TLS, certificates)?

Thanks in advance for any advice!

Most Liked

aseigo

aseigo

In case you don’t figure it out with asdf, I can recommend mise. After the asdf rewrite, I decided to take stock as to what the options are and gave mise a try … and haven’t looked back, having found misemore ergonomic and reliable. It serves the same use cases as asdf, and so has been a drop-in replacement for my use of asdf.

dimitarvp

dimitarvp

Well finally I can breathe a sigh of relief. I am not the only person on ElixirForum who knows about mise, after a year or two shilling for it here. :smiley:

No shims, for one thing. To me that’s already a huge benefit by itself. But it can also work as a task runner, and it has even a few more functions on top of that + the version manager thing.

xir

xir

That’s what I was going to mention too – mise. It’s simpler to use, it works both with shims and without them. I use it without them. All its benefits are listed on their website, but to me, it’s just simpler than asdf.

nonamenecessary

nonamenecessary

No idea why the download is borked using asdf or mise but to workaround the installation failure with mise, I went to https://builds.hex.pm/builds/elixir/v1.18.4-otp-27.zip in my browser to download the complete zip (7.6mb) first. I then moved the .zip to ~/.local/share/mise/downloads/elixir/1.18.4-otp-27 and ran mise install elixir@1.18.4-otp-27.

That installed without issue for me, whereas running mise install elixir@1.18.4-otp-27 (or any other impacted version) without having manually placed the zip fails for the same reason, a zero byte archive.

Grizzlih

Grizzlih

Thanks for suggesting mise! For now, I’ve mitigated it by using asdf with an OTP-pinned build:

asdf install elixir 1.18.4-otp-28

This works fine with my Erlang/OTP 28 on macOS Catalina. If I learn more about the zero-byte archive issue on 1.18.4, I’ll update the thread.

Where Next?

Popular in Questions Top

New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement