Closed stuart-thackray closed 7 years ago
Is your linux machine configured to use fully qualified domain names? 'hostname -f' should return one of these as well as running 'erl -name foo'
Yes my machine is configured to run FQDN names, the problem is there is no hostname -f. It is only hostname -s
There is no consideration if you configured the vm.args with -name or -sname
It always assumes the nodes are configured with -sname
you are correct indeed, relx should be obtaining the node name from the Erlang VM instead of the system (as it was before the regression you mentioned)
@stuart-thackray can you check that #553 fixes this issue?
@lrascao thanks the PR fixed the issues; I will close the issue.
thanks for the feedback, i will try and get this pushed to a new rebar3 version asap
Due to commit https://github.com/erlware/relx/commit/103af5c657fa38e44f04c93702d0e55a3271d82b
on linux at least it assumes you are only running short names . therefore if you have specified
this no longer works correctly such as when ping is used. Specifically line 208 https://github.com/erlware/relx/commit/103af5c657fa38e44f04c93702d0e55a3271d82b#diff-aad796018420f1241b13e0777015f5b0R258 as it does only hostname -s and doesn't have a case for hostname -f