ejabberd - Comments for "mod_http_fileserver doesn&amp;#039;t show the content" https://www.ejabberd.im/node/3065 en Solution https://www.ejabberd.im/node/3065#comment-53288 <p>A solution is to edit Emakefile of mod_http_fileserver and remove this: </p> <pre>{d,'SSL39'},</pre><p> However, once you have a chance, upgrade that old 'Erlang 11b.2-4' to Erlang/OTP R11B-5 or newer.</p> <p>Related ticket: <noindex><a href="https://support.process-one.net/browse/EJAB-628" rel="nofollow" >Use httpd_util:to_lower when not compiling with Erlang R12</a></noindex></p> Fri, 13 Jun 2008 18:49:54 +0000 mfoss comment 53288 at https://www.ejabberd.im Me too! https://www.ejabberd.im/node/3065#comment-53287 <p>Hi, I'm having what seems like a very similar problem to this. </p> <p>I've set up mod_http_fileserver and mod_http_bind using ejabberd 2.0 (latest svn trunk as of today). Basically I followed the instructions at <a href="http://www.ejabberd.im/jwchat-localserver" title="http://www.ejabberd.im/jwchat-localserver">http://www.ejabberd.im/jwchat-localserver</a>.</p> <p>Both modules were built from the latest svn trunk and copied into /var/lib/ejabberd/ebin, chowned to ejabberd user and group. Viewing any file results in a server crash, and no output being displayed into the browser. Interestingly, directory viewing "works", i.e. it gives the expected "eisdir".</p> <p>Here's the server crash output from /var/log/ejabberd/sasl.log when trying to view a text file (same thing happens for html files, except that the string, to_lower, [".txt"]} becomes ".html"):</p> <p>=CRASH REPORT==== 13-Jun-2008::18:01:13 ===<br /> crasher:<br /> pid: &lt;0.334.0&gt;<br /> registered_name: []<br /> error_info: {undef,[{string,to_lower,[".txt"]},<br /> {mod_http_fileserver,content_type,1},<br /> {mod_http_fileserver,serve,1},<br /> {mod_http_fileserver,process,2},<br /> {ejabberd_http,process_request,1},<br /> {ejabberd_http,process_header,2},<br /> {ejabberd_http,receive_headers,1},<br /> {proc_lib,init_p,5}]}<br /> initial_call: {ejabberd_http,receive_headers,<br /> [{state,<br /> gen_tcp,<br /> #Port&lt;0.413&gt;,<br /> undefined,<br /> undefined,<br /> undefined,<br /> undefined,<br /> undefined,<br /> undefined,<br /> "en",<br /> [{["web"],mod_http_fileserver},<br /> {["admin"],ejabberd_web_admin},<br /> {["http-bind"],mod_http_bind},<br /> {["http-poll"],ejabberd_http_poll}],<br /> false,<br /> []}]}<br /> ancestors: [ejabberd_http_sup,ejabberd_sup,&lt;0.36.0&gt;]<br /> messages: []<br /> links: [&lt;0.233.0&gt;,#Port&lt;0.413&gt;]<br /> dictionary: []<br /> trap_exit: false<br /> status: running<br /> heap_size: 377<br /> stack_size: 21<br /> reductions: 5104<br /> neighbours:</p> <p>=SUPERVISOR REPORT==== 13-Jun-2008::18:01:13 ===<br /> Supervisor: {local,ejabberd_http_sup}<br /> Context: child_terminated<br /> Reason: {undef,[{string,to_lower,[".txt"]},<br /> {mod_http_fileserver,content_type,1},<br /> {mod_http_fileserver,serve,1},<br /> {mod_http_fileserver,process,2},<br /> {ejabberd_http,process_request,1},<br /> {ejabberd_http,process_header,2},<br /> {ejabberd_http,receive_headers,1},<br /> {proc_lib,init_p,5}]}<br /> Offender: [{pid,&lt;0.334.0&gt;},<br /> {name,undefined},<br /> {mfa,{ejabberd_http,start_link,<br /> [{gen_tcp,#Port&lt;0.413&gt;},<br /> [{request_handlers,<br /> [{["web"],mod_http_fileserver}]},<br /> http_bind,<br /> http_poll,<br /> web_admin]]}},<br /> {restart_type,temporary},<br /> {shutdown,brutal_kill},<br /> {child_type,worker}]</p> <p>Any ideas? It seems like it's really close to working, and it's been fun to mess around with (the ejabberd server is working great otherwise). My environment:</p> <p>Debian Etch<br /> Erlang 11b.2-4 (that's from the Debian showpkg, let me know if it's wrong as I don't understand Erlang versioning too well)<br /> ejabberd built from r1353 (trunk)<br /> ejabberd-modules built from r642 (trunk)</p> Fri, 13 Jun 2008 18:04:43 +0000 yossarian comment 53287 at https://www.ejabberd.im Strange problem https://www.ejabberd.im/node/3065#comment-53198 <div class="quote-msg"> <div class="quote-author"><em>vdittgen</em> wrote:</div> <p>/var/log/ejabberd/ejabberd.log:</p></div> <p>Ohh, it's strange that it doesn't show any error message.</p> <p>Can you check also sasl.log, and both files since the beginning of ejabberd?</p> <div class="quote-msg"> <div class="quote-author"><em>vdittgen</em> wrote:</div> <p>Ejabberd 2.0.1 from svn, revision 1342, without tls suport.</p></div> <p>Do you mean trunk/, branches/ejabberd-2.0.x or tags/ejabberd-2.0.1 ?</p> <p>And what SVN revision of ejabberd-modules ?</p> <p>Also: which version of Erlang/OTP?</p> Thu, 29 May 2008 10:35:02 +0000 mfoss comment 53198 at https://www.ejabberd.im