ejabberd - Comments for "Confused about nodes and hostnames" https://www.ejabberd.im/node/400 en Import user problem solved https://www.ejabberd.im/node/400#comment-824 <p>Solved my own problem. The directory name for the jabberd 1.4 user directory must be the actual host name. My mistake was that I wanted to work with a copy of the original directory for safety, and I renamed it when copying.</p> Sat, 24 Sep 2005 14:52:52 +0000 redhat comment 824 at https://www.ejabberd.im Import users into proper node/host https://www.ejabberd.im/node/400#comment-823 <p>Thank you, this has solved some problems for me.</p> <p>On my machine when I enter hostname -s I get back 'arthur' so I changed my startup script to:</p> <p>#!/bin/bash</p> <p>erl -pa /var/lib/ejabberd/ebin \<br /> -sname arthur \<br /> -s ejabberd \<br /> -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \<br /> log_path \"/var/log/ejabberd/ejabberd.log\" \<br /> -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \<br /> -mnesia dir \"/var/lib/ejabberd/spool\" \<br /> -detached</p> <p>And now the control script works properly like this:</p> <p>ejabberdctl arthur@arthur status</p> <p>Node arthur@arthur is started. Status: started</p> <p>However, I still have at least one problem somewhere. I have to import users from our old jabberd 1.4 installation. It worked, but they did not get added to the proper node, or hostname. I execute a command like this:</p> <p>ejabberdctl arthur@arthur import-dir /home/ejabberd/oldspool</p> <p>There are no errors and the users are imported, but the users seem to be added to the wrong place so I get this:</p> <p>ejabberdctl arthur@arthur registered-users</p> <p><noindex><a href="mailto:ejabberd@jabber.mydomain.com" rel="nofollow" >ejabberd@jabber.mydomain.com</a></noindex><br /> michael@spool<br /> andy@spool</p> <p>The ejabberd user is one I created with a normal jabber client. That user works and I can use that password for the web admin interface. Michael and Andy users were imported.</p> <p>Why are the imported users added to spool? Does that indicate a configuration or startup script problem? How do I get them into jabber.mydomain.com?</p> <p>Thanks again for the help.</p> Sat, 24 Sep 2005 13:15:43 +0000 redhat comment 823 at https://www.ejabberd.im I guess there is a problem https://www.ejabberd.im/node/400#comment-822 <p>I guess there is a problem in your startup script. Instead of using the full hostname to start ejabberd (jabber.mydomain.com), you should put there what you get when you do "hostname -s". Then the error about the illegal hostname should disappear.</p> <p>You also should use this smaller hostname in the ejabberdctl command of course. If ejabberdctl still gives problems, it is probably because you try to run that script as a different user than the user who started ejabberd (different Erlang cookies).</p> <p>--<br /> sander</p> Sat, 24 Sep 2005 08:12:45 +0000 sander comment 822 at https://www.ejabberd.im