-
-
Save atlas-comstock/d0d05b3cbd149941027e88ac5690a136 to your computer and use it in GitHub Desktop.
How to recover the connection between a distributed Erlang node and EPMD.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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