Closed andreausu closed 6 years ago
Looking into this - I haven't had trouble with this yet, but I wonder if it has anything to do with the interaction with ERL_EPMD_PORT
Looks like the problem is setting -sname
using the format name@host
- the release_ctl script sees the @
and assumes it is a fully-qualified name. This is technically a bug, since name@shorthost
is a valid form for -sname
, but you can workaround it by using just -sname name
instead. Erlang will infer the short hostname in that case.
@bitwalker thank you for the extremely quick turnaround on this! I can confirm that https://github.com/bitwalker/distillery/commit/c83332804bce88089f627d4753bfcfb2c31f2504 fixes the issue.
Hello, we've run into an issue after upgrading distillery from 1.5.2 to 2.0.9:
remote_console
is failing to connect to our application whereas before the upgrade it worked (no config settings were changed).Steps to reproduce
Given the following vm.args:
First, I start the app, as you can see
REPLACE_OS_VARS
anderlang_cookie
env variables are properly set:From
docker exec
you can see that the application was started with the proper cookie, however remote_console is failing to connect.EPMD is indeed reachable:
Verbose Logs
Paste the output of the release command you ran with the
--verbose
flag below in the summary tags (this helps keep the issue easy to navigate):Description of issue
What are the expected results?
remote_console
should work as before the upgradeWhat version of Distillery? The problem started right after upgrading distillery to 2.0.9 from 1.5.2.
What OS, Erlang/Elixir versions are you seeing this issue on? The docker image
elixir:1.6.6
(same as the last working distillery version)If possible, also provide your
rel/config.exs
, as it is often my first troubleshooting question, and you'll save us both time :)We're using the method described here to set the cookie from an env variable: https://hexdocs.pm/distillery/config/vm.args.html and it was working before upgrading to 2.0.9.
Please let me know if you need anything else to debug this.
Thank you!