[ejabberd] Problem setting up ejabberd cluster

Bruce Jarvis bjarvis at leanlogistics.com
Fri Jan 14 20:28:32 MSK 2005


I have a single node working properly - ejabberd-0.7.5, Erlang (BEAM)
emulator version 5.4.2.1, on Debian Sid.  Here is the command used to
start it:

        erl -pa /var/lib/ejabberd/ebin \
             -name ejabberd \
             -s ejabberd \
             -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \
                       log_path \"/var/log/jabber/ejabberd.log\" \
             -sasl sasl_error_logger
\{file,\"/var/log/jabber/sasl.log\"\} \
             -mnesia dir \"/var/spool/jabber/ejabberd\" \
             -heart \
             -detached

On a second node (ejabberd from cvs on Jan-14-2005, Erlang (BEAM)
emulator version 5.2.3.3, Redhat linux 9) I have compiled and installed
ejabberd but not run it.

I have copied the .erlang.cookie file from the first node to the second
node and placed it in the /root directory (on both nodes, ejabberd will
be run as root for now).

I change to the /var/spool/jabber/ejabberd directory and execute the
following command line on the second node:

	erl -name ejabberd -mnesia extra_db_nodes
"['ejabberd at harpalyke.leanlogistics.com']" -s mnesia

The last lines of output show mnesia started:

	application: mnesia
	started_at: 'ejabberd at saturno.leanlogistics.com'

When I run the mnesia:info(). Command it shows only the second node as
running:

    (ejabberd at saturno.leanlogistics.com)1> mnesia:info().
    ---> Processes holding locks <---
    ---> Processes waiting for locks <---
    ---> Participant transactions <---
    ---> Coordinator transactions <---
    ---> Uncertain transactions <---
    ---> Active tables <---
    schema         : with 1        records occupying 386      words of
mem
    ===> System info in version "4.1.3", debug level = none <===
    opt_disc. Directory
"/var/spool/jabber/ejabberd/Mnesia.ejabberd at saturno.leanlogistics.com"
is NOT used.
    use fallback at restart = false
    running db nodes   = ['ejabberd at saturno.leanlogistics.com']
    stopped db nodes   = ['ejabberd at harpalyke.leanlogistics.com']
    master node tables = []
    remote             = []
    ram_copies         = [schema]
    disc_copies        = []
    disc_only_copies   = []
    [{'ejabberd at saturno.leanlogistics.com',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

Any suggestions would be greatly appreciated.

Thanks,

Bruce



-----------------------------------------------------
Bruce Jarvis
LeanLogistics, Inc.
3347 128th Ave.
Holland, MI 49424
(616) 738-6400 ex. 132
bruce.jarvis at leanlogistics.com
http://www.leanlogistics.com



More information about the ejabberd mailing list