Quantcast
Channel: Tigase.org - Tigase server administration
Viewing all 18 articles
Browse latest View live

why clients blocked?

$
0
0

hello, everyone:
there is one problem that server don't read data immediately from socket after accept client connection. this happend suddenly while server being work fine.
normally, server will read data from socket immediately, but when this problem happend server read data after serveral minutes. it seems that the accepted connection has been blocked.
i make sure that server have accepted client's connection, and client's have sent out the first message.
some parameters haven't been configured? attachment is my init.properties. thanks for any answer.


TigaseMessenger2 can not login the tigase.im in local developing mode

$
0
0

I am newbie for Tigase. I have registered one account by a XMPP client and can login the
tigase.im by BOSH. But when using TigaseMessenger2 to login tigase.im, I can't, the result display "invalid SID".

How can i configure the TigaseMessenger2 for logining to tigase.im?

Thanks.

tigase clustering problems

$
0
0

Hi

We have fresh instance tigase server on linux.
When server is set to single mode we can register users, login and send messages
As our goal is to create HA system, we switched to cluster mode. After restart two instances are up and connected as I can see in log.

We can still register users. But we have problems login. user is disconected instantly.

we have version 1.5.4

what can be the problem ??

here is the log from login operation

2013-05-21 12:39:27 ConnectionManager$ConnectionListenerImpl.accept() FINEST: Accept called for service: null@null
2013-05-21 12:39:27 ConnectionManager.serviceStarted() FINER: [[c2s]] Connection started: null, type: accept, Socket: nullSocket[addr=/10.32.12.9,port=54364,localport=5222]
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: Stream opened: {to=xmpp.dev.some-company.net, xmlns:stream=http://etherx.jabber.org/streams, xmlns:xml=http://www.w3.org/XML/1998/namespace, xml:lang=en, xmlns=jabber:client, version=1.0}
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: No Session ID, generating a new one: 1930d689-ab4c-4ba9-95ce-cd4ab6102cad
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: Writing raw data to the socket: <?xml version='1.0'?>
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: DONE
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: Sending a system command to SM: from=null, to=null, DATA=1930d689-ab4c-4ba9-95ce-cd4ab6102cadxmpp.dev.some-company.neten, SIZE=446, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: DOEN 2
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=null, to=null, DATA=1930d689-ab4c-4ba9-95ce-cd4ab6102cadxmpp.dev.some-company.neten, SIZE=446, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=null, to=null, DATA=1930d689-ab4c-4ba9-95ce-cd4ab6102cadxmpp.dev.some-company.neten, SIZE=446, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:27 SessionManager.processCommand() FINER: STREAM_OPENED command from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 SessionManager$SessionOpenProc.process() FINER: Adding resource connection for: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 SessionManager.createUserSession() FINEST: Setting hostname xmpp.dev.some-company.net for connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, VHostItem: Domain: xmpp.dev.some-company.net, enabled: true, anonym: true, register: true, maxusers: 0
2013-05-21 12:39:27 SessionManager.createUserSession() FINEST: Domain set for connectionId c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 SessionManager$SessionOpenProc.process() FINEST: Setting session-id 1930d689-ab4c-4ba9-95ce-cd4ab6102cad for connection: user_jid=null, packets=0, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=NOT_AUTHORIZED, isAnon=false
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=117, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=117, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:27 SessionManager.processCommand() FINER: GETFEATURES command from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=557, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=557, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=CData size: 5CData size: 9, SIZE=557, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 ConnectionManager.writePacketToSocket() FINEST: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222], Writing packet: from=null, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=362, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:27 ClientConnectionManager.processSocketData() FINEST: Processing socket data: from=null, to=null, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null from connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:27 SessionManager.processPacket() FINEST: processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, connection: user_jid=null, packets=0, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=NOT_AUTHORIZED, isAnon=false
2013-05-21 12:39:27 SessionManager.walk() FINEST: XMPPProcessorIfc: StartTLS (starttls)
Request: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-tls, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: user_jid=null, packets=1, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=NOT_AUTHORIZED, isAnon=false
2013-05-21 12:39:27 SessionManager.processPacket() FINEST: Packet processed by: [starttls]
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=282, XMLNS=null, PRIORITY=NORMAL, PERMISSION=LOCAL, TYPE=set
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=null, DATA=, SIZE=282, XMLNS=null, PRIORITY=NORMAL, PERMISSION=LOCAL, TYPE=set
2013-05-21 12:39:27 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=282, XMLNS=null, PRIORITY=NORMAL, PERMISSION=LOCAL, TYPE=set
2013-05-21 12:39:27 ClientConnectionManager.processCommand() FINER: Starting TLS for connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222]
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: Stream opened: {to=xmpp.dev.some-company.net, xmlns:stream=http://etherx.jabber.org/streams, xmlns:xml=http://www.w3.org/XML/1998/namespace, xml:lang=en, xmlns=jabber:client, version=1.0}
2013-05-21 12:39:27 ClientConnectionManager.xmppStreamOpened() FINER: Session ID is: 1930d689-ab4c-4ba9-95ce-cd4ab6102cad
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:27 SessionManager.processCommand() FINER: GETFEATURES command from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=506, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=506, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=CData size: 5CData size: 9, SIZE=506, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:27 ConnectionManager.writePacketToSocket() FINEST: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: TLS: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222], Writing packet: from=null, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=PLAINANONYMOUS, SIZE=311, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:28 ClientConnectionManager.processSocketData() FINEST: Processing socket data: from=null, to=null, DATA=CData size: 16, SIZE=88, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null from connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=AHRlc3QxAHRlc3Qx, SIZE=88, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=AHRlc3QxAHRlc3Qx, SIZE=88, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:28 SessionManager.processPacket() FINEST: processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=CData size: 16, SIZE=88, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, connection: user_jid=null, packets=1, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=NOT_AUTHORIZED, isAnon=false
2013-05-21 12:39:28 SessionManager.walk() FINEST: XMPPProcessorIfc: SaslAuth (urn:ietf:params:xml:ns:xmpp-sasl)
Request: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=AHRlc3QxAHRlc3Qx, SIZE=88, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, conn: user_jid=null, packets=2, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=NOT_AUTHORIZED, isAnon=false
2013-05-21 12:39:28 SessionManager.processPacket() FINEST: Packet processed by: [urn:ietf:params:xml:ns:xmpp-sasl]
2013-05-21 12:39:28 SessionManager.handleLogin() FINEST: handleLogin called for: test1@xmpp.dev.some-company.net, conn_id: user_jid=null, packets=2, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=AUTHORIZED, isAnon=false
2013-05-21 12:39:28 SessionManager.registerNewSession() FINEST: Created new XMPPSession for: test1@xmpp.dev.some-company.net
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=null
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=null
2013-05-21 12:39:28 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=null
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: TLS: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222], Writing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=51, XMLNS=urn:ietf:params:xml:ns:xmpp-sasl, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=null
2013-05-21 12:39:28 ClientConnectionManager.xmppStreamOpened() FINER: Stream opened: {to=xmpp.dev.some-company.net, xmlns:stream=http://etherx.jabber.org/streams, xmlns:xml=http://www.w3.org/XML/1998/namespace, xml:lang=en, xmlns=jabber:client, version=1.0}
2013-05-21 12:39:28 ClientConnectionManager.xmppStreamOpened() FINER: Session ID is: 1930d689-ab4c-4ba9-95ce-cd4ab6102cad
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=null, to=null, DATA=, SIZE=218, XMLNS=null, PRIORITY=HIGH, PERMISSION=NONE, TYPE=get
2013-05-21 12:39:28 SessionManager.processCommand() FINER: GETFEATURES command from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=432, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=432, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:28 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=432, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: TLS: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222], Writing packet: from=null, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=237, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-05-21 12:39:28 ClientConnectionManager.processSocketData() FINEST: Processing socket data: from=null, to=null, DATA=

CData size: 11

, SIZE=122, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set from connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 ClientConnectionManager.processSocketData() FINEST: XMLNS set for packet: from=null, to=null, DATA=

CData size: 11

, SIZE=144, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set from connection: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=

WAW-STOLARZ

, SIZE=144, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=

WAW-STOLARZ

, SIZE=144, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 SessionManager.processPacket() FINEST: processing packet: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=

CData size: 11

, SIZE=144, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set, connection: user_jid=test1@xmpp.dev.some-company.net/1930d689-ab4c-4ba9-95ce-cd4ab6102cad, packets=2, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=AUTHORIZED, isAnon=false
2013-05-21 12:39:28 PacketDefaultHandler.preprocess() FINEST: Setting correct from attribute: test1@xmpp.dev.some-company.net/1930d689-ab4c-4ba9-95ce-cd4ab6102cad
2013-05-21 12:39:28 SessionManager.walk() FINEST: XMPPProcessorIfc: BindResource (urn:ietf:params:xml:ns:xmpp-bind)
Request: from=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, to=sess-man@46.30.211.47, DATA=

WAW-STOLARZ

, SIZE=221, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set, conn: user_jid=test1@xmpp.dev.some-company.net/1930d689-ab4c-4ba9-95ce-cd4ab6102cad, packets=3, connectioId=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, domain=xmpp.dev.some-company.net, authState=AUTHORIZED, isAnon=false
2013-05-21 12:39:28 SessionManager.processPacket() FINEST: Packet processed by: [urn:ietf:params:xml:ns:xmpp-bind]
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: connect, Socket: nullSocket[addr=xmpp1/10.1.3.21,port=5277,localport=52049], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=578, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=test1@xmpp.dev.some-company.net/WAW-STOLARZ, SIZE=216, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=result
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=test1@xmpp.dev.some-company.net/WAW-STOLARZ, SIZE=216, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=result
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: accept, Socket: nullSocket[addr=/10.1.3.22,port=39136,localport=5277], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=585, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: connect, Socket: nullSocket[addr=xmpp2/10.1.3.22,port=5277,localport=39136], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=578, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=CData size: 44, SIZE=216, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=result
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: TLS: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222], Writing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=test1@xmpp.dev.some-company.net/WAW-STOLARZ, SIZE=216, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=result
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ClientConnectionManager.processCommand() FINEST: Sending stream close to the client:
2013-05-21 12:39:28 ConnectionManager.serviceStopped() FINER: [[c2s]] Connection stopped: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, type: accept, Socket: TLS: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364 Socket[addr=/10.32.12.9,port=54364,localport=5222]
2013-05-21 12:39:28 ClientConnectionManager.xmppStreamClosed() FINER: Stream closed: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 ClientConnectionManager.xmppStreamClosed() FINE: Service stopped, sending packet: from=null, to=null, DATA=, SIZE=220, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=null, to=null, DATA=, SIZE=220, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ClientConnectionManager.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@46.30.211.47, from=null, to=null, DATA=, SIZE=220, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ClientConnectionManager.processCommand() FINE: Attempt to stop non-existen service for packet: from=sess-man@46.30.211.47, to=null, DATA=, SIZE=244, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set, Service already stopped?
2013-05-21 12:39:28 SessionManager.processCommand() FINER: STREAM_CLOSED command from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 SessionManager$SessionCloseProc.process() FINEST: Executing connection close for: from=null, to=null, DATA=, SIZE=220, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 SessionManager.closeConnection() FINER: Stream closed from: c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=144, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:28 MessageRouter.processPacket() FINEST: 1. Packet will be processed by: c2s@46.30.211.47, from=sess-man@46.30.211.47, to=c2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_54364, DATA=, SIZE=144, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=result
2013-05-21 12:39:28 ClientConnectionManager$StoppedHandler.responseReceived() FINEST: Response for stop received...
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: connect, Socket: nullSocket[addr=xmpp1/10.1.3.21,port=5277,localport=52049], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=581, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: accept, Socket: nullSocket[addr=/10.1.3.22,port=39136,localport=5277], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=588, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set
2013-05-21 12:39:28 SessionManager.closeSession() FINE: Closing connection for: test1@xmpp.dev.some-company.net/WAW-STOLARZ
2013-05-21 12:39:28 SessionManager.closeSession() FINE: Found parent session for: test1@xmpp.dev.some-company.net/WAW-STOLARZ
2013-05-21 12:39:28 SessionManager.closeSession() FINER: Number of user sessions: 1
2013-05-21 12:39:28 ConnectionManager.writePacketToSocket() FINEST: null, type: connect, Socket: nullSocket[addr=xmpp2/10.1.3.22,port=5277,localport=39136], Writing packet: from=null, to=null, DATA=sess-man@46.30.211.47test1@xmpp.dev.some-company.netWAW-STOLARZc2s@46.30.211.47/10.1.3.22_5222_10.32.12.9_543641930d689-ab4c-4ba9-95ce-cd4ab6102cad553sess-man@46.30.211.47, SIZE=581, XMLNS=tigase:cluster, PRIORITY=CLUSTER, PERMISSION=NONE, TYPE=set

How to disable auto roster "fixing"

$
0
0

We have a database trigger that automatically adds two contacts to a users roster on first login. we do this directly by adding a row to tig_pairs in the database with a roster that looks like this:

<contact last-seen="1370251997199" preped="simple" jid="user1@domain" subs="to" weight="1.0" groups="Auto" name="user1" activity="1.0"/><contact last-seen="1370251997199" preped="simple" jid="user2@domain" subs="to" weight="1.0" groups="Auto" name="user2" activity="1.0"/>

we add the appropriate contact to the roster for user1 and user2 in the database at the same time:

<contact last-seen="1368089795741" name="newuser@domain" activity="1.0" weight="1.0" jid="newuser@domain" preped="simple" subs="from"/>

However when the roster is loaded it is being "fixed" to match the known in memory roster of user1 and user 2 which doesn't include the subscription as you can see in the log snippet below.

How can we stop this happening? (If it requires editing of the code can you please point me in the direction of the correct locations in the source files)

Ben

2013-06-03 08:10:51  RosterFlat.loadUserRoster()         FINEST:   Loaded newuser@domain/d roster:
<contact last-seen="1370251997199" preped="simple" jid="user1@domain"
subs="to" weight="1.0" groups="Auto" name="user1" activity="1.0"/>
<contact last-seen="1370251997199" preped="simple" jid="user2@domain"
subs="to" weight="1.0" groups="Auto" name="user2" activity="1.0"/>
2013-06-03 08:10:52 RosterAbstract.updateBuddySubscription() FINEST: current_subscription=to for jid=user1@domain
2013-06-03 08:10:52 RosterAbstract$StateTransition.getStateTransition() FINEST: this=to, pres_type=in_unsubscribed, res=none
2013-06-03 08:10:52 RosterAbstract.updateBuddySubscription() FINEST: new_subscription=none for presence=in_unsubscribed
2013-06-03 08:10:52 RosterFlat.saveUserRoster() FINEST: Saving newuser@domain/d roster:
<contact last-seen="1370251997199" preped="simple" jid="user2@domain"
subs="to" weight="1.0" groups="Auto" name="user2" activity="1.0"/>
<contact last-seen="1370251997199" preped="simple" jid="user1@domain"
subs="none" weight="1.0" groups="Auto" name="user2" activity="1.0"/>
2013-06-03 08:10:52 RosterAbstract.updateBuddySubscription() FINEST: current_subscription=to for jid=user2@domain
2013-06-03 08:10:52 RosterAbstract$StateTransition.getStateTransition() FINEST: this=to, pres_type=in_unsubscribed, res=none
2013-06-03 08:10:52 RosterAbstract.updateBuddySubscription() FINEST: new_subscription=none for presence=in_unsubscribed
2013-06-03 08:10:52 RosterFlat.saveUserRoster() FINEST: Saving newuser@domain/d roster:
<contact last-seen="1370251997199" preped="simple" jid="user2@domain"
subs="none" weight="1.0" groups="Auto" name="user2" activity="1.0"/>
<contact last-seen="1370251997199" preped="simple" jid="user1@domain"
subs="none" weight="1.0" groups="Auto" name="user1" activity="1.0"/>

failed to build the last version of tigase-server

$
0
0

I have fetched the last version tigase-server at git clone http://repository.tigase.org/git/tigase-server.git.

When i import it into eclipse, eclipse report following errors:

13-6-7 下午02时09分51秒: Maven Builder: FULL_BUILD requireFullBuild
13-6-7 下午02时09分52秒: [WARN] Failure to transfer tigase:tigase-utils:3.4.2-SNAPSHOT/maven-metadata.xml from http://maven.tigase.org was cached in the local repository, resolution will not be reattempted until the update interval of tigase has elapsed or updates are forced. Original error: Could not transfer metadata tigase:tigase-utils:3.4.2-SNAPSHOT/maven-metadata.xml from/to tigase (http://maven.tigase.org): ConnectException
13-6-7 下午02时09分52秒: [WARN] Failure to transfer tigase:tigase-xmltools:3.4.3-SNAPSHOT/maven-metadata.xml from http://maven.tigase.org was cached in the local repository, resolution will not be reattempted until the update interval of tigase has elapsed or updates are forced. Original error: Could not transfer metadata tigase:tigase-xmltools:3.4.3-SNAPSHOT/maven-metadata.xml from/to tigase (http://maven.tigase.org): ConnectException
13-6-7 下午02时09分52秒: Build errors for tigase-server-new; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project tigase-server: Could not resolve dependencies for project tigase:tigase-server:bundle:5.2.0-SNAPSHOT: Failed to collect dependencies for [tigase:tigase-utils:jar:3.4.2-SNAPSHOT (compile), tigase:tigase-xmltools:jar:3.4.3-SNAPSHOT (compile), org.apache.felix:org.osgi.core:jar:1.4.0 (provided), org.slf4j:jul-to-slf4j:jar:1.6.4 (provided?), junit:junit:jar:4.11 (test)]

Please help me, thanks.

Tigase xmpp server crash while testing with Tsung

$
0
0

I'm trying to test the capabilities of the Tigase XMPP server 5.2.0.

I'm running tests with tsung 1.4.2 to reach 20K users connected (once 20K works, I'll try to check it with 150K). The tigase crashes after around 6000 connections. Someone can help me please to find out the problem?

Details: The parameters of the tsung is: (12 connection per sec, 1666 sec for connection = 20K users)

tsung_test.xml:
http://pastebin.com/33GW1F7H

In the tigase the parameters are: (init.properties)

config-type=--gen-config-def
--admins=admin@my_domain
--virt-hosts = my_domain

--user-db=mysql
--user-db-uri=jdbc:mysql://mysql_ip:3306/tigasedb?user=user&password=password&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true

tigase.conf:

ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"
#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks"
#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"
JAVA_HOME="/usr/lib64/jvm/java-1.6.0-openjdk"
CLASSPATH=""
JAVA_OPTIONS="${GC} ${EX} ${ENC} ${DRV} -server -Xms100M -Xmx200M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m "
TIGASE_CONFIG="etc/tigase.xml"
TIGASE_OPTIONS=" --property-file etc/init.properties "

Cannot connect to Tigase Server due to SSL protocol error -9800 on Mac OS X Messages Client

$
0
0

I am having problems connecting to my Tigase Server from Mac OS X Application "Messages". I tried this on two different machines, both of them cannot connect due to an SSL protocol error.

Other clients (like Psi oder several iPhone Apps) can connect without a problem, so I am not sure, if it is a problem that has to do with my server configuration.

My client's log shows the following error:

Jun 17 17:09:27 Olivers-MacBook-Air.local imagent[365]: [Warning] XMPPConnection: Error: Error Domain=NSOSStatusErrorDomain Code=-9800 "Der Vorgang konnte nicht abgeschlossen werden. (OSStatus-Fehler -9800.)" (errSSLProtocol: SSL protocol error )

tigase.log shows the following at the error time (I replaced IPs and host names):

2013-06-17 17:09:27 ConnectionManager$ConnectionListenerImpl.accept() FINEST: Accept called for service: null@null
2013-06-17 17:09:27 ConnectionManager.serviceStarted() FINER: [[c2s]] Connection started: null, type: accept, Socket: TLS: nullSocket[addr=/111.111.111.111,port=49759,localport=5223], jid: null
2013-06-17 17:09:27 ConnectionManager.serviceStopped() FINER: [[c2s]] Connection stopped: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49759, type: accept, Socket: TLS: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49759 Socket[unconnected], jid: null
2013-06-17 17:09:27 ClientConnectionManager.xmppStreamClosed() FINER: Stream closed: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49759
2013-06-17 17:09:29 ConfigRepository.addItem() INFO: No repoChangeListener for: Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL
2013-06-17 17:09:29 UserRepoRepository.reload() CONFIG: All loaded items: {my.domain.de=Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}
2013-06-17 17:10:29 ConfigRepository.addItem() INFO: No repoChangeListener for: Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL
2013-06-17 17:10:29 UserRepoRepository.reload() CONFIG: All loaded items: {my.domain.de=Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}
2013-06-17 17:11:27 ConnectionManager$ConnectionListenerImpl.accept() FINEST: Accept called for service: null@null
2013-06-17 17:11:27 ConnectionManager.serviceStarted() FINER: [[c2s]] Connection started: null, type: accept, Socket: TLS: nullSocket[addr=/111.111.111.111,port=49776,localport=5223], jid: null
2013-06-17 17:11:27 ConnectionManager.serviceStopped() FINER: [[c2s]] Connection stopped: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49776, type: accept, Socket: TLS: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49776 Socket[unconnected], jid: null
2013-06-17 17:11:27 ClientConnectionManager.xmppStreamClosed() FINER: Stream closed: c2s@v12345.1blu.de/222.222.222.222_5223_111.111.111.111_49776
2013-06-17 17:11:29 ConfigRepository.addItem() INFO: No repoChangeListener for: Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL
2013-06-17 17:11:29 UserRepoRepository.reload() CONFIG: All loaded items: {my.domain.de=Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}
2013-06-17 17:12:29 ConfigRepository.addItem() INFO: No repoChangeListener for: Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL
2013-06-17 17:12:29 UserRepoRepository.reload() CONFIG: All loaded items: {my.domain.de=Domain: my.domain.de, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}

I think that it has something to do with my host configuration, perhaps that the certificate I am using has been issued for my.domain.de and the TLS and SSL-connections always show the second hostname v12345.1blu.de.

I changed the hostname to science-site.de and also tried to rename all occurences in tigase.xml (I generated it to test this) of v12345.1blu.de to my.hostname.de. The same error occured with self signed certificates, too.

config-dump.properties show the following lines, which I think is wrong, too:

s2s/component-id[S]=s2s@v12345.1blu.de
s2s/def-hostname[S]=v12345.1blu.de

/etc/hostname is set to "my.hostname.de" and issuing hostname command shows this address, too.

Thank you very much in advance!

Kind Regards,

Oliver

performance of 2 tests with tsung (tcp and ssl)

$
0
0

Hi,
I made 2 tests of xmpp tigase server with tsung:
1. tcp, 12 connection per second, 833 sec per session = ~10k connection simultaneously.
2. the same test but with ssl

The performance were:

Server Connection Caps Total CPU Mem
Tigase SSL 12 10K 41% 1.3G
Tigase TCP 12 10K 21% 534M

Anyone has any idea why is the Mem is twice in ssl than tcp?


Startup error when starting tigase..

$
0
0

Hi,

I have installed the new 5.2.x version (downloaded the jar from the webpage) of the tigase server through java -jar tigase... -console. and have run it with ./scripts/tigase.sh start etc/init.properties. When I start it up, It gives this back:

etc/init.properties: line 1: config-type: command not found
etc/init.properties: line 3: --virt-hosts: command not found
etc/init.properties: line 4: --cluster-mode: command not found
etc/init.properties: line 5: --debug: command not found
etc/init.properties: line 6: --user-db: command not found
etc/init.properties: line 7: --admins: command not found
etc/init.properties: line 18: --sm-plugins: command not found
etc/init.properties: line 9: --user-db-uri: command not found

my init.properties file is pretty standard and looks like this:

config-type = --gen-config-def
--virt-hosts = xxxxx
--cluster-mode = false
--debug = server
--user-db = mysql
--admins = admin@yousee.dk
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=xxx
--sm-plugins = +message-archive-xep-0136

any ideas why it says command not found? looks like a parse error somehow.
/S

Forum notifications via Jabber/XMPP - forum-2@srecv.tigase.org

$
0
0

You can receive notifications about new posts on this forum via Jabber/XMPP. All you need to do is adding forum-2@srecv.tigase.org to your contacts list. To stop receiving notifications remove the JID from your contacts list.

Tigase Bosh problems

$
0
0

Hi,

I have a strange problem. I've setup a Tigase server (5.1-snapshot) for a long time ago.

Connecting through normal TCP works quite fine, but when connecting with BOSH directly (no proxy, using a browser with no security), it goes haywire, and says on the server side that the user does not exists (from server log):

RepositoryAccess.loginOther() FINEST: User not found: xxxx@xxxx
tigase.db.UserNotFoundException: User does not exist xxxx@xxxx, , in database: jdbc:derby:db_data/

I can see on the server side that it gets connected:

POST / HTTP/1.0
Connection: Keep-Alive
Host: XXXXX :5280
Content-Length: 236
Content-Transfer-Encoding: binary
User-Agent: Mozilla/5.0 (compatible; ANTGalio/2.2.20.22.01.12; Linux2.6.17.14_stm22_0041-SMTH31xx-7109/sh4)
Accept: text/html, image/png, image/jpeg, image/gif, */*; q=.2

As I said, it works with normal TCP and also by setting up a apache proxy for the localhost to the domain:5280, but not directly on BOSH endpoint.

BTW: what is the BOSH endpoint for tigase? is it /http-bind or /xmpp-httpbind or just domain:5280 ??? I tried all of them.

I've seen different examples.

Thanks!

Dialback, connection to authoritative server destroy connection from initiating server to receiving server

$
0
0

Hi,

I have the following issue when connecting server1 to server2 at server2.
server1 connects with server2 and perform dialback exchange (this is done using a CID null@null then server2@server1).
To verify the received key, server2 has to contact server1 (because the initiating and authoritative server are identical). The server2 fails to reuse the existing connection and starts a new connection, but with the same CID (server2@server1), hence the validation is not received.
Is there a way to solve this issue ?

I include the corresponding logs.

Many thanks in advance.

A tigase beginner

2013-06-26 15:01:37 SocketThread.() WARNING: 5 socketReadThreads started.
2013-06-26 15:01:37 SocketThread.() WARNING: 5 socketWriteThreads started.
2013-06-26 15:01:37 S2SConnectionManager.xmppStreamOpened() FINER: CID: null, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, Stream opened: {to=backoffice.im.vizada.com, xmlns:stream=http://etherx.jabber.org/streams, from=karaboudjan.im.vizada.com, xmlns=jabber:server, xmlns:db=jabber:server:dialback, version=1.0}
2013-06-26 15:01:37 StreamFeatures.streamOpened() FINEST: CID: null, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, Sending stream features:
2013-06-26 15:01:37 StreamOpen.streamOpened() FINEST: CID: null, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, Accept Stream opened for: backoffice.im.vizada.com@karaboudjan.im.vizada.com, session id: e448a89c-e981-4137-8d73-0120191cb54c
2013-06-26 15:01:37 S2SConnectionManager.xmppStreamOpened() FINER: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, Sending stream open:
2013-06-26 15:01:37 S2SConnectionManager.processSocketData() FINEST: Processing socket data: from=null, to=null, DATA=7ce31a1a611d4d3610baf029266a50fd675fde44, SIZE=151, XMLNS=jabber:server:dialback, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-06-26 15:01:37 Dialback.process() FINEST: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, Processing dialback packet: from=null, to=null, DATA=7ce31a1a611d4d3610baf029266a50fd675fde44, SIZE=151, XMLNS=jabber:server:dialback, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2013-06-26 15:01:37 Dialback.processDialback() FINEST: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null, DIALBACK packet: from=null, to=null, DATA=7ce31a1a611d4d3610baf029266a50fd675fde44, SIZE=151, XMLNS=jabber:server:dialback, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null, CID_packet: backoffice.im.vizada.com@karaboudjan.im.vizada.com
2013-06-26 15:01:37 CIDConnections.initNewConnection() FINEST: STARTING new connection: backoffice.im.vizada.com@karaboudjan.im.vizada.com
2013-06-26 15:01:37 CIDConnections.initNewConnection() FINEST: backoffice.im.vizada.com@karaboudjan.im.vizada.com connection params: {cid=backoffice.im.vizada.com@karaboudjan.im.vizada.com, handshaking-domain-key=karaboudjan.im.vizada.com, handshaking-only-key=handshaking-only-key, ifc=[Ljava.lang.String;@4a09c939, local-hostname=backoffice.im.vizada.com, port-no=5269, remote-hostname=karaboudjan.im.vizada.com, remote-ip=172.20.0.131, s2s-connection-key=S2S: null, socket=plain, srv-type=_xmpp-server._tcp, type=connect}
2013-06-26 15:01:37 ConnectionManager.reconnectService() FINER: Reconnecting service for: s2s, scheduling next try in 2secs, cid: backoffice.im.vizada.com@karaboudjan.im.vizada.com
2013-06-26 15:01:39 ConnectionManager$1.run() FINE: Reconnecting service for component: s2s, to remote host: karaboudjan.im.vizada.com on port: 5 269
2013-06-26 15:02:00 ConnectionManager$ConnectionListenerImpl.accept() FINEST: Accept called for service: backoffice.im.vizada.com@karaboudjan.im.vizada.com
2013-06-26 15:02:00 IOService.accept() INFO: Problem connecting to remote host: karaboudjan.im.vizada.com, address: null, socket: Socket[unconnected] - exception: java.net.ConnectException: Connection timed out, session data: {socket=plain, port-no=5269, handshaking-domain-key=karaboudjan.im.vizada.com, srv-type=_xmpp-server._tcp, cid=backoffice.im.vizada.com@karaboudjan.im.vizada.com, remote-hostname=karaboudjan.im.vizada.com, local-hostname=backoffice.im.vizada.com, remote-ip=172.20.0.131, handshaking-only-key=handshaking-only-key, ifc=[Ljava.lang.String;@4a09c939, s2s-connection-key=S2S: null, type=connect}
2013-06-26 15:02:00 ConnectionManager$ConnectionListenerImpl.accept() FINEST: Problem reconnecting the service: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: connect, Socket: null, jid: null, cid: backoffice.im.vizada.com@karaboudjan.im.vizada.com
2013-06-26 15:02:06 ConfigRepository.addItem() INFO: No repoChangeListener for: Domain: backoffice.im.vizada.com, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL
2013-06-26 15:02:06 UserRepoRepository.reload() CONFIG: All loaded items: {backoffice.im.vizada.com=Domain: backoffice.im.vizada.com, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}
2013-06-26 15:02:07 Dialback$AuthenticationTimer.run() FINE: Connection not authenticated within timeout, stopping: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null
2013-06-26 15:02:07 ConnectionManager.serviceStopped() FINER: [[s2s]] Connection stopped: CID: backoffice.im.vizada.com@karaboudjan.im.vizada.com, null, type: accept, Socket: nullSocket[addr=/172.20.0.131,port=1184,localport=5269], jid: null

Tigase refuses Tsung

$
0
0

Hi guys,

I set up a tigase(5.1.5) server, and succeed to register, login and chat using Spark. But strangely I failed to use tsung(1.5.0) to perform loading test.

I use the jabber_registrer.xml as tsung script. The tsung log shows the error:

=INFO REPORT==== 28-Jun-2013::02:39:32 ===
           ts_client:(4:<0.6960.0>) connection close while sending message !

=INFO REPORT==== 28-Jun-2013::02:39:32 ===
           ts_client:(5:<0.6960.0>) Server must have closed connection upon us, waiting 10 msec

My tigase.conf:

ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver"
GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=8 -XX:-ReduceInitialCardMarks"
EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"
JAVA_HOME="${JAVA_HOME}"
CLASSPATH=""
JAVA_OPTIONS="${GC} ${EX} ${ENC} ${DRV} -server -Xms100M -Xmx2000M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m "
TIGASE_CONFIG="etc/tigase.xml"
TIGASE_OPTIONS=" --property-file etc/init.properties --test "

My init.properties:

config-type=--gen-config-def
--admins=admin@$xmppserver.com
--virt-hosts = www.xmppserver.com
--monitoring=jmx:9050,http:9080,snmp:9060
--auth-db=tigase-auth
--user-db=mysql
--user-db-uri=jdbc:mysql://127.0.0.1:3306/tigasedb?user=root&password=111111&useUnicode=true&characterEncoding=UTF-8
--user-repo-pool-size=12

I use db-create-mysql.sh to set up my database:

#scripts/db-create-mysql.sh tigase_user tigase_passwd tigasedb root 111111 localhost

My first goal is to create some users in tigase by tsung, but I got this error and can not create any user at all.
I ran tsung on server itself, then on a client PC, both get the same error. Is there anyone has the same problem? Thanks for any answer!

Problem with Message-Archive and SSL

$
0
0

Hello,
I'm new in XMPP configuration, but I try to resolve my problems on my own, but now I'm stuck.

XMPP server - only for LAN users,

I've got problem with Message Archive and SSL.

First: Message archive.
I've created database called: messagearchivedb, then I've inserted mysql_message-archive-schema.sql which is in tigase/database directory

my init.properties file with messagea-archive component

#Archiwum wiadomości
--comp-name-5=message-archive
--comp-class-5=tigase.archive.MessageArchiveComponent
message-archive/archive-repo-uri=jdbc:mysql://localhost:3306/messagearchivedb?user=mydbuser&password=mydbuserpassword
sess-man/plugins-conf/message-archive-xep-0136/component-jid=admin@my.domain.com

and the problem is... log file doesn't contain any errors, warnings (in my opinion).
Everything seems to be ok, because component is loading, checking if tables exist, on 1st run it creates table (tig_ma_msgs) in mysql database.

If i write to somebody, then log file gives:
SessionManager.processPacket() FINEST: Packet processed by: [message-archive-xep-0136, amp]

And nothing appears in database.

My second problem is SSL:

# SSL
--ssl-certs-location = certs
--ssl-container-class = tigase.io.SSLContextContainer
--ssl-def-cert-domain = my.domain.com.pem

I've created public and private key, combined them into one pem file: my.domain.com.pem, inserted to tigase/certs directory.

And if i connect via client to xmpp server it gives me info about certificate: Organisation: tigse.org, Email: admin@tigase.org. so I think it loads default cert, which is generated by tigase after running.

Have anyone any ideas how to resolve theese problems?

Java Error on MUC component (Tigase 5.2 beta 2)

$
0
0

Hello

i just installed Tigase Server 5.2.0 beta 2 on Windows 7 (to be able to test websockets)
when i start writing message in a multi-user chat (i'm using windows "Psi" application), i got that error in my console :

java.lang.NullPointerException
at tigase.muc.history.DerbySqlHistoryProvider.addMessage(DerbySqlHistory
Provider.java)
at tigase.muc.modules.GroupchatMessageModule.addMessageToHistory(Groupch
atMessageModule.java)
at tigase.muc.modules.GroupchatMessageModule.process(GroupchatMessageMod
ule.java)
at tigase.component.modules.ModulesManager.process(ModulesManager.java)
at tigase.component.AbstractComponent.processStanzaPacket(AbstractCompon
ent.java)
at tigase.muc.MUCComponent.processStanzaPacket(MUCComponent.java)
at tigase.component.AbstractComponent.processPacket(AbstractComponent.ja
va)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessa
geReceiver.java)
2013-07-04 15:41:21.203 [in_1-muc] AbstractMessageReceiver$QueueListener
.run() SEVERE: [in_1-muc] Exception during packet processing: from=sess-man@mdn
pc-016.siege.sylogis.com, to=null, DATA=

ddd
admin
, SIZE=207, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TY
PE=groupchat
java.lang.RuntimeException: java.lang.NullPointerException
at tigase.muc.modules.GroupchatMessageModule.process(GroupchatMessageMod
ule.java)
at tigase.component.modules.ModulesManager.process(ModulesManager.java)
at tigase.component.AbstractComponent.processStanzaPacket(AbstractCompon
ent.java)
at tigase.muc.MUCComponent.processStanzaPacket(MUCComponent.java)
at tigase.component.AbstractComponent.processPacket(AbstractComponent.ja
va)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessa
geReceiver.java)
Caused by: java.lang.NullPointerException
at tigase.muc.history.DerbySqlHistoryProvider.addMessage(DerbySqlHistory
Provider.java)
at tigase.muc.modules.GroupchatMessageModule.addMessageToHistory(Groupch
atMessageModule.java)
at tigase.muc.modules.GroupchatMessageModule.process(GroupchatMessageMod
ule.java)
at tigase.component.modules.ModulesManager.process(ModulesManager.java)
at tigase.component.AbstractComponent.processStanzaPacket(AbstractCompon
ent.java)
at tigase.muc.MUCComponent.processStanzaPacket(MUCComponent.java)
at tigase.component.AbstractComponent.processPacket(AbstractComponent.ja
va)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessa
geReceiver.java)

Here is my init.properties :

--cluster-mode = false
config-type = --gen-config-def
--debug = server
--user-db = derby
--admins = admin@mdnpc-016
--user-db-uri = jdbc:derby:c:\\Tigase\\tigasedb
--virt-hosts = mdnpc-016
--comp-class-1 = tigase.muc.MUCComponent
--comp-name-1 = muc

Thank you for any help


Loose session if no action long time

$
0
0

Hi

I have a issue with tigase.I have two user.
They can login and chat normally,if they chat all the time,it is fine.
But if they just login not do anything ,the session will loose about half hour later.
Is there a way to solve this issue ?

Forums migration

$
0
0

All forums have been moved over to Redmine. More information can be found here

Tigase server Monitoring

$
0
0

Hello ,
I have installed Tigase server 5.1.5 version on ubuntu 12.04 . I
need to know how to monitor our tigase server using JMX , I tried to follow post regarding monitoring tigase server using JMx,SNMP,HTTP .I am not getting how to start with these steps .Please give me any good solutions for monitoring server . Also i tried to download Tigase-web messanger from git command, its not working because its not able to connect with tigase repository .I wish to download and test tigase server with tigase client (messanger) . please reply me .Thank you..!!!

Please use our online forums available at new address. I am sorry for any inconvenience.

Viewing all 18 articles
Browse latest View live