ejabberd - Comments for "Can&amp;#039;t get Ejabberd to work on Debian Sarge - HAYELP!" https://www.ejabberd.im/node/469 en Thanks, that works https://www.ejabberd.im/node/469#comment-990 <p>Yup using the command:<br /> su ejabberd -c "../tools/ejabberdctl ejabberd@ukec4deb1 status"</p> <p>FROM the src directory works...</p> <p>So now I need to write a script to do that and to take pass the variables I want it to use...</p> <p>Hmmmm</p> <p>need to work out how to write a script now - can't be too different from batch scripts in DOS...</p> <p>Argon0</p> Thu, 03 Nov 2005 11:28:32 +0000 Argon0 comment 990 at https://www.ejabberd.im a list of directories would https://www.ejabberd.im/node/469#comment-984 <blockquote><p>a list of directories would be helpful</p></blockquote> <p><pre>$ make install ... install -d /var/lib/ejabberd/ebin install -m 644 *.beam /var/lib/ejabberd/ebin rm -f /var/lib/ejabberd/ebin/configure.beam install -m 644 *.app /var/lib/ejabberd/ebin install -d /var/lib/ejabberd/priv/lib install -m 644 *.so /var/lib/ejabberd/priv/lib install -d /var/lib/ejabberd/priv/msgs install -m 644 msgs/*.msg /var/lib/ejabberd/priv/msgs install -d /etc/ejabberd install -b -m 644 ejabberd.cfg.example /etc/ejabberd/ejabberd.cfg install -d /var/log/ejabberd</pre></p> <blockquote><p> when I run it from the src dir</p></blockquote> <p>I think this is the right way to exec it.</p> <blockquote><p>Connection attempt from disallowed node ejabberdctl@ukec4deb1</p></blockquote> <p>Try executing ejabberdctl with the same system user that executes ejabberd.</p> Wed, 02 Nov 2005 19:07:21 +0000 mfoss comment 984 at https://www.ejabberd.im File Locations & ejabberdctl https://www.ejabberd.im/node/469#comment-981 <p>Well, no, not really - a list of directories would be helpful...</p> <p>At the moment my files are spread around in some odd places - the only "standard" one seems to be /etc/ejabberd/ejabberd.cfg<br /> (for instance ejabberdctl is in "/ejabberd/ejabberd/tools", and I've had to add a path line to get it to launch...</p> <p>As to running ejabberdctl...</p> <p>I get this when running it from the tools dir:<br /> "{"init terminating in do_boot",{undef,[{ejabberd_ctl,start,[]},{init,start_it,1},{init,start_em,1}]}}</p> <p>Crash dump was written to: erl_crash.dump<br /> init terminating in do_boot ()<br /> "</p> <p>And nothing (except the help page) when I run it from the src dir (/ejabberd/ejabberd/src).. Checking the ejabberd.log file I see this at the time I try and run ejabberdctl:<br /> =ERROR REPORT==== 2005-11-02 11:57:04 ===<br /> ** Connection attempt from disallowed node ejabberdctl@ukec4deb1 ** </p> <p>Anything I can do?</p> <p>Argon0</p> Wed, 02 Nov 2005 12:13:58 +0000 Argon0 comment 981 at https://www.ejabberd.im Thanks & Issues with the JWCHAT Tutorial https://www.ejabberd.im/node/469#comment-980 <p>Following an e-mail exchange with Stefan Strigler (creator of JWCHAT(?)) I have identified an issue tiwh tht Tutorial for JWCHAT...</p> <p>The Tutorial says: </p> <p>#<br /> Configure JWChat</p> <p>Edit config.js to suit your needs. Particularly important are these options:</p> <p>var JABBERSERVER = "jabber.mycompany.com"<br /> var HTTPBASE = "http-poll/";<br /> var DEFAULTCONFERENCEROOM = "talks";<br /> var DEFAULTCONFERENCESERVER = "conference.jabber.mycompany.com";</p> <p>#</p> <p>In Stefan's words: </p> <p>"Yes, configuration has changed slightly at this point as JWChat supports<br /> choosing from more then one backend now (if more then one has been<br /> configured). Thus HTTPBASE and JABBERSERVER have been replaced by a<br /> BACKENDS array."</p> <p>Thus tutorial needs amendment - at least for version 1.02Beta.</p> <p>The Variables that NEED to be set are: </p> <p>var SITENAME = "jabber.company.com";<br /> var DEFAULTRESOURCE = "jwchat";</p> <p>The rest should be </p> <p>Argon0</p> <p>P.s. will post this as a new topic as well.</p> Wed, 02 Nov 2005 11:58:46 +0000 Argon0 comment 980 at https://www.ejabberd.im where all the files "Should" https://www.ejabberd.im/node/469#comment-975 <blockquote><p>where all the files "Should" be,</p></blockquote> <p>Check if the explanation on <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=171" rel="nofollow" >Bug #171</a></noindex> is clear enought.</p> <blockquote><p>and how to get ejabberdctl to work (it doesn't recognise my server, despite me knowing its up, and being in the admin page!)</p></blockquote> <p>ejabberdctl NODENAME COMMAND, where NODENAME is the Erlang node name. Check the ejabberd logs for the exact node name. It may be something like 'ejabberd@hostname'.</p> <blockquote><p>Also how to get ejabberd to launch on server start</p></blockquote> <p>Writting a script and adding it to init.d. Download and look at the Debian package as an example.</p> <blockquote><p>how to "stop" the service</p></blockquote> <p>Using ejabberdctl.</p> Tue, 01 Nov 2005 16:30:16 +0000 mfoss comment 975 at https://www.ejabberd.im Ah,well, I'm getting https://www.ejabberd.im/node/469#comment-974 <p>Ah,well, I'm getting somewhere, when I point the start up line at somewhere I KNOW there is a "valid" ejabberd.cfg file (i.e.<br /> su ejabberd -c "erl -s ejabberd -name ejabberd -ejabberd config '\"/etc/ejabberd/ejabberd.cfg\"'") it doesn't error.</p> <p>From an alternative console I can now kick off a telnet localhost 5222 and get connected AND get some xml sent back to me when I type anything (good jabber behaviour)....</p> <p>Hmmm - well it looks like I've got it working... Now I just need to know where all the files "Should" be, and how to get ejabberdctl to work (it doesn't recognise my server, despite me knowing its up, and being in the admin page!)...</p> <p>Also how to get ejabberd to launch on server start... But that can't be too diccifult.. But I also need to know how to "stop" the service (without ejabberdctl working - well I can at least do that from the admin interface!).</p> Tue, 01 Nov 2005 13:56:49 +0000 Argon0 comment 974 at https://www.ejabberd.im OK, I have now gone back to https://www.ejabberd.im/node/469#comment-972 <p>OK, I have now gone back to scratch - uninstalled everything to do with Ejabberd, and followed the tutorial to do everything from source, including installing erlang, and Ejabberd...</p> <p>Now I'm stuck again...</p> <p>I have mnsesia installed (I get the same response as you get above).</p> <p>When I run the start command from the tutorial I just get a new line...</p> <p>(no ejabberd process running when I check processes though).</p> <p>If I remove the -detached I get an error about long name, so I change the tag to -sname ejabberd and then I get this:<br /> =INFO REPORT==== 1-Nov-2005::12:16:45 ===<br /> application: ejabberd<br /> exited: "invalid return value from ejabberd_app:start(normal,[]) -&gt; {'EXIT',\"no such file or directory\"}"<br /> type: temporary</p> <p>Which is probable to do with the lack of ejabberd.cfg</p> <p>Where should all the files be following the install from source..</p> <p>And what should path point to in order to enable everything...</p> <p>Thanks for your help</p> <p>Argon0</p> Tue, 01 Nov 2005 12:36:27 +0000 Argon0 comment 972 at https://www.ejabberd.im Check if Mnesia is installed https://www.ejabberd.im/node/469#comment-971 <blockquote><p>exited: "invalid return value from ejabberd_app:start(normal,[]) -&gt; {'EXIT',\n {undef,\n [{mnesia,\n system_info,\n [extra_db_nodes]}</p></blockquote> <p>That error indicates that the Mnesia library (included in Erlang/OTP) was not available for ejabberd to use it. </p> <p>If you compiled Erlang from source, check that the Mnesia library files were compiled and installed. In my computer I have 29 *.beam files:</p> <pre>$ ls /usr/local/lib/erlang/lib/mnesia-4.2.3/ebin/*.beam | wc 29 29 1838</pre><p> If they are installed, check if Erlang can load and start it:</p> <pre>$ erl Erlang (BEAM) emulator version 5.4.10 [source] [hipe] Eshell V5.4.10 (abort with ^G) 1&gt; mnesia:start(). ok 2&gt; q(). ok $</pre> Mon, 31 Oct 2005 18:59:56 +0000 mfoss comment 971 at https://www.ejabberd.im Permissions are OK https://www.ejabberd.im/node/469#comment-970 <p>I've checked permissions on the directories involved, and they are all very loose (i.e. 777).</p> <p>If I try and start ejabberd using the erl command like so:<br /> erl -pa /usr/lib/erlang/lib/ejabberd-0.9.8/ebin -sname jabber -s ejabberd</p> <p>I get the followin output:<br /> Erlang (BEAM) emulator version 5.1 [source]</p> <p>Eshell V5.1 (abort with ^G)<br /> (jabber@ukec4deb1)1&gt;<br /> =INFO REPORT==== 31-Oct-2005::10:16:57 ===<br /> application: ejabberd<br /> exited: "invalid return value from ejabberd_app:start(normal,[]) -&gt; {'EXIT',\n {undef,\n [{mnesia,\n system_info,\n [extra_db_nodes]},\n {ejabberd_app,db_init,0},\n {ejabberd_app,start,2},\n {application_master,start_it_old,4}]}}"<br /> type: temporary</p> <p>Checking Status - I get nodedown..</p> <p>HAYELP!!!</p> Mon, 31 Oct 2005 10:33:26 +0000 Argon0 comment 970 at https://www.ejabberd.im Log Files... https://www.ejabberd.im/node/469#comment-969 <p>I can't find any....</p> <p>Checking processes with Webmin I come up with this:</p> <p>For process /usr/lib/erlang/erts-5.1/bin/beam -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -sname ejabberd -s ejabberd -kernel inetrc "/etc/ejabberd/inetrc" -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" -sasl sasl_error_logger {file,"/var/log/ejabberd/sasl.log"} -mnesia dir "/var/lib/ejabberd" -noshell -noinp_shell -noshell -noinput (PID 5738)</p> <p>Which implies the logs should be in /var/logs/ejabberd but this directory is empty...</p> <p>I'll check the permissions on that dir but don't think that's going to be the issue.</p> <p>Argon0</p> Mon, 31 Oct 2005 10:05:47 +0000 Argon0 comment 969 at https://www.ejabberd.im That's what I was hoping to https://www.ejabberd.im/node/469#comment-968 <p>That's what I was hoping to try - (I read up about that in the Jabberd manual)....</p> <p>I'll reply to your other post separately, once I've checked out the Log files.</p> <p>Thanks</p> <p>Argon0</p> Mon, 31 Oct 2005 09:50:06 +0000 Argon0 comment 968 at https://www.ejabberd.im I can stop and start the https://www.ejabberd.im/node/469#comment-966 <blockquote><p>I can stop and start the server nicely, I can check on the status, using ejabberctl status.</p></blockquote> <p>Check the logs. It will have a lot of informational 'PROGRESS REPORT'. Look for 'ERROR REPORT' or other messages.</p> Fri, 28 Oct 2005 19:43:20 +0000 mfoss comment 966 at https://www.ejabberd.im if I try to telnet to it on https://www.ejabberd.im/node/469#comment-965 <blockquote><p>if I try to telnet to it on 5222 I get nothing</p></blockquote> <p>I tried this:</p> <pre>$ telnet 127.0.0.1 5222 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. eoooo &lt;?xml version='1.0'?&gt; &lt;stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='none' from='localhost' version='1.0'&gt; &lt;stream:error&gt; &lt;xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/&gt; &lt;/stream:error&gt; &lt;/stream:stream&gt; Connection closed by foreign host.</pre> Fri, 28 Oct 2005 19:40:49 +0000 mfoss comment 965 at https://www.ejabberd.im Oh, and if I try to telnet https://www.ejabberd.im/node/469#comment-964 <p>Oh, and if I try to telnet to it on 5222 I get nothing - But if I check the processes (using Webmin) I can see it is listening on 30000 (and something e.g. 32771) I have telnetted to this address locally - and connect - but get thrown out after a few seconds.</p> <p>AND I can't get to the webadmin screen either.</p> <p>Argon0</p> Fri, 28 Oct 2005 15:59:55 +0000 Argon0 comment 964 at https://www.ejabberd.im