petrus-jvrensburg

petrus-jvrensburg

Error installing rebar3

I’m using the GitHub - erlef/setup-beam: Set up your BEAM-based GitHub Actions workflow (Erlang, Elixir, Gleam, ...) · GitHub github action for Continuous Integration. I ran into this error for the first time today:

Run erlef/setup-beam@v1
Parsing version file at .tool-versions
Installing Erlang/OTP OTP-25.3 - built on ubuntu-22.04
Using Elixir v1.14.4 (built for Erlang/OTP 25)
Installing Elixir v1.14.4-otp-25
Running mix local.rebar,--force
  /home/runner/work/_temp/.setup-beam/elixir/bin/mix local.rebar --force
  ** (Mix) Data does not match the given SHA-512 checksum.
  
  Expected: 7a5907453f8f756a004e56af7ec7e835394eb4afbeeaa906d4eac2791f2b0d44b193c317c003f04545354fbe5f79e7b24fe3c3055c16b9ec5bc5a4c4b4340f08
    Actual: dc559ace623406453c424debbcccb3eca3d40403920f6be0e240f5ec7e8f2836886fd3a3d6355e06d924781143f1275c35067e8ad7d1fe0995e35e74dedc6f17

Any idea what might be causing it?

First 8 of 8 Posts Switch mode

petrus-jvrensburg

petrus-jvrensburg OP

Aah… bumping the Elixir version in my .tool-versions file fixed it for me. This is what my .tool-versions currently looks like:

elixir 1.14.5-otp-25
erlang 25.3
perzanko

perzanko

I’m seeing the same error locally

mix do local.hex --force, local.rebar --force
* creating /Users/perzanko/.asdf/installs/elixir/1.14.2-otp-25/.mix/archives/hex-2.0.6
** (Mix) Data does not match the given SHA-512 checksum.

Expected: 7a5907453f8f756a004e56af7ec7e835394eb4afbeeaa906d4eac2791f2b0d44b193c317c003f04545354fbe5f79e7b24fe3c3055c16b9ec5bc5a4c4b4340f08
  Actual: dc559ace623406453c424debbcccb3eca3d40403920f6be0e240f5ec7e8f2836886fd3a3d6355e06d924781143f1275c35067e8ad7d1fe0995e35e74dedc6f17


Could not fetch rebar3 at:

    https://repo.hex.pm/installs/1.13.0/rebar3-3.15.2

Please download the file above manually to your current directory and run:

    mix local.rebar rebar3 ./rebar3
perzanko

perzanko

Related?

kevinlang

kevinlang

Same issue. I bumped my Elixir version from elixir 1.14.4-otp-25 to elixir 1.14.5-otp-25 but that did not fix it.

alexdesousa

alexdesousa

I’m experiencing the same issue in several projects at the moment. I’ve tried:

  • 1.14.2-otp-25
  • 1.14.3-otp-25
  • 1.14.4-otp-25
  • 1.14.5-otp-25
  • 1.14.5-otp-26

Where the Erlang versions were: 25.3, 25.3.1, 25.3.2, and 26.0.

kevinlang

kevinlang

Here’s the tracking issue. Looks like they are looking into it. :+1:

https://github.com/elixir-lang/elixir/issues/12615

vish198910

vish198910

Similar issue for me too

mix local.rebar --force is giving this issue too

** (Mix) Could not install Rebar because Mix could not verify authenticity of metadata file at “https://repo.hex.pm/installs/rebar3-1.x.csv”. This may happen because a proxy or some entity is interfering with the download or because you don’t have a public key to verify the download.

You may try again later or check if a new public key has been released in our public keys page: Public keys - Elixir

alexdesousa

alexdesousa

It’s working for me now.

— All posts loaded —

Where Next?

Trending in Questions Top

jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement