baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

[mod_muc_limits] Not compatible with Prosody trunk #481

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to join a room using any client
2. Wait for nothing to happen
3. See the server logs for traceback

What is the expected output? What do you see instead?

I see a crash.

What version of the product are you using? On what operating system?

OS: Debian 7 64-bit
Prosody: f2a7ad099e01

(I did a `hg pull -u`and rebuilt + restarted Prosody)

Please provide any additional information below.

Traceback        /lib/prosody/modules/mod_muc_limits.lua:34: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/core/stanza_router.lua:187: in function 'core_post_stanza'
        /lib/prosody/core/stanza_router.lua:135: in function 'dispatch_stanza'
        /lib/prosody/modules/mod_bosh.lua:267: in function 'func'
        /lib/prosody/util/async.lua:88: in function </lib/prosody/util/async.lua:86>
stack traceback:
        (tail call): ?
        /lib/prosody/util/async.lua:149: in function 'run'
        /lib/prosody/modules/mod_bosh.lua:379: in function 'cb_handlestanza'
        /lib/prosody/util/xmppstream.lua:187: in function </lib/prosody/util/xmppstream.lua:167>
        [C]: in function 'parse'
        /lib/prosody/util/xmppstream.lua:274: in function 'feed'
        /lib/prosody/modules/mod_bosh.lua:131: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/net/http/server.lua:222: in function </lib/prosody/net/http/server.lua:164>
        (tail call): ?
        ...
        /lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /lib/prosody/net/http/parser.lua:154: in function 'feed'
        /lib/prosody/net/http/server.lua:150: in function 'onincoming'
        /lib/prosody/net/server_event.lua:636: in function </lib/prosody/net/server_event.lua:586>
        [C]: in function 'loop'
        /lib/prosody/net/server_event.lua:785: in function </lib/prosody/net/server_event.lua:784>
        [C]: in function 'xpcall'
        /lib/prosody/../../bin/prosody:374: in function 'loop'
        /lib/prosody/../../bin/prosody:405: in main chunk
        [C]: ?

ar 13 08:32:53 boshf5de09ec-a1ae-4b45-beee-7d8daeff9353        debug   
Received[c2s]: <iq id='disco3' type='get' to='hej@conference.specimen.me' 
from='richard@specimen.me/www'>
Mar 13 08:32:53 mod_bosh        debug   BOSH stanza received: <presence 
to='hej@conference.specimen.me/richard' from='richard@specimen.me/www'>

Mar 13 08:32:53 boshf5de09ec-a1ae-4b45-beee-7d8daeff9353        debug   
Received[c2s]: <presence to='hej@conference.specimen.me/richard' 
from='richard@specimen.me/www'>
Mar 13 08:32:53 general warn    Attempt to read a non-existent global 'rooms'
stack traceback:
        /lib/prosody/modules/mod_muc_limits.lua:34: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/core/stanza_router.lua:187: in function 'core_post_stanza'
        /lib/prosody/core/stanza_router.lua:135: in function 'dispatch_stanza'
        /lib/prosody/modules/mod_bosh.lua:267: in function 'func'
        /lib/prosody/util/async.lua:88: in function </lib/prosody/util/async.lua:86>
Mar 13 08:32:53 mod_bosh        error   Traceback[bosh]: 
/lib/prosody/modules/mod_muc_limits.lua:34: attempt to index field 'rooms' (a 
nil value)
stack traceback:
        /lib/prosody/modules/mod_muc_limits.lua:34: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/core/stanza_router.lua:187: in function 'core_post_stanza'
        /lib/prosody/core/stanza_router.lua:135: in function 'dispatch_stanza'
        /lib/prosody/modules/mod_bosh.lua:267: in function 'func'
        /lib/prosody/util/async.lua:88: in function </lib/prosody/util/async.lua:86>
stack traceback:
        (tail call): ?
        /lib/prosody/util/async.lua:149: in function 'run'
        /lib/prosody/modules/mod_bosh.lua:379: in function 'cb_handlestanza'
        /lib/prosody/util/xmppstream.lua:187: in function </lib/prosody/util/xmppstream.lua:167>
        [C]: in function 'parse'
        /lib/prosody/util/xmppstream.lua:274: in function 'feed'
        /lib/prosody/modules/mod_bosh.lua:131: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/net/http/server.lua:222: in function </lib/prosody/net/http/server.lua:164>
        (tail call): ?
        ...
        /lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /lib/prosody/net/http/parser.lua:154: in function 'feed'
        /lib/prosody/net/http/server.lua:150: in function 'onincoming'
        /lib/prosody/net/server_event.lua:636: in function </lib/prosody/net/server_event.lua:586>
        [C]: in function 'loop'
        /lib/prosody/net/server_event.lua:785: in function </lib/prosody/net/server_event.lua:784>
        [C]: in function 'xpcall'
        /lib/prosody/../../bin/prosody:374: in function 'loop'
        /lib/prosody/../../bin/prosody:405: in main chunk
        [C]: ?
Mar 13 08:32:53 mod_bosh        error   Traceback[bosh]: 
/lib/prosody/modules/mod_muc_limits.lua:34: attempt to index field 'rooms' (a 
nil value)
stack traceback:
        /lib/prosody/modules/mod_muc_limits.lua:34: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/core/stanza_router.lua:187: in function 'core_post_stanza'
        /lib/prosody/core/stanza_router.lua:135: in function 'dispatch_stanza'
        /lib/prosody/modules/mod_bosh.lua:267: in function 'func'
        /lib/prosody/util/async.lua:88: in function </lib/prosody/util/async.lua:86>
stack traceback:
        (tail call): ?
        /lib/prosody/util/async.lua:149: in function 'run'
        /lib/prosody/modules/mod_bosh.lua:379: in function 'cb_handlestanza'
        /lib/prosody/util/xmppstream.lua:187: in function </lib/prosody/util/xmppstream.lua:167>
        [C]: in function 'parse'
        /lib/prosody/util/xmppstream.lua:274: in function 'feed'
        /lib/prosody/modules/mod_bosh.lua:131: in function '?'
        /lib/prosody/util/events.lua:67: in function 'fire_event'
        /lib/prosody/net/http/server.lua:222: in function </lib/prosody/net/http/server.lua:164>
        (tail call): ?
        ...
        /lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /lib/prosody/net/http/parser.lua:154: in function 'feed'
        /lib/prosody/net/http/server.lua:150: in function 'onincoming'
        /lib/prosody/net/server_event.lua:636: in function </lib/prosody/net/server_event.lua:586>
        [C]: in function 'loop'
        /lib/prosody/net/server_event.lua:785: in function </lib/prosody/net/server_event.lua:784>
        [C]: in function 'xpcall'
        /lib/prosody/../../bin/prosody:374: in function 'loop'
        /lib/prosody/../../bin/prosody:405: in main chunk
        [C]: ?

Original issue reported on code.google.com by rks...@gmail.com on 13 Mar 2015 at 8:35

GoogleCodeExporter commented 9 years ago
Hi, thanks for the report!

This is technically not a Prosody bug. It's caused by mod_muc_limits from 
prosody-modules, which is not compatible with Prosody's trunk development 
branch.

The immediate solution is to either unload mod_muc_limits, or use a stable 
version of Prosody until mod_muc_limits is updated to work with our latest 
changes.

Original comment by MWild1 on 13 Mar 2015 at 11:11

GoogleCodeExporter commented 9 years ago
Thanks a lot, this fixed it. : )

Original comment by rks...@gmail.com on 16 Mar 2015 at 7:07