Andy Theuninck | 9 Feb 18:31
Picon
Gravatar

LDAP + Shared Roster (2.1.8)

I'm trying to move ejabberd from one server to another. Both are
running version 2.1.8. I'm using ldap for auth_method and
mod_vcard_ldap on both (in fact, both servers are using identical
ejabberd.cfg).

I logged into the web admin interface on the new server and created a
shared roster group w/ members "@all@". When I log into the new
server, I get the roster group but it contains zero users.

I have to be overlooking some obvious step, but I can't figure out
what; google shows me the 1.0.0 shared roster doc from back when
shared rosters and LDAP didn't work. I know it can work, because it
does on the old server, but I can't figure out what is different in
the new setup.
caox | 8 Feb 06:50
Gravatar

Fwd: in-band registration in ejabberd



Begin forwarded message:

From: "cao.xu" <cao.xu <at> rytong.com>
Date: 2012年2月8日 下午01时44分51秒格林尼治标准时间+0800
Subject: in-band registration in ejabberd

Hi,

I want to use the in-band registration feature of ejabberd. I got an error xml response after sent the register request.

after I sent :

<iq type='get' id='reg1' to='shakespeare.lit'>
 
<query xmlns='jabber:iq:register'/>
</iq>



I got :

"<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2574077779' from='localhost' xml:lang='en'><stream:error><invalid-namespace xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>" 


What is wrong? Appreciate your help.

B.R.

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Michael Weibel | 6 Feb 08:41
Picon

Unit testing ejabberd modules

Hi all,

do you have any recommendations on how to unit test ejabberd modules?

Thanks
- Michael

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Niels van Hecke | 4 Feb 07:51
Picon
Gravatar

Where are all the table data at?

I have been working on making a special message filter/logger module for 
the company that I work for. We have a mysql database with user info 
that I pull info from and shove into a mnesia table. On our development 
server everything worked. I put the data in and the data comes out when 
I need it. When I moved to our production server, however, I found that 
mnesia:read was returning an empty list despite having good keys. I put 
trace statements in the data entry location and just after the table is 
filled and my data is there. But when I call it when I need it, the data 
is no longer in the table, but the table is still there. No errors 
(other than mnesia:read returning an empty list) show up in either the 
ejabberd log, erlang log or the sasl log. What could be going wrong? The 
only place I clear the table is directly after I create it which is 
before I fill it. Is there something I am missing?

Niels van Hecke
Andy Theuninck | 3 Feb 21:06
Picon
Gravatar

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.
Stephan Maihöfer | 3 Feb 17:18
Picon
Favicon
Gravatar

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
Alexander Kuleshov | 2 Feb 14:13
Picon
Gravatar

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
Vinay S | 2 Feb 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
zhong ming wu | 1 Feb 11:01
Picon
Gravatar

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.
Hisham Mardam Bey | 31 Jan 20:22
Picon
Gravatar

extauth: parallel or serial?

Hi folks,

If I were to write an extauth script for ejabberd would ejabberd run
multiple copies at the same time to authenticate users in parallel?
What happens when a lot of users try to authenticate at the same time?
Will the single instance serially authenticate them all? I've seen
comments mentioning that more than one copy of the extauth script may
be running but I haven found anything that says conclusively what
controls this and how it handles parallelism.

Thanks for you guys folks!

hmb.

--

-- 
Hisham Mardam-Bey
http://hisham.cc/
zhong ming wu | 31 Jan 18:25
Picon
Gravatar

Fwd: Re: 'ejabberdctl registered_users' crashes

Forgot to send this info to list

Thanks

---------- Forwarded message ----------
From: "zhong ming wu" <mr.z.m.wu <at> gmail.com>
Date: Jan 30, 2012 2:22 PM
Subject: Re: [ejabberd] &apos;ejabberdctl registered_users&apos; crashes
To: "Konstantin Khomoutov" <flatworm <at> users.sourceforge.net>


On Jan 30, 2012 12:51 PM, "Konstantin Khomoutov" <flatworm <at> users.sourceforge.net> wrote:
>

> You did not answer the question: have you installed ejabberd,
> configured it to use extauth and/or ODBC and only then you *started it
> for the first time* (and after that a call to ejabberdctl fails as you
> demonstrated)?

... Installed ejabberd
... Configured with extauth and odbc
... Start ejabberd
... Register users using inband reg
... Users use the sever normally
... I ran 'ejabberdctl registered_users example.com'
... Got message I posted in first email

Should clarify that the server didn't really crash but I got that error message instead of expected number of registered users

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

Gmane