[ejabberd] ejabber 2.1.4-1 and JWChat

Leslie G. Seigneur les at uark.edu
Mon Aug 16 21:40:53 MSD 2010


 I have been trying to get jwchat and ejabberd 2.1.4-1 working with ejabberd's http-bind and file server.  I can't seem to connect to http-bind using jwchat.  The login button is working but I can't get online. Http-bind seems to be working since I can go to the http-bind url at https://myserver:5280/http-bind and get a response saying "Am implementation of XMPP over BOSH (XEP-2060)"  JWChat was working until I upgraded to ejabberd 2.1.4-1.el5 using yum.  It appears to be a service-unavailable error.  Has there been a change to http-bind in 2.1.4 that may be causing this issue?  Any other suggestions as to how I can get JWChat working with ejabberd?  Any help is appreciated.

Here are the pertinent lines in my ejabberd.cfg:

{5222, ejabberd_c2s, [



            {certfile, "/etc/pki/tls/certs/server.pem"}, starttls_required,



            {access, c2s},

            {shaper, c2s_shaper},

            {max_stanza_size, 65536}

               ]},



{5280, ejabberd_http, [

               {request_handlers, [

                                    {["web"], mod_http_fileserver}

               ]},

             http_bind,

             http_poll,

             web_admin,

             tls,

             {certfile, "/etc/pki/tls/certs/server.pem"}

            ]},







  {mod_http_bind,  []},

  {mod_http_fileserver, [

                         {docroot, "/var/lib/ejabberd/www/jwchat"},

                         {accesslog, "/var/log/ejabberd/webaccess.log"}

  ]},



My jwchat config.js backends look like this:

var BACKENDS =

[

        {

            name:"Native Binding",

            description:"Ejabberd's native HTTP Binding backend",

            httpbase:"/http-bind/",

            type:"binding",

            servers_allowed:[SITENAME]

        },

    {

        name:"Native Polling",

        description:"Ejabberd's native HTTP Polling backend",

        httpbase:"/http-poll/",

        type:"polling",

        servers_allowed:[SITENAME]

     },

];



Also, I have a crash report in the erland.log. Does this indicate that http-bind is crashing?  BTW I changed the server name in the crash report below.

=CRASH REPORT==== 16-Aug-2010::11:59:37 ===

  crasher:

    pid: <0.7865.1>

    registered_name: []

    exception exit: {noproc,

                        {gen_fsm,sync_send_all_state_event,

                            [<0.7909.1>,

                             {http_put,260825,

                                 [{"content","text/xml; charset=utf-8"},

                                  {"hold","1"},

                                  {"xmlns",

                                   "http://jabber.org/protocol/httpbind"},

                                  {"to","my.jabber.edu"},

                                  {"wait","300"},

                                  {"rid","260825"},

                                  {"route","xmpp:my.jabber.edu:5222"},

                                  {"secure","false"},

                                  {"newkey",

                                   "09f88888a728abe1fbb9c772b4ad4422d2ff6c55"},

                                  {"ver","1.6"},

                                  {"xmlns:xmpp","urn:xmpp:xbosh"},

                                  {"xmpp:version","1.0"}],

                                 [],295,1,

                                 {"my.jabber.edu","1.0"},

                                 {{130,184,12,20},63988}},

                             30000]}}

      in function  gen_fsm:sync_send_all_state_event/3

      in call from ejabberd_http_bind:http_put/7

      in call from ejabberd_http_bind:handle_http_put/7

           in call from ejabberd_http:process/2

      in call from ejabberd_http:process_request/1

      in call from ejabberd_http:process_header/2

      in call from lists:foldl/3

      in call from ejabberd_http:receive_headers/1

    initial call: ejabberd_http:init/2

    ancestors: [ejabberd_http_sup,ejabberd_sup,<0.35.0>]

    messages: []

    links: [#Port<0.79641>,<0.204.0>,#Port<0.79640>]

    dictionary: []

    trap_exit: false

    status: running

    heap_size: 6765

    stack_size: 23

    reductions: 27723

  neighbours:



















-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100816/0bd2e8b0/attachment.html>


More information about the ejabberd mailing list