[Digital^Dude] (R | 31 Mar 08:48 2014
Picon

ejabberd 13.12 mod_logdb

Hello,

Is there any way of logging non-offline messages to the admin page?

This claims to do the job for obsolete version...(http://www.dp.uz.gov.ua/o.palij/mod_logdb/) but it seems to have been discontinued and is not being maintained any more.

Any ideas for enabling logging of messages on ejabberd 13.12?

Thanks.
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Raoul Duke | 22 Mar 19:32 2014
Picon

Losing messages to dead connections

Hi list,

I am having the same problem as outlined here:

http://stackoverflow.com/questions/17424254/ejabberd-online-status-when-user-loses-connection

I will quote the scenario outlined in the above post for convenience:

<quote>

1] User A is messaging User B via their mobiles.
2] User B loses all connectivity, so client can't disconnect from server.
3] ejabberd still lists User B as online.
4] Since ejabberd assumes User B is still online, any message from
User A gets passed on to the dead connection.
5] So user B won't get the message, nor does it get saved as an
offline message, as ejabberd assumes the user is online.
6] Message lost.

Until ejabberd realises that the connection is stale, it treats it as
an online user.

</quote>

Before I move on I have a question: why does ejabberd not notice that
the send to the "dead connection" failed?  i.e. if the other end is
gone/dead and therefore not ACK-ing the TCP send from ejabberd then
why doesn't ejabberd notice this and deem the message as undelivered?
 I guess this is some well known issue with TCP but it would help
visualize it if someone could explain it a bit.  Is this perhaps
related to terminating proxies/firewalls between ejabberd and the
user?

BTW, I realize that xep-0198 would probably be a much better solution
to this and I plan to test the new patch but for the meantime I am
trying to mitigate this with mod_ping.

The issue with mod_ping however, as the above post also points out, is
that the 32 second timeout for receiving pongs is quite long in the
context of this message black-holing problem.  I would like to lower
the window of potentially black-holed messages.  Am I correct in
assuming that this is the best I can do (in lieu of something like
xep-0198?).

I had a look at the ejabberd sources and it looked to me that the main
diifficulty in changing this timeout for mod_ping pongs is that it
seems to be implicit/important in many other things in ejabberd
(things unrelated to mod_ping).

Therefore I have patched mod_ping so that I can override the 32 second
timeout for mod_ping timeouts only (and set this via confguration). My
patch resolves around change the call to ejabberd_local:route_iq to
pass the optional extra timeout argument allowing me to set a lower
timeout for mod_ping only (without affecting other things that clal
route_iq).

Do you anticipate any problems with this approach?  Can someone please
outline the thinking behind the 32 seconds and why it is not
configurable.  Am I setting myself up for some sort of fall by
lowering it in mod_ping?

What would you recommend as a minimum value for this timeout?  Would a
value of (say) 5 seconds be reasonable?

BTW - the above stackoverflow also has a reply which outlines a rather
interesting idea for an ejabberd add-on as follows:

"I created a mod and hooked up to the send_packet and receive_packet
events. Save the message ID to a table. Start a 10 sec waiting thread.
If the receive_packet hook gets the message ID back under 10 sec I
kill the thread, else I manually store the message in the offline
table. Worst case now is, I might have the msg twice in the offline
table. But it will have the same ID, our clients know not to duplicate
messages. - Johan Vorster Dec 12 '13 at 16:49"

This sounds like a bit of a kludge but it also sounds like it may be
an effective one.  Does this sound viable?  Does anyone know or have
any mod already implemented like this?  It isn't clear to me in the
user_receive_packet how I could interrogate the MessageID, can someone
send me a pointer/example of this?

Any pointers/suggestions appreciated.

Thanks.
Bellan Saravanan | 19 Mar 17:05 2014
Picon

Re: bosh xml-not-well-formed

It was a problem with the client library where the client  was sending presence/im packets when session was not fully connected. 
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Bellan Saravanan | 17 Mar 08:55 2014
Picon

bosh xml-not-well-formed

I'm trying to find the difference in using the two xmpp js libraries strophe and stanza.io,

With Strohpe everything works fine and this is what I see in the ejabberd log,

=INFO REPORT==== 2014-03-17 07:15:13 ===

D(<0.591.0>:mod_http_bind:69) : Incoming data: <body rid='984820457' xmlns='http://jabber.org/protocol/httpbind' sid='7cfd532489a59959bfe6a5cef579ba1403f8cfa6'><presence xmlns='jabber:client'/><message to='bsarva <at> precise32' type='chat' xmlns='jabber:client'><body>hello</body></message></body>


=INFO REPORT==== 2014-03-17 07:15:13 ===

D(<0.591.0>:ejabberd_http_bind:1128) : --- incoming data ---

<body rid='984820457' xmlns='http://jabber.org/protocol/httpbind' sid='7cfd532489a59959bfe6a5cef579ba1403f8cfa6'><presence xmlns='jabber:client'/><message to='bsarva <at> precise32' type='chat' xmlns='jabber:client'><body>hello</body></message></body>

 --- END ---



With Stanza.io, I get xml-not-well-formed error,

These are the packets I see in the log,

=INFO REPORT==== 2014-03-17 07:51:40 ===

D(<0.619.0>:mod_http_bind:69) : Incoming data: <body xmlns="http://jabber.org/protocol/httpbind" xmlns:xmpp="urn:xmpp:xbosh" rid="199982875" sid="47c624ccdada4c705fcac9d6a42072187b3d21ef"><presence xmlns="jabber:client" id="5ceab57b-be84-47d3-9c49-227b32eae113"></presence><message xmlns="jabber:client" to="bsarva <at> precise32" type="chat" id="2762ded6-b602-472b-a86a-359ab33a9f3e"><body>Hello</body></message></body>


=INFO REPORT==== 2014-03-17 07:51:40 ===

D(<0.619.0>:ejabberd_http_bind:1128) : --- incoming data ---

<body xmlns="http://jabber.org/protocol/httpbind" xmlns:xmpp="urn:xmpp:xbosh" rid="199982875" sid="47c624ccdada4c705fcac9d6a42072187b3d21ef"><presence xmlns="jabber:client" id="5ceab57b-be84-47d3-9c49-227b32eae113"></presence><message xmlns="jabber:client" to="bsarva <at> precise32" type="chat" id="2762ded6-b602-472b-a86a-359ab33a9f3e"><body>Hello</body></message></body>

 --- END ---



....

....

....

=INFO REPORT==== 2014-03-17 07:51:40 ===

D(<0.620.0>:ejabberd_http_bind:732) : really sending now: [{xmlelement,

                                                            "presence",

                                                            [{"xmlns",

                                                              "jabber:client"},

                                                             {"id",

                                                              "5ceab57b-be84-47d3-9c49-227b32eae113"}],

                                                            []},

                                                           {xmlelement,

                                                            "message",

                                                            [{"xmlns",

                                                              "jabber:client"},

                                                             {"to",

                                                              "bsarva <at> precise32"},

                                                             {"type","chat"},

                                                             {"id",

                                                              "2762ded6-b602-472b-a86a-359ab33a9f3e"}],

                                                            [{xmlelement,

                                                              "body",[],

                                                              [{xmlcdata,

                                                                <<"Hello">>}]}]}]


=INFO REPORT==== 2014-03-17 07:51:40 ===

D(<0.622.0>:ejabberd_http_bind:916) : OutPacket: [{xmlstreamelement,

                                                   {xmlelement,

                                                    "stream:error",[],

                                                    [{xmlelement,

                                                      "xml-not-well-formed",

                                                      [{"xmlns",

                                                        "urn:ietf:params:xml:ns:xmpp-streams"}],

                                                      []}]}}]


The only differences I see are is in the use of single/double quotes, presence of id attribute. 


Please help

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Holger Weiß | 12 Mar 23:53 2014
Picon
Picon

XEP-0198 support

Just in case anyone is interested: I'm working on XEP-0198 (Stream
Management) support for ejabberd (cf. EJAB-532) and am done with an
initial patch.  If you'd like to test it (don't use it in production!):

  https://github.com/weiss/ejabberd

This is the raw diff:

  https://github.com/weiss/ejabberd/compare/master...xep-0198.diff

The patch currently implements stanza ACKs but not the (optional) stream
resumption feature described in the same XEP.  I'll look into that soon.

I'd be *very* interested in any kind of feedback.

Holger
aman.gujaria | 27 Feb 05:06 2014
Picon

aman.gujaria <at> gmail.com has indicated you're a friend. Accept?

Click here to discover aman.gujaria <at> gmail.com's favorite websites!
aman.gujaria <at> gmail.com wants to follow you
I would like to add you as a friend
-aman.gujaria <at> gmail.com
Accept Decline
Following aman.gujaria <at> gmail.com helps you discover great websites they recommend :)
Click here to unsubscribe from such emails from aman.gujaria <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
aman.gujaria | 27 Feb 04:19 2014
Picon

aman.gujaria <at> gmail.com has indicated you're a friend. Accept?

Click here to discover aman.gujaria <at> gmail.com's favorite websites!
aman.gujaria <at> gmail.com wants to follow you
I would like to add you as a friend
-aman.gujaria <at> gmail.com
Accept Decline
Following aman.gujaria <at> gmail.com helps you discover great websites they recommend :)
Click here to unsubscribe from such emails from aman.gujaria <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Yves S. Garret | 27 Feb 02:08 2014
Picon

How to log into admin page

Hello,

How can I log into my admin ejabberd page?  Which file contains the password (or at least somewhere that I can change this)?

This is where I try to log in.
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Shelley Shyan | 24 Feb 14:15 2014
Picon

Re: 100K Chatters online


--
With kind regards,

Shelley Shyan



在 2014年2月24日,下午8:07,Robert Larsen <robert <at> komogvind.dk> 写道:

On 02/24/2014 12:57 PM, Shelley Shyan wrote:
Hi Robert,

Just had a look at the website and the load test report. First impression is, awesome! 

For 500k online users, one server…. What’s the  ONE SERVER configuration! :-)     32-core/ 128G RAM?
hehe...all data is on their site:
http://www.tigase.org/content/tigase-load-tests-again-500k-user-connections

Short answer is 32G RAM and 8 cores with 8 threads on each core...sounds reasonable
Yeah, quite reasonable indeed.


By the way, I also need the cross platform (Android and IOS) voice chat function.
Hmm, think that's the Jingle extension (xep-0166). It seems Tigase doesn't support that: http://www.tigase.org/tigase-server-features
For p2p voice chat, 0166 is great, and also Tigase STUN Server. For multi-user voice chat, wish there are tried solutions. :-)
For about 10k level online users, randomly distribute them into about 100 rooms. Each room with voice chat enabled, maybe there should be some custom development...

I really appreciate you help, very much. Many thanks.

Attachment (smime.p7s): application/pkcs7-signature, 3453 bytes
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Shelley Shyan | 24 Feb 12:57 2014
Picon

Re: 100K Chatters online

Hi Robert,

Just had a look at the website and the load test report. First impression is, awesome! 

For 500k online users, one server…. What’s the  ONE SERVER configuration! :-)     32-core/ 128G RAM?

By the way, I also need the cross platform (Android and IOS) voice chat function.

--
With kind regards,

Shelley



在 2014年2月24日,下午7:20,Robert Larsen <robert <at> komogvind.dk> 写道:

Hi

I have no experience with that number of users, but I have been looking into other servers with high performance stats and came across Tigase:

http://www.tigase.com/content/tigase-xmpp-server-instant-communication

From their own "sales" material:
  • Highly optimized - up to 500k online users on one server

There are a couple of interesting performance tests on their site.
I haven't tried Tigase yet, but I am planning on trying it out.

Hope this was useful :-)

On 02/24/2014 12:15 PM, Shelley wrote:
Hi all,


Is there a tried solution to the architecture of dealing with somewhere about 100k chatters online, with ejabberd (and maybe 10 servers) ?
If anybody has the experience and would like to share, I really really appreciate it very much. 

FYI,
100k chatters maybe distributed to 1000 chat rooms.

Many thanks.


--
with kind regards,
Shelley


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


Attachment (smime.p7s): application/pkcs7-signature, 3453 bytes
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Shelley | 24 Feb 12:15 2014
Picon

100K Chatters online

Hi all,


Is there a tried solution to the architecture of dealing with somewhere about 100k chatters online, with ejabberd (and maybe 10 servers) ?
If anybody has the experience and would like to share, I really really appreciate it very much. 

FYI,
100k chatters maybe distributed to 1000 chat rooms.

Many thanks.


--
with kind regards,
Shelley
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Gmane