Open jeremyowensboggs opened 4 years ago
We're facing the exact same issue. To add a new observation:
For ping
the --name
argument is specified twice and for remote_console
it's only specified once.
# ping
/home/username/appname/erts-10.4/bin/erl \
-boot_var ERTS_LIB_DIR /home/username/appname/lib \
-boot /home/username/appname/bin/start_clean \
-config /home/username/appname/var/sys.config -noshell \
-s elixir start_cli -logger handle_sasl_reports false -extra \
-e Distillery.Releases.Runtime.Control.main \
--logger-sasl-reports false -- ping --name=appname \
--cookie=appname --name=appname@username
# remote_console
/home/username/appname/erts-10.4/bin/erl \
-boot_var ERTS_LIB_DIR /home/username/appname/lib \
-boot /home/username/appname/bin/start_clean \
-config /home/username/appname/var/sys.config -noshell \
-s elixir start_cli -logger handle_sasl_reports false -extra \
-e Distillery.Releases.Runtime.Control.main \
--logger-sasl-reports false -- ping --name=appname \
--cookie=appname
Steps to reproduce
Our vm.args.eex
Verbose Logs
This doesn't work:
But this does
Unfortunately, the remote_console does not allow the --name options, so I still cannot connect to the remote_console
Description of issue
rel/config.exs
, as it is oftenuse Mix.Releases.Config,
This sets the default release built by
mix release
default_release: :default,
This sets the default environment used by
mix release
default_environment: Mix.env()
For a full list of config options for both releases
and environments, visit https://hexdocs.pm/distillery/configuration.html
You may define one or more environments in this file,
an environment's settings will override those of a release
when building in that environment, this combination of release
and environment configuration is called a profile
environment :dev do
If you are running Phoenix, you should make sure that
server: true is set and the code reloader is disabled,
even in dev mode.
It is recommended that you build with MIX_ENV=prod and pass
the --env flag to Distillery explicitly if you want to use
dev mode.
set(dev_mode: true) set(include_erts: false) set(cookie: :"randomstringofstuff" end
environment :stage do set(include_erts: true) set(include_src: false) set(cookie: :"randomstringofstuff") end
environment :prod do set(include_erts: true) set(include_src: false) set(cookie: :"randomstringofstuff") end
You may define one or more releases in this file.
If you have not set a default release, or selected one
when running
mix release
, the first release in the filewill be used by default
release :blaster2 do set(version: current_version(:blaster)) set(vm_args: "rel/config/vm.args.eex")
set( applications: [ :runtime_tools, blaster: :permanent, blaster_web: :permanent, devices: :permanent ] )
set( commands: [ "setup.couchdb": "rel/commands/setup_couchdb.sh", "setup.blaster": "rel/commands/setup_blaster.sh", "configure.rankone": "rel/commands/configure_rankone.sh" ] ) end