gpreston

gpreston

Distillery error - Failed to archive release: _build/prod/rel/my_app/releases/RELEASES: no such file or directory

Hi all, I’m trying to push a new release of my application (to Gigalixir, but seems the problem is at the Distillery level) but having trouble getting the Distillery release to run. I haven’t touched the application in a while but upgraded to Phoenix 1.7 a while ago. Here is what my terminal says:

$ sudo MIX_ENV=prod mix distillery.release

==> Assembling release..
==> Building release my_app:0.1.0 using environment prod
==> Including ERTS 13.1.1 from /opt/homebrew/Cellar/erlang/25.1.1/lib/erlang/erts-13.1.1
==> Packaging release..
==> Failed to archive release: _build/prod/rel/my_app/releases/RELEASES: no such file or directory

I’m using sudo because when I don’t I get the error

$ MIX_ENV=prod mix distillery.release

==> Assembling release..
==> Building release my_app:0.1.0 using environment prod
==> Including ERTS 13.1.1 from /opt/homebrew/Cellar/erlang/25.1.1/lib/erlang/erts-13.1.1
==> Release failed: no match of right hand side value: {:error, :eacces}

I’m not sure what releases/RELEASES is and am having trouble finding anything about it in the Distillery docs.

I’m on macOS Ventura 13.1, using Apple Silicon. Haven’t had luck finding threads on this specific error, any help is appreciated, thanks!

Marked As Solved

rgac

rgac

Just ran into this problem myself.
Related to OTP 25.
Here’s the open ticket for this problem: THIS LIBRARY IS NOT COMPATIBLE WITH ERLANG/OTP 25 · Issue #744 · bitwalker/distillery · GitHub

Last Post!

gpreston

gpreston

Thank you! Yeah this makes sense. I ended up switching to fly.io to get around this… I actually do quite like it. At first I was skeptical about using Docker for deployment but it does make things a lot easier than keeping up a lot of configuration within the Elixir files like I was doing before, for anyone else considering the switch for this reason.

Where Next?

Popular in Questions Top

hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
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

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement