erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

`remote_console` fails when `hostname` returns fqdn #482

Closed rlipscombe closed 8 years ago

rlipscombe commented 8 years ago

I'm using -sname foo in vm.args. When I attempt to use bin/foo remote_console, the script terminates immediately with no output. $? is 127.

Using bin/foo ping results in:

=INFO REPORT==== 19-May-2016::19:42:46 ===
Can't set short node name!
Please check your configuration
escript: exception error: no match of right hand side value 
                 {error,
                     {{shutdown,
                          {failed_to_start_child,net_kernel,
                              {'EXIT',nodistribution}}},
                      {child,undefined,net_sup_dynamic,
                          {erl_distribution,start_link,
                              [['foo_maint_19746@baz.quux.example.com',
                                shortnames]]},
                          permanent,1000,supervisor,
                          [erl_distribution]}}}

Comparing the output of hostname with a box that works shows that this particular box returns the FQDN, rather than just the hostname.

Related to #408?

lrascao commented 8 years ago

459 seems to have solved this, can you confirm please?

lrascao commented 8 years ago

closing, please re-open if issue persists