. . | 22 Nov 19:17 2014

ejabberd / mysql timeout issues

Hi All,

 

Apologies for the interruption.  I’m wondering if we could get some assistance with a problem we are having:

 

We’ve been running ejabberd (v2.1.13) with MySQL, on a decent sized machine, for about a year now.  It should be able to handle upwards of 10,000 concurrent users, but we are finding timeout issues with MySQL when the number of concurrent users only reaches 400-450.  This is possibly related to the known bug EJAB-1583.

 

We have also managed to isolate a couple of “custom” modules used as part of the message archiving which may also be the cause of the issue.  The developer who wrote them was not an erlang expert.

 

I suspect the actual issue can be fixed with either a simple config change, minor change to the custom module (its very short) or replacement with a standardised module.

 

What we would love to find is someone who has extensive configuration and module writing experience - or better yet was involved in the core development of ejabberd.

 

Does anyone have suggestions on things to try (eg. recommended MySQL drivers, ejabberd configuration settings etc) … or can recommend a reliable consultant?

 

Thanks,

David

 

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Puneet Kapoor | 21 Nov 19:15 2014
Picon

Ejabberd chat service integration

Hi,

I have installed ejabberd and got it to work on my Macbook.

I have a site written in python, in which i would like to integrate the chat feature which is backed by the ejabberd server.
The user should be able to register for chat from the website and be able to send messages through website. 
What is a good way to do this ? Using hooks or res_apis or any better solution ?

Cheers
Puneet
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gaurav Jain | 17 Nov 10:11 2014
Picon

Unexpected presence stanza for MUC

Hello,

When I try to create same room twice in a row, I RECV presence stanza from service containing "201" status code both times.

Is that expected behavior? From XEP-0045, it seems 201 should be send ONLY when the room was created first time.

Please help me understand this. Why is status code 201 sent both times.

Please see below the sequence:

---------First Request starts here
SEND: <presence to="erik_yo <at> conference.localhost/GJ"><x xmlns="http://jabber.org/protocol/muc"/><x xmlns="vcard-temp:x:update"><photo/></x></presence>
RECV: <presence xmlns="jabber:client" from="erik_yo <at> conference.localhost/GJ" to="erik <at> localhost/imac"><x xmlns="vcard-temp:x:update"><photo/></x><x xmlns="http://jabber.org/protocol/muc#user"><item jid="erik <at> localhost/imac" affiliation="owner" role="moderator"/><status code="110"/><status code="201"/></x></presence>

---------Second request starts here
SEND: <presence to="erik_yo <at> conference.localhost/GJ" type="unavailable"><x xmlns="vcard-temp:x:update"><photo/></x></presence>
SEND: <presence to="erik_yo <at> conference.localhost/GJ"><x xmlns="http://jabber.org/protocol/muc"/><x xmlns="vcard-temp:x:update"><photo/></x></presence>
RECV: <presence xmlns="jabber:client" from="erik_yo <at> conference.localhost/GJ" to="erik <at> localhost/imac" type="unavailable"><x xmlns="vcard-temp:x:update"><photo/></x><x xmlns="http://jabber.org/protocol/muc#user"><item affiliation="owner" role="none"/><status code="110"/></x></presence>
RECV: <presence xmlns="jabber:client" from="erik_yo <at> conference.localhost/GJ" to="erik <at> localhost/imac"><x xmlns="vcard-temp:x:update"><photo/></x><x xmlns="http://jabber.org/protocol/muc#user"><item jid="erik <at> localhost/imac" affiliation="owner" role="moderator"/><status code="110"/><status code="201"/></x></presence>


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
heupink | 12 Nov 14:55 2014
Picon

carboncopy info requested

Hi list,

I would like to read up on the mod_carboncopy module, but I'm having a 
hard time finding any documentation. Anyone here as some info for me?

What I hope the carboncopy module would give me:

I have setup a ejabberd-14-07 install, and it works perfectly. Thanks. 
But: I would like to always receive all my incoming messages on all 
clients where I am logged in.

(basically: much like the facebook chat function)

Is this possible, and how to make it the default behaviour on my server?

Regards,
MJ
Ryan Delgrosso | 6 Nov 23:14 2014
Picon

External component connectivity issues

Hi all,
Hopefully my problem is simple and someone here can point me in the right direction. Ive been having difficulties getting ejabberd to listen for external component connections (maybe im going about this wrong). When i try to open that socket i just get an immediate tcp RST.

I have configured an external component connection

   {5325, ejabberd_service, [
                         {access, all},
                         {host, "service.domain.net"},
                         [{password, "secret"}]
                         ]},

If i run a netstat -tnl i can clearly see ejabberd has opened a socket for incoming connections

tcp        0      0 0.0.0.0:5325 0.0.0.0:*                   LISTEN


Opening a connection to that port with:

telnet <host> 5325 i am greeted with immediate connection closure.

In the logs on the server however i get:

=INFO REPORT==== 2014-11-06 14:09:55 ===
I(<0.473.0>:ejabberd_listener:281) : (#Port<0.3764>) Accepted connection {{10,10,40,68},35983} -> {{10,10,40,80},5325}

=INFO REPORT==== 2014-11-06 14:09:55 ===
I(<0.476.0>:ejabberd_service:124) : ({socket_state,gen_tcp,#Port<0.3764>,<0.475.0>}) External service connected


By comparison if i perform the same test to the c2s or s2s port the connection opens and i can send an opening stanza


Any ideas where ive gone wrong here? The ejabberd version is ejabberd-2.1.13 running on CentOS.


Thanks in advance
-Ryan
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
schliep | 21 Oct 17:26 2014
Picon

p1_tls asynchronous issue

p1_tls will send tls records out of order when a muc creates a lot of 
traffic. This happens very consistently for me.

What was the reason the ssl application in otp was not used?

Thanks,
Mike Schliep
sergio | 21 Oct 17:06 2014
Picon

s2s starttls

Hello.

I have ejabberd 2.1.10 with {s2s_use_starttls, true}.

And it's not able to establish s2s with other server with allowed
starttls in the absence of common tls ciphers. It doesn't try to
establish unencrypted connection in this case. But it should.

Could anybody confirm this bug? Has it already been fixed?

How could I fix it for 2.1.10 ejabberd?

--

-- 
sergio.
liudanking | 20 Oct 08:34 2014
Picon

errors in error.log about table caps_feature and muc

Hello, everyone,


I have deployed a small ejabberd cluster with 3 nodes in AWS. And It works fine, except that there is some error information in error.log.


error 1: <0.411.0> with 0 neighbours exited with reason: {aborted,{no_exists,[caps_features]}} in gen_server:init_it/6 line 330


error 2: 05:58:57.199 [error] failed to get rooms: {error,<<"Unknown Host">>}


As to error 1, I think the reason is that the table caps_feature is missing. After I create a dips_copies of caps_feature, error 1 is gone. But I am not quite sure whether the solution is right. And furthermore, what is the function of table caps_feature?


As to errro 2, I could only figure out that it is about muc. But I have no idea what is the specific reason. Anyone have any ideas?


Many thanks in advance!



_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gadi Srebnik | 19 Oct 16:54 2014

TCP SYN rate

Hi, 
I am currently handling high volume of connections (>100K per server) and having problem with too many SYN and not enough SYN/ACK responses.

How many SYN per sec can Ejabberd/erlang can handle?
What can I scale (RAM, CPU, another server) to achieve better SYN handling to avoid retransmissions from clients?

Thanks, 
Gadi


--
Gadi Srebnik
VP Communications
 m: +972 54 5929261

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Gaurav Jain | 18 Oct 21:24 2014
Picon

OpenSSL might not be installed error

Hi,

I am very new to ejabberd and erlang

While sending a login request from iOS client, I observe following error in logs:


2014-10-18 12:08:17.828 [info] <0.434.0> <at> ejabberd_listener:accept:309 (#Port<0.5807>) Accepted connection 127.0.0.1:57682 -> 127.0.0.1:5222
2014-10-18 12:08:17.853 [error] <0.442.0> Unable to load crypto library. Failed with error:
"load, Library load-call unsuccessful."
OpenSSL might not be installed on this system.

2014-10-18 12:08:17.854 [error] <0.443.0> The on_load function for module crypto returned {error,{load,"Library load-call unsuccessful."}}
2014-10-18 12:08:17.854 [error] <0.441.0> gen_fsm <0.441.0> in state wait_for_feature_request terminated with reason: call to undefined function crypto:rand_bytes(16)
2014-10-18 12:08:17.854 [error] <0.441.0> CRASH REPORT Process <0.441.0> with 0 neighbours exited with reason: call to undefined function crypto:rand_bytes(16) in p1_fsm:terminate/8 line 759



Please help me resolve.
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Mariusz Rutkowski | 16 Oct 14:34 2014
Picon

PostgreSQL and odbc driver

Hey,

I'm trying to set up my ejabberd 14.07 with postgresql odbc driver for 
authentication of users.
Everything works fine, from DB side(i see ejabberd queries). 
Unfortunately, connecting to server failing with:

2014-10-16 08:32:58.737 [error] <0.680.0> gen_fsm <0.680.0> in state 
wait_for_feature_request terminated with reason: no try clause matching 
{selected,["password"],[["testtest"]]} in 
ejabberd_auth_odbc:check_password/3 line 62
2014-10-16 08:32:58.737 [error] <0.680.0> CRASH REPORT Process <0.680.0> 
with 0 neighbours exited with reason: no try clause matching 
{selected,["password"],[["testtest"]]} in 
ejabberd_auth_odbc:check_password/3 line 62 in p1_fsm:terminate/8 line 759

Does anyone could point me some hints how to solve that?

Best Regards,
MK

Gmane