ejabberd - Comments for "mod_http_fileserver crash aften first view page" https://www.ejabberd.im/node/3216 en i'm enable module in config, https://www.ejabberd.im/node/3216#comment-53598 <p>i'm enable module in config, after we migrate to ejabberd 2.0.0<br /> int work &amp; work &amp; work... but after i upgrade to 2.0.2 it crash.</p> <p>install - gentoo linux, Erlang/OTP R12B-3.</p> <p>i'm try view logs</p> Fri, 26 Sep 2008 19:23:01 +0000 evadim comment 53598 at https://www.ejabberd.im Another possibility https://www.ejabberd.im/node/3216#comment-53592 <p>The error means that the ETS table with the module configuration cannot be read because it doesn't exist. That table doesn't exist because the module is not running: either it was not enabled (you have explained that you enabled it correctly), or it crashed previously (maybe a bug in the module code).</p> <p>Maybe this is what happens in your case?</p> <ol> <li>You enable the module correctly in ejabberd.cfg </li><li>Start ejabberd correctly </li><li>You browse a file correctly </li><li>Then, for some reason (a bug?), mod_http_fileserver crashes. The table is automatically deleted. </li><li>When you request another object, ejabberd complains with the error messages you showed: the table doesn't exist. </li></ol> <p>Can you check if there is any error message (in ejabberd.log or sasl.log) before the two error messages you showed? Maybe the reason of the real crash is reported before.</p> <p>I tried with ejabberd 2.0.2 (compiled from official source code package) with Erlang/OTP R12B-3 and with the configuration you showed, and I don't see the problem. How did you install ejabberd: binary installer in linux, or windows, or some OS package...?</p> <p>BTW, do you enable the module using ejabberd.cfg, or in Web Admin?</p> Fri, 26 Sep 2008 10:02:21 +0000 mfoss comment 53592 at https://www.ejabberd.im all configured https://www.ejabberd.im/node/3216#comment-53585 <p>module configured correctly, and in ejabberd 2.0.0 &amp; 2.0.1 works fine.<br /> Now, i can view only one page - after i open page in browser - module crash in few seconds with message i posted above.<br /> my settings:</p> <p>in listen section</p> <pre> {5280, ejabberd_http, [ http_poll, {request_handlers, [ {["pub", "archive"], mod_http_fileserver} ] } ]}, </pre><p> in modules section</p> <pre> {mod_http_fileserver, [ {docroot, "/var/www/jabber.example.com/htdocs"}, {accesslog, "/var/log/jabber/muc-access.log"} ] }, </pre> Thu, 25 Sep 2008 05:09:23 +0000 evadim comment 53585 at https://www.ejabberd.im Make sure the module is enabled before requesting an URL https://www.ejabberd.im/node/3216#comment-53581 <p>You defined the request_handlers in the 'listen' section of ejabberdl.cfg</p> <p>But are you sure you also enabled mod_http_fileserver in the 'modules' section?</p> <p>Remember that you need to enable the module, for example:</p> <pre> {modules, [ ... {mod_http_fileserver, [ {docroot, "/var/www"}, {accesslog, "/var/log/ejabberd/access.log"} ] }, ... ]}. </pre><p> In the Web Admin, is the module shown before you try to browse pub/archive ?</p> <p>When you fix this problem, you will probably notice that mod_http_fileserver does not list content of directories: you need to provide the exact name of files.</p> Wed, 24 Sep 2008 22:11:11 +0000 mfoss comment 53581 at https://www.ejabberd.im