[ejabberd] Ejabberd crash report

Badlop badlop at gmail.com
Fri Jul 4 14:07:32 MSD 2008


On Fri, Jul 4, 2008 at 11:36 AM, Gonçalo Duarte <pingu22 at gmail.com> wrote:
> I can't understand the error log so I hope someone could help me with this
> error.
>
> =CRASH REPORT==== 4-Jul-2008::10:27:32 ===
>   crasher:
>     pid: <0.341.0>
>     registered_name: []
>     error_info: {function_clause,[{lists,thing_to_list,[{89,180,179,244}]},
>                                    {lists,flatmap,2},
>                                    {lists,foldl,3},
>                                    {mod_http_fileserver,log,3},
>                                    {mod_http_fileserver,process,2},
>                                    {ejabberd_http,process_request,1},
>                                    {ejabberd_http,process_header,2},
>                                    {ejabberd_http,receive_headers,1}]}
>
> This happens when I try to access to jwchat via web. I installed ejabberd
> from source (last svn version) and added 3 modules (bind-http, fileserver
> and mysql).
> I can access ejabberd admin with no problem so I think it is some problem
> with fileserver.

What version of Erlang/OTP?

You can apply this patch, and let's see the result. It may help to
find the problem is:

***********************
--- src/web/mod_http_fileserver.erl     (revisión: 671)
+++ src/web/mod_http_fileserver.erl     (copia de trabajo)
@@ -108,6 +108,9 @@

 log(File, Code, Request) ->
     {{Year, Month, Day}, {Hour, Minute, Second}} = calendar:local_time(),
+    ?INFO_MSG("Request.ip: ~p", [Request#request.ip]),
+    ?INFO_MSG("List: ~p", [tuple_to_list(Request#request.ip)]),
+    ?INFO_MSG("Joined: ~p", [join(tuple_to_list(Request#request.ip), ".")]),
     IP = join(tuple_to_list(Request#request.ip), "."),
     Path = join(Request#request.path, "/"),
     Query = case join(lists:map(fun(E) -> lists:concat([element(1,
E), "=", element(2, E)]) end,
*********************


More information about the ejabberd mailing list