ejabberd - Comments for "Newbie Question Mnesia nonode@nohost, can&amp;#039;t seem to register users" https://www.ejabberd.im/node/1434 en ejabberd should handle mnesia itself https://www.ejabberd.im/node/1434#comment-3567 <p>Yes, ejabberd should handle mnesia itself automatically. The only thing the administrator must do is create a dir for the Mnesia spool files, and put him right read/write rights.</p> <p>ejabberd should start mnesia himself. If I start ejabberd on live mode (without -detached option), I can execute commands. As you can see, Mnesia is started:</p> <pre>(eja3@atenea)1&gt; mnesia:info(). ---&gt; Processes holding locks &lt;--- ---&gt; Processes waiting for locks &lt;--- ---&gt; Participant transactions &lt;--- ---&gt; Coordinator transactions &lt;--- ---&gt; Uncertain transactions &lt;--- ---&gt; Active tables &lt;--- local_config : with 16 records occupying 1941 words of mem config : with 13 records occupying 565 words of mem privacy : with 2 records occupying 838 words of mem passwd : with 2 records occupying 393 words of mem irc_custom : with 0 records occupying 279 words of mem roster : with 0 records occupying 279 words of mem ...</pre><p> However, if I start an Erlang node and make the same command, it will fail. I must first start Mnesia (as ejabberd itself does):</p> <pre>$ erl Eshell V5.5.4 (abort with ^G) 1&gt; mnesia:info(). ===&gt; System info in version {mnesia_not_loaded, nonode@nohost, {1176,642167,688714}}, debug level = none &lt;=== opt_disc. Directory "/home/bernar/insta/ejabberd/Mnesia.nonode@nohost" is NOT used. use fallback at restart = false running db nodes = [] stopped db nodes = [nonode@nohost] ok 2&gt; mnesia:start(). ok 3&gt; mnesia:info(). ---&gt; Processes holding locks &lt;--- ---&gt; Processes waiting for locks &lt;--- ---&gt; Participant transactions &lt;--- ---&gt; Coordinator transactions &lt;--- ---&gt; Uncertain transactions &lt;--- ---&gt; Active tables &lt;--- schema : with 1 records occupying 388 words of mem ===&gt; System info in version "4.3.4", debug level = none &lt;=== opt_disc. Directory "/home/bernar/insta/ejabberd/Mnesia.nonode@nohost" is NOT used. use fallback at restart = false running db nodes = [nonode@nohost] stopped db nodes = [] master node tables = [] remote = [] ram_copies = [schema] disc_copies = [] disc_only_copies = [] [{nonode@nohost,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</pre><p> Some hints you can try:</p> <ul> <li>Verify that the Mnesia libraries were compiled/installed on your system. If they weren't you should probably notice on ejabberd log files. </li><li>Remove old contents of the Mnesia spool and let ejabberd recreate them again from scratch. </li><li>Make sure ejabberd has rights to read/write on Mnesia spool file. ejabberd log files should indicate if this is your problem. </li></ul> Sun, 15 Apr 2007 13:12:07 +0000 mfoss comment 3567 at https://www.ejabberd.im