ejabberd - Comments for "Problem with http_bind and BOSH." https://www.ejabberd.im/node/2858 en yes, problem was in https://www.ejabberd.im/node/2858#comment-51943 <p>yes, problem was in mod_http_bind's absent in modules section. I think it would be better to restrict answers from binding where it is not in the modules section to prevent such configuration mistakes.</p> Wed, 05 Mar 2008 19:52:15 +0000 ejee comment 51943 at https://www.ejabberd.im fixing http_bind https://www.ejabberd.im/node/2858#comment-51921 <p>Apparently you have to have mod_http_bind specified in your modules in order for it to work in ejabberd-2.0.0. I was having similar problem where ejabber would complain that noproc ejabberd_http_bind_sup which is started in mod_http_bind initialization which in turn never occurs if you don't add mod_http_bind into your modules. Haven't found it anywhere but after debugging for what was going wrong with it decided to try this guess and it worked! In case anybody has similar problem, make sure you have line: {mod_http_bind, []} in your modules.</p> Mon, 03 Mar 2008 17:27:37 +0000 Marius_ comment 51921 at https://www.ejabberd.im What was your problem https://www.ejabberd.im/node/2858#comment-51904 <p>What was your problem ?<br /> --<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Fri, 29 Feb 2008 07:37:03 +0000 mremond comment 51904 at https://www.ejabberd.im solved https://www.ejabberd.im/node/2858#comment-51901 <p>solved</p> Thu, 28 Feb 2008 19:52:27 +0000 ejee comment 51901 at https://www.ejabberd.im http-bind problem https://www.ejabberd.im/node/2858#comment-51887 <p>I have problem with http_bind in ejabberd-2.0.0. When I try to create new BOSH session I see this in logs:</p> <div class="codeblock"><code>=CRASH REPORT==== 26-Feb-2008::21:35:32 ===<br />&nbsp; crasher:<br />&nbsp;&nbsp;&nbsp; pid: &lt;0.417.0&gt;<br />&nbsp;&nbsp;&nbsp; registered_name: []<br />&nbsp;&nbsp;&nbsp; exception exit: {noproc,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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nbsp; gen_server:call/3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in call from ejabberd_http_bind:process_request/1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in call from ejabberd_http:process_request/1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in call from ejabberd_http:process_header/2<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in call from ejabberd_http:receive_headers/1<br />&nbsp;&nbsp;&nbsp; initial call: ejabberd_http:receive_headers({state,gen_tcp,#Port&lt;0.422&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; undefined,undefined,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; undefined,undefined,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {[&quot;http-bind&quot;],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mod_http_bind}],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false,[]})<br />&nbsp;&nbsp;&nbsp; ancestors: [ejabberd_http_sup,ejabberd_sup,&lt;0.40.0&gt;]<br />&nbsp;&nbsp;&nbsp; messages: []<br />&nbsp;&nbsp;&nbsp; links: [&lt;0.260.0&gt;,#Port&lt;0.422&gt;]<br />&nbsp;&nbsp;&nbsp; dictionary: []<br />&nbsp;&nbsp;&nbsp; trap_exit: false<br />&nbsp;&nbsp;&nbsp; status: running<br />&nbsp;&nbsp;&nbsp; heap_size: 2584<br />&nbsp;&nbsp;&nbsp; stack_size: 23<br />&nbsp;&nbsp;&nbsp; reductions: 1112<br />&nbsp; neighbours: <p>=SUPERVISOR REPORT==== 26-Feb-2008::21:35:32 ===<br />&nbsp;&nbsp;&nbsp;&nbsp; Supervisor: {local,ejabberd_http_sup}<br />&nbsp;&nbsp;&nbsp;&nbsp; Context:&nbsp;&nbsp;&nbsp; child_terminated<br />&nbsp;&nbsp;&nbsp;&nbsp; Reason:&nbsp;&nbsp;&nbsp;&nbsp; {noproc,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {gen_server,call,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ejabberd_http_bind_sup,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {start_child,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&quot;50a3a68732f65748ef97efff49a1fd8ff71c3170&quot;,[]]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; infinity]}}<br />&nbsp;&nbsp;&nbsp;&nbsp; Offender:&n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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {child_type,worker}]</p></code></div> Tue, 26 Feb 2008 15:55:59 +0000 ejee comment 51887 at https://www.ejabberd.im jwchat configured on apache2 with ejabberd doesn't work https://www.ejabberd.im/node/2858#comment-51864 <p>Hello, I want to use jwchat configured on apache2 with ejabberd. I am using the latest versions. But when I run the jwchat page, click the login button, jwchat window opens but then a message pops out with "service not available" message. When I type <noindex><a href="http://myserver.com/http-bind/" title="http://myserver.com/http-bind/" rel="nofollow" >http://myserver.com/http-bind/</a></noindex> it is redirected to <noindex><a href="http://myserver.com:5280/http-bind/" title="http://myserver.com:5280/http-bind/" rel="nofollow" >http://myserver.com:5280/http-bind/</a></noindex>. This means apache2 is redirecting to http-bind of ejabberd. There is no error log in apache. Is this the problem of ejabberd.<br /> Also if I use jwchat with the mod_http_fileserver feature of ejabberd, it is working fine.<br /> My httpd.conf is like this</p> <p> ServerName myserver.com<br /> DocumentRoot /var/www/jwchat</p> <p> Options +Indexes +MultiViews</p> <p> AddDefaultCharset UTF-8<br /> RewriteEngine On<br /> RewriteRule http-bind/ <noindex><a href="http://myserver.com/http-bind/" title="http://myserver.com/http-bind/" rel="nofollow" >http://myserver.com/http-bind/</a></noindex></p> <p>Please help me. Its been 3 weeks I am working for this.</p> <p>Regards,<br /> Pratik</p> Sun, 24 Feb 2008 09:09:01 +0000 pratikdbl comment 51864 at https://www.ejabberd.im