I'm am working standing up a pair of servers to run ejabberd 2.1.8.
I've been following along with the the guide and have the first server up and going on a server named jabber-test-02. The actual service is referred to "jabber-test" or that what I have set to the hosts tuple in /etc/ejabberd/ejabberd.cfg
jabber-test is an alias for jabber-test-02. In the future, I plan to move that alias to our load balances.
At this point, I can access the admin page via jabber-test and point my client to my account at name@jabber-test and everything works.
The sang I've hit is when trying to config the second server "jabber-test-03". I copied over the config files (ejabberd.cfg and ejabberctl.cfg) and opened all the ports:
ACCEPT tcp -- 10.136.248.6 0.0.0.0/0 tcp <-jabber-test-02
ACCEPT tcp -- 10.136.232.10 0.0.0.0/0 tcp <-jabber-test-03
When I run the command on the second server to start ejabberd with the DB from the first server, I seem to have a problem:
(ejabberd@jabber-test-03)3> mnesia:info().
---> Processes holding locks <---
---> Processes waiting for locks <---
---> Participant transactions <---
---> Coordinator transactions <---
---> Uncertain transactions <---
---> Active tables <---
schema : with 1 records occupying 393 words of mem
===> System info in version "4.4.19", debug level = none <===
opt_disc. Directory "/var/lib/ejabberd" is NOT used.
use fallback at restart = false
running db nodes = ['ejabberd@jabber-test-03']
stopped db nodes = ['ejabberd@jabber-test-02']
master node tables = []
remote = []
ram_copies = [schema]
disc_copies = []
disc_only_copies = []
[{'ejabberd@jabber-test-03',ram_copies}] = [schema]
2 transactions committed, 0 aborted, 0 restarted, 0 logged to disc
0 held locks, 0 in queue; 0 local transactions, 0 remote
0 transactions waits for other nodes: []
ok
The second server never sees the first server's db node running even though first server seems to be running correctly.
Where can I start to de-tangle what is going wrong? All the post and sites I've found so far make this part seem to be pretty trivia but I've been stumped for days now.
Thanks for any help,
Rob
I found this post
I found this post http://www.ejabberd.im/node/5021#comment-57966 this morning that described the problem I was having. Following the link provided I found this: http://www.ejabberd.im/interconnect-erl-nodes
Which after reading though a few more time caused me to take a third look at my cookies. Sure enough, at some point I have stopped using the correct cookie on my second machine. :(