victorolinasc

victorolinasc

Having issues with Elixir releases in 1.9.0

Hello people!

I’ve been testing Elixir 1.9.0 releases and can’t make it work on a very simple project… it is failing with:

Generated <<project>> app
Release <<project>>-0.1.0 already exists. Overwrite? [Yn] Y
* assembling <<project>>-0.1.0 on MIX_ENV=prod
* using config/releases.exs to configure the release at runtime
Cannot read "<<project_root>>/_build/prod/rel/<<Project>>/releases/0.1.0/start.script"
** (MatchError) no match of right hand side value: :error
    (mix) lib/mix/release.ex:433: Mix.Release.make_boot_script/4
    (mix) lib/mix/tasks/release.ex:1063: anonymous fn/5 in Mix.Tasks.Release.make_boot_scripts/3
    (stdlib) maps.erl:257: :maps.fold_1/3
    (mix) lib/mix/tasks/release.ex:1060: Mix.Tasks.Release.make_boot_scripts/3
    (mix) lib/mix/tasks/release.ex:1008: Mix.Tasks.Release.build_rel/2
    (mix) lib/mix/tasks/release.ex:955: Mix.Tasks.Release.assemble/1
    (mix) lib/mix/tasks/release.ex:931: Mix.Tasks.Release.run_steps/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3```

This is a simple Phoenix project without ecto, html or webpack.

Elixir: 1.9.0 (with asdf)
Erlang: 21.3.8 (with asdf)

Nothing configured on mix.exs for releases. Can run project just fine with pure iex iex -S mix but cant generate the release. Run mix release.init just fine but mix release breaks.

The file it says it can’t read is there with readable permissions:

ls -la _build/dev/rel/<<project>>/releases/0.1.0/
total 152
drwxrwxr-x. 2 victorolinasc victorolinasc  4096 jul  3 12:01 .
drwxrwxr-x. 3 victorolinasc victorolinasc  4096 jul  3 12:01 ..
-rw-rw-r--. 1 victorolinasc victorolinasc 57409 jul  3 12:01 start.boot
-rw-rw-r--. 1 victorolinasc victorolinasc  1218 jul  3 12:01 start.rel
-rw-rw-r--. 1 victorolinasc victorolinasc 78962 jul  3 12:01 start.script

Tried to look for the line it says it is breaking (lib/mix/release.ex:433) but on tag 1.9 this line is comment and then not sure how to debug it further down.

Anyone with that problem?

Most Liked

victorolinasc

victorolinasc

I’ve tried that several times to no avail. Also tried nuking deps, and some other nuke opttions also without success. I’ve moved back to distillery for now. Will try again later when I have more time.

Thanks!

Where Next?

Popular in Questions Top

nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
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
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
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
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43487 311
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41989 114
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New

We're in Beta

About us Mission Statement