I’m new to Distillery, and I’m following this guide. I added the version “2.1” dependency and ran the following commands:
mix do deps.get, compile
mix distillery.init
mix distillery.release
_build/dev/rel/<my app>/bin/<my app> start
I did not update the default config.
I got this error after the last command:
sed: read error on ~/Projects/<my app>/quickest_route/_build/dev/rel/<my app>/releases/RELEASES: No such file or directory
init terminating in do_boot ({undef,[{Elixir.Distillery.Releases.Config.Provider,init,[[_]],[]},{init,eval_script,2,[]},{init,do_boot,3,[]}]})
Crash dump is being written to: erl_crash.dump...done
=CRASH REPORT==== 8-Apr-2023::18:54:29.078711 ===
crasher:
initial call: application_master:init/4
pid: <0.79.0>
registered_name: []
exception exit: {bad_return,
{{elixir,start,[normal,[]]},
{'EXIT',
{undef,
[{elixir,start,[normal,[]],[]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},
{line,293}]}]}}}}
in function application_master:init/4 (application_master.erl, line 142)
ancestors: [<0.78.0>]
message_queue_len: 1
messages: [{'EXIT',<0.80.0>,normal}]
links: [<0.78.0>,<0.44.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 233
stack_size: 28
reductions: 174
neighbours:
=INFO REPORT==== 8-Apr-2023::18:54:29.105627 ===
application: elixir
exited: {bad_return,
{{elixir,start,[normal,[]]},
{'EXIT',
{undef,
[{elixir,start,[normal,[]],[]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},
{line,293}]}]}}}}
type: permanent
{"init terminating in do_boot",{undef,[{'Elixir.Distillery.Releases.Config.Provider',init,[[]],[]},{init,eval_script,2,[]},{init,do_boot,3,[]}]}}
I got the same sort of error output from running the release in the other ways:
_build/dev/rel/quickest_route/bin/quickest_route foreground
_build/dev/rel/quickest_route/bin/quickest_route console
I tried simply creating a RELEASES
file where it said it was missing. That didn’t help.