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
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!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









