zhong ming wu | 1 Feb 2012 11:01
Picon

ejabberd passing ENV variables from client to server

Hello

My test client is Mac OS and the userid on this maiche is being to
passed to the ejabberd server (running on a different machine)

In the ejabberd.log, ejabberd seems to be using jid that it makes up
from this Mac OS userid.

Plus, my extauth script on ejabberd server is receiving strange ENV
variables.  At first it apparently receives $USER as mac OS client
userid.  Next it also seems to be switched to $USER made up from JID
currently connected.

I just don't see how these the correct thing to do.  Is there an RFC
somewhere that these are the right thing to do?  I am very curious
about these.
Vinay S | 2 Feb 2012 04:46
Picon

mod_muc_room crash.

Hi everyone,

I have a chat-room with a few hundred users. In this past week, this room has crashed twice with the following error:

=ERROR REPORT==== 2012-01-27 21:14:45 ===
** State machine terminating
** Last message in was {process_user_presence, .....<UserJID>
....
** When State == normal_state
...
...

** Reason for termination =
** {{badmatch,undefined},
    [{mod_muc_room,prepare_room_queue,1},
     {mod_muc_room,handle_info,3},
     {gen_fsm,handle_msg,7},
     {proc_lib,init_p_do_apply,3}]}

Has anyone seen this error before?
Any help would be greatly appreciated.

Thank you.

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Alexander Kuleshov | 2 Feb 2012 14:13
Picon

Ejabberd perfomance

Hello,

I setup ejabberd v.2.1.6 in 2 x Intel Xeon 5420 Quad Core 2.50 GHz with memory 16GB and and run xmpp bots written with exmpp which sending message to each other every second. Messages are 100b to 2kb.

When i run 5000 - 6000 bots i notice that the messaging starts slowly, how to improve ejabberd perfomance? What is the maximum perfomace can keep ejabberd?

Thank you.
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Franky Orson | 2 Feb 2012 19:42
Picon

Re: Ejabberd perfomance

Did you change the default value of shaper_normal to something higher - if not you might want to try that....

On Thu, Feb 2, 2012 at 5:13 AM, Alexander Kuleshov <kuleshovmail <at> gmail.com> wrote:
Hello,

I setup ejabberd v.2.1.6 in 2 x Intel Xeon 5420 Quad Core 2.50 GHz with memory 16GB and and run xmpp bots written with exmpp which sending message to each other every second. Messages are 100b to 2kb.

When i run 5000 - 6000 bots i notice that the messaging starts slowly, how to improve ejabberd perfomance? What is the maximum perfomace can keep ejabberd?

Thank you.

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Vinay S | 3 Feb 2012 01:40
Picon

Re: mod_muc_room crash.

Just wanted to share some more information about the crash:

This is happening with ejabberd-2.1.6.

It looks like it crashed on this particular line inside the function prepare_room_queue():
{_Nick, Packet} = Activity#activity.presence,

The 'presence' field seems to be undefined, which results in a badmatch error.
This appears like a race condition to me where this code gets executed before somebody could set the activity.presence field.

Please share your thoughts.

Thank you again.

On Wed, Feb 1, 2012 at 7:46 PM, Vinay S <talkerlang <at> gmail.com> wrote:
Hi everyone,

I have a chat-room with a few hundred users. In this past week, this room has crashed twice with the following error:

=ERROR REPORT==== 2012-01-27 21:14:45 ===
** State machine terminating
** Last message in was {process_user_presence, .....<UserJID>
....
** When State == normal_state
...
...

** Reason for termination =
** {{badmatch,undefined},
    [{mod_muc_room,prepare_room_queue,1},
     {mod_muc_room,handle_info,3},
     {gen_fsm,handle_msg,7},
     {proc_lib,init_p_do_apply,3}]}

Has anyone seen this error before?
Any help would be greatly appreciated.

Thank you.

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Stephan Maihöfer | 3 Feb 2012 17:18
Picon
Favicon

muc-disco and s2s

hi,

we seperated our cluster to let a set of nodes do
"basic xmpp stuff" and the other cluster do just
"muc stuff". these two clusters talk to each others using
the s2s protocol.

it seems that disco-queries do not work over s2s connections:

i send:

<iq type="get" to="mucserver" id="ad00a" >
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>

i get:

<iq from="mucserver" type="result" to="user <at> example.com/resource" id="ad00a" >
<query xmlns="http://jabber.org/protocol/disco#items"/>
</iq>

when using RSM i even get:

request: 

<iq id='ad00a' to='mucserver' type='get'>
<query xmlns='http://jabber.org/protocol/disco#items'>
<set xmlns='http://jabber.org/protocol/rsm'>
 <max>20</max>
</set>
</query>
</iq>

result:

<iq from="mucserver" type="result" to="user <at> example.com/resource" id="ad00a" >
<query xmlns="http://jabber.org/protocol/disco#items">
<set xmlns="http://jabber.org/protocol/rsm">
<count>0</count>
</set>
</query>
</iq>

i know there are several rooms that exist on that server
that are persistent and i can join these rooms and even
chat with people there. i just can't get the list of rooms.

is this a known limitation, am i missing some kind of
configuration option?

any help would be greatly appreciated!

thanks in advance,
stephan
Andy Theuninck | 3 Feb 2012 21:06
Picon

ejabberd won't start - how to debug?

I'm trying to migrate ejabberd to a new server (CentOS 6). I installed
ejabberd 2.1.8 from OS-provided binaries. I then copied
/etc/ejabberd/ejabberd.cfg and /etc/ejabberd/ejabberdctl.cfg from my
working server (also CentOS, also 2.1.8) to the new server. When I try
to start ejabberd via the init script, nothing happens.

Digging into the script, the command it's actually running for "start" is this:
ejabberdctl start --config /etc/ejabberd/ejabberd.cfg --ctl-config
/etc/ejabberd/ejabberdctl.cfg --logs /var/log/ejabberd/ --spool
/var/lib/ejabberd/spool

Running it myself, as root, produces no output, writes nothing to the
specified log directory, and does not start ejabberd. Is there any way
to coax more debug information out of ejabberdctl? I'm at a loss how
to find the problem without at least some kind of feedback.
Jorge Guntanis | 4 Feb 2012 00:29
Picon

Re: ejabberd won't start - how to debug?

Try running ejabberdctl live.

On Feb 3, 2012, at 12:06 PM, Andy Theuninck <gohanman <at> gmail.com> wrote:

> I'm trying to migrate ejabberd to a new server (CentOS 6). I installed
> ejabberd 2.1.8 from OS-provided binaries. I then copied
> /etc/ejabberd/ejabberd.cfg and /etc/ejabberd/ejabberdctl.cfg from my
> working server (also CentOS, also 2.1.8) to the new server. When I try
> to start ejabberd via the init script, nothing happens.
> 
> Digging into the script, the command it's actually running for "start" is this:
> ejabberdctl start --config /etc/ejabberd/ejabberd.cfg --ctl-config
> /etc/ejabberd/ejabberdctl.cfg --logs /var/log/ejabberd/ --spool
> /var/lib/ejabberd/spool
> 
> Running it myself, as root, produces no output, writes nothing to the
> specified log directory, and does not start ejabberd. Is there any way
> to coax more debug information out of ejabberdctl? I'm at a loss how
> to find the problem without at least some kind of feedback.
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
Andy Theuninck | 4 Feb 2012 01:38
Picon

Re: ejabberd won't start - how to debug?

Same thing. It doesn't matter at all what arguments (or none) I run
ejabberdctl with. No output, no logging, nothing.

Assuming redhat's ejabberdctl binary is doing roughly the same thing
as the ejabberdctl.template shell script in the 2.1.8 source, I think
the problem is actually in their erlang files. erl crashes immediately
with an Illegal Instruction error.

On Fri, Feb 3, 2012 at 5:29 PM, Jorge Guntanis <guntanis <at> gmail.com> wrote:
> Try running ejabberdctl live.
>
>
>
> On Feb 3, 2012, at 12:06 PM, Andy Theuninck <gohanman <at> gmail.com> wrote:
>
>> I'm trying to migrate ejabberd to a new server (CentOS 6). I installed
>> ejabberd 2.1.8 from OS-provided binaries. I then copied
>> /etc/ejabberd/ejabberd.cfg and /etc/ejabberd/ejabberdctl.cfg from my
>> working server (also CentOS, also 2.1.8) to the new server. When I try
>> to start ejabberd via the init script, nothing happens.
>>
>> Digging into the script, the command it's actually running for "start" is this:
>> ejabberdctl start --config /etc/ejabberd/ejabberd.cfg --ctl-config
>> /etc/ejabberd/ejabberdctl.cfg --logs /var/log/ejabberd/ --spool
>> /var/lib/ejabberd/spool
>>
>> Running it myself, as root, produces no output, writes nothing to the
>> specified log directory, and does not start ejabberd. Is there any way
>> to coax more debug information out of ejabberdctl? I'm at a loss how
>> to find the problem without at least some kind of feedback.
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd <at> jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
Jorge Guntanis | 4 Feb 2012 03:13

Re: ejabberd won't start - how to debug?

Do you have 

{loglevel, 5}.
In your config file? 
When you do "ejabberdctl live" or  "ejabberdctl debug" does it exit erlang or does it seem to be running something and just not outputting anything?


On Fri, Feb 3, 2012 at 4:38 PM, Andy Theuninck <gohanman <at> gmail.com> wrote:
Same thing. It doesn't matter at all what arguments (or none) I run
ejabberdctl with. No output, no logging, nothing.

Assuming redhat's ejabberdctl binary is doing roughly the same thing
as the ejabberdctl.template shell script in the 2.1.8 source, I think
the problem is actually in their erlang files. erl crashes immediately
with an Illegal Instruction error.

On Fri, Feb 3, 2012 at 5:29 PM, Jorge Guntanis <guntanis <at> gmail.com> wrote:
> Try running ejabberdctl live.
>
>
>
> On Feb 3, 2012, at 12:06 PM, Andy Theuninck <gohanman <at> gmail.com> wrote:
>
>> I'm trying to migrate ejabberd to a new server (CentOS 6). I installed
>> ejabberd 2.1.8 from OS-provided binaries. I then copied
>> /etc/ejabberd/ejabberd.cfg and /etc/ejabberd/ejabberdctl.cfg from my
>> working server (also CentOS, also 2.1.8) to the new server. When I try
>> to start ejabberd via the init script, nothing happens.
>>
>> Digging into the script, the command it's actually running for "start" is this:
>> ejabberdctl start --config /etc/ejabberd/ejabberd.cfg --ctl-config
>> /etc/ejabberd/ejabberdctl.cfg --logs /var/log/ejabberd/ --spool
>> /var/lib/ejabberd/spool
>>
>> Running it myself, as root, produces no output, writes nothing to the
>> specified log directory, and does not start ejabberd. Is there any way
>> to coax more debug information out of ejabberdctl? I'm at a loss how
>> to find the problem without at least some kind of feedback.
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd <at> jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Gmane