Skip to content

Instantly share code, notes, and snippets.

@hamidreza-s
Last active April 16, 2018 08:39
Show Gist options
  • Save hamidreza-s/fafbc597d37d7ef99441 to your computer and use it in GitHub Desktop.
Save hamidreza-s/fafbc597d37d7ef99441 to your computer and use it in GitHub Desktop.
How to recover the connection between a distributed Erlang node and EPMD.
## node 1
$ erl
1> erl_epmd:start().
2> erl_node:register_node(ejabberd, 23456).
## Emergency 'epmd' Recovery
## node 2
$ erl -sname repair
1> net_adm:ping(ejabberd@hostname).
## node 1
3> halt().
## node 2
2> rpc:call(ejabberd@hostname, erl_epmd, register_node, [ejabberd, 23456]).
3> halt().
## Run epmd -names once more to make sure, and go on with your business.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment