What steps will reproduce the problem?
1. /etc/init.d/prosody start
2. tail -f /var/log/prosody/prosody.err
3. Connect to prosody with a Jabber client and try to join a room on a remote
server.
What is the expected output? What do you see instead?
The error below is not fatal, but it seems to keep s2s from working. This is
similar to issue #320.
Sep 21 00:52:14 mod_c2s error Traceback[c2s]: /usr/lib/prosody/net/adns.lua:43:
/usr/lib/prosody/net/dns.lua:226: bad argument #1 to 'randomseed' (integer
expected, got number)
stack traceback:
[C]: ?
/usr/lib/prosody/net/adns.lua:43: in function 'lookup'
/usr/lib/prosody/modules/mod_s2s/s2sout.lib.lua:87: in function 'attempt_connection'
/usr/lib/prosody/modules/mod_s2s/s2sout.lib.lua:52: in function 'initiate_connection'
/usr/lib/prosody/modules/mod_s2s/mod_s2s.lua:129: in function '?'
/usr/lib/prosody/util/events.lua:67: in function 'fire_event'
/usr/lib/prosody/core/stanza_router.lua:211: in function 'core_route_stanza'
/usr/lib/prosody/core/stanza_router.lua:188: in function 'core_post_stanza'
/usr/lib/prosody/core/stanza_router.lua:132: in function </usr/lib/prosody/core/stanza_router.lua:55>
(tail call): ?
...
[C]: in function 'parse'
/usr/lib/prosody/util/xmppstream.lua:255: in function 'feed'
/usr/lib/prosody/modules/mod_c2s.lua:230: in function 'data'
/usr/lib/prosody/modules/mod_c2s.lua:252: in function </usr/lib/prosody/modules/mod_c2s.lua:249>
(tail call): ?
/usr/lib/prosody/net/server_select.lua:848: in function </usr/lib/prosody/net/server_select.lua:830>
[C]: in function 'xpcall'
/usr/lib/prosody/../../bin/prosody:373: in function 'loop'
/usr/lib/prosody/../../bin/prosody:403: in main chunk
[C]: ?
What version of the product are you using? On what operating system?
I am using prosody 0.9.4 on OpenWrt/Linux/32-bit MIPS. Lua versions in use are:
liblua: 5.1.5
lua: 5.1.5
luaexpat: 1.3.0
luafilesystem: 1.6.2
luasec: 0.4
luasocket: 3.0-rc1-20130909
Please provide any additional information below.
In dns.lua, I temporarily changed:
math.randomseed(math.floor(10000*socket.gettime()) % 0x100000000);
to:
math.randomseed(math.floor(10000*socket.gettime()) % 0x10000000);
Removing a digit from the modulus operand made the problem go away.
Original issue reported on code.google.com by m...@flyn.org on 21 Sep 2014 at 1:06
Original issue reported on code.google.com by
m...@flyn.org
on 21 Sep 2014 at 1:06