docker-ejabberd icon indicating copy to clipboard operation
docker-ejabberd copied to clipboard

Ejabberd fails to start when docker container id changes

Open diegofal opened this issue 6 years ago • 1 comments

Currently, when ejabberd inits I can see this message:

"Application ejabberd started on node 'Mnesia@fe29feed088d'" -> after the @, "fe29feed088d" is the current container id.

When the container id changes, the database fails to start since the owner is attached to the previous container id.

Any thoughts on this? Thanks!!

diegofal avatar Jun 18 '18 11:06 diegofal

This is how mnesia setup database. You can set ERLANG_NODE env to i.e. ejabberd@localhost and the mnesia database will be the same on each reboot / re-creation.

rroemhild avatar Jul 20 '18 10:07 rroemhild