Hi everybody,
I'm installing ejabberd server on a two-nodes high availability cluster using heartbeat from official packages of debian etch distro.
I have a 'drbd' shared resource where I create the tree that ejabberd needs:
/mnt/shared/ejabberd/etc -> has the configuration files
/mnt/shared/ejabberd/spool -> has the database files
In /etc/ha.d/haresources the last resource to up is 'ejabberd'.
When I start the cluster node1 (the primary) start haresources correctly, including ejabberd and I can connect to it with a jabber client.
When node1 'failover' node2 (the secondary) start up the reosurces correctly (in this case: dhcp, drbd and bind) but ejabberd does not. In /var/log/ejabberd/ there isnĀ“t log files.
How can I do to up ejabberd on node2 using database files and configuration files from shred drbd resource?
Doing in console:
#/usr/sbin/ejabberd --config /mnt/shared/ejabberd/etc/ejabberd.cfg --spool /mnt/shared/ejabberd/spool
the output says:
8<-------------------------------------------------------------------------------------------------------
Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [kernel-poll:false]
Eshell V5.5.2 (abort with ^G)
(ejabberd@node2)1>
=INFO REPORT==== 24-Oct-2007::19:17:44 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{'EXIT',{{badmatch,{aborted,{no_exists,config}}},
[{ejabberd_config,set_opts,1},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}}}}
type: temporary
------------------------------------------------------------------------------------------------------->8
What's wrong?
That error looks similar to
That error looks similar tothis one .