Tigase XMPP Server Board

API and development: Tigase ACS

Sun, 09/18/2016 - 22:07

hi,

I am running the tigase v7.0.3 on the EC2 instance, and it is working properly. Now i would like to use the ACS to scale my chat server. I have created a new EC2 instance with the same init.properties as the first one and added these lines

--cluster-mode=true
--sm-cluster-strategy-class=tigase.server.cluster.strategy.OnlineUsersCachingStrategy

I was just wondering is this the only change i need to do. If not could you direct me to a documentation that explains ACS in detail.

I would also like to know about the ACS Licensing.

Thank you.

Categories: Tigase Forums

API and development: RE: 7.1 release

Wed, 09/14/2016 - 22:14

Any updates?

Categories: Tigase Forums

Tigase server ad-hoc scripts: RE: tigase cluster question

Thu, 09/08/2016 - 06:02

bin bin wrote:

Hello,
I have a tigase question about tigase cluster.so i see document on tigase.org site and description of the cluster need to add aparameter:--cluster-mode=true in init.properties file. Could you tell me this is the default cluster pattern.

Yes, this is the only option to enable clustering. Other options serves as a more fine-grined configuration.

I would like to ask this parameters:see-other-host relationship with cluster, there are must be configured?
Site explanation about this parameter:
see-other-host redirection enabled: in servers that have multiple clusters, this feature will help to automatically repopulate the cluster list if one goes down, however if this is unchecked, that list will not change and may attempt to send traffic to a down server.

By default see-other-host load balancing is enabled when clustering is enabled with sane default options (return values when the client can support such redirection, therefore it won't break connectivity). However this doesn't change how clustering works or interfere with the cluster nodes auto-discovery - it's not related.

Consult the front can use the LVS load balancing using HAPROXY is better.

Yes, you can use other load balancing options (for example HAPROXY), you simply need to make sure it is capable of handling required traffic.

Categories: Tigase Forums

Tigase server ad-hoc scripts: tigase cluster question

Thu, 09/08/2016 - 02:39

Hello,
I have a tigase question about tigase cluster.so i see document on tigase.org site and description of the cluster need to add aparameter:--cluster-mode=true in init.properties file. Could you tell me this is the default cluster pattern.
I would like to ask this parameters:see-other-host relationship with cluster, there are must be configured?
Site explanation about this parameter:
see-other-host redirection enabled: in servers that have multiple clusters, this feature will help to automatically repopulate the cluster list if one goes down, however if this is unchecked, that list will not change and may attempt to send traffic to a down server.

Consult the front can use the LVS load balancing using HAPROXY is better.

thanks in advance
Bill

Categories: Tigase Forums

API and development: RE: e2e encryption

Mon, 09/05/2016 - 11:02

e2e encryption is client only feature so there is nothing to enable on server side. You just need 2 clients which support same e2e encryption method.

Could you clarify "encryption method on server"? Tigase by default supports TLS (STARTTLS) for encryption of connection between client and server. This is enabled by default but must be supported by client - most of clients support this.

Categories: Tigase Forums

API and development: e2e encryption

Mon, 09/05/2016 - 10:58

hi all,

I am using the tigase 5.2
I need know how to enable a e2e encryption on server or a encryption method on server.

Thank you.

Juan

(Sorry for my english)

Categories: Tigase Forums

API and development: RE: How to retrive user status (online/offline) in process method.

Sat, 09/03/2016 - 13:05

Message is processed twice as Tigase processes it twice - once as message sent to full jid, but as this full jid is not available it processes it seconds time as message sent to bare jid. This is done due to fact that Tigase uses XMPP message processing as defined in RFC 6121: Section 8.5.3.2.1

It is possible to change processing and return error if recipient to which message is sent to full jid is not avilable by changing delivery-rules setting.

Categories: Tigase Forums

API and development: RE: Plugin processes a packet 2 times from sender

Thu, 09/01/2016 - 04:33
the sender and receiver of the message packet is the same

you were right with this, thank you

Categories: Tigase Forums

API and development: RE: How to retrive user status (online/offline) in process method.

Thu, 09/01/2016 - 03:17

Thank you for your rapid answer.

When session is null message goes through session manager twice and the to parameter appears, one time with full JID and one time with bare JID. why this happens? and what is the difference between the first time and the second time?

Thanks.

Categories: Tigase Forums

API and development: RE: How to retrive user status (online/offline) in process method.

Thu, 09/01/2016 - 00:40

It goes through Session Manager twice - for the session of UserA, and then for the session of UserB. If the UserB is offline, the in your plugin session variable will be null - please check message or msgoffline plugins.

Categories: Tigase Forums

API and development: How to retrive user status (online/offline) in process method.

Thu, 09/01/2016 - 00:08

Hi,

I'd like to find that the specific user "B" is offline or online in process method from the session variable. The problem is when user A tries to send a message to the user B, if the user B is not online, each stanza goes through the Session Manager component just one time. So, How can I find out the user B is offline in my plugin ,without database query, just by the process of message in Session Manager?

Thank you.

Categories: Tigase Forums

API and development: How to retrive user status (online/offline) in process method.

Thu, 09/01/2016 - 00:07

Hi,

I'd like to find that the specific user "B" is offline or online in process method from the session variable. The problem is when user A tries to send a message to the user B, if the user B is not online, each stanza goes through the Session Manager component just one time. So, How can I find out the user B is offline in my plugin ,without database query, just by the process of message in Session Manager?

Thank you.

Categories: Tigase Forums

API and development: RE: 7.1 release

Fri, 08/26/2016 - 15:16

The version 7.1.0 will be released within a few weeks, definitely sooner than later. All the code is already finished and tested and we are polishing documentation and some other minor things.

Categories: Tigase Forums

API and development: 7.1 release

Fri, 08/26/2016 - 01:53

When 7.1 version will be released?

Categories: Tigase Forums

Installation and maintenance: RE: Upgrade from 5.1 to 7.04 failed

Tue, 08/16/2016 - 08:03

Hi Benno,
Your schemas should be fine as we did not change them until v7.1.0. It looks like Tigase does not have the right directory for the jdbc files. The libs directory was changed to jars, so adjust your init.properties to use that folder instead. Alternatively you could copy the contents of the jars folder to the libs folder, that should fix this error. Be sure to scour the logs file for any instances where you are using depreciated names for components and methods, there were a lot of changes between 5.1 and v7.

Categories: Tigase Forums

Installation and maintenance: Upgrade from 5.1 to 7.04 failed

Tue, 08/16/2016 - 02:22

Hi,

I tried an upgrade from our old 5.1 tigase xmpp server to 7.04.

I did it this way:
unpack the archive with new version next to current one,
stop the old instance,
copy over configuration (etc/*), certificates (certs/*),
start new instance.

At tigase.log.0 I found the following errors:

2016-08-08 12:36:25.453 [main] DataRepositoryImpl.initRepository() SEVERE: null
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at tigase.db.jdbc.DataRepositoryImpl.initRepository(DataRepositoryImpl.java:262)
at tigase.db.RepositoryFactory.getDataRepository(RepositoryFactory.java:458)
at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:575)
at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
at tigase.server.sreceiver.StanzaReceiver.setProperties(StanzaReceiver.java:572)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
at tigase.server.XMPPServer.start(XMPPServer.java:142)
at tigase.server.XMPPServer.main(XMPPServer.java:112)
2016-08-08 12:36:25.454 [main] DataRepositoryImpl.initRepository() INFO: Table schema found: tigase, database type: mysql, database driver: com.mysql.jdbc.Driver
2016-08-08 12:36:25.454 [main] StanzaReceiver.setProperties() SEVERE: Can't initialize repository:
tigase.db.DBInitException: Problem initializing jdbc connection: jdbc:mysql://localhost/tigase?user=tigase&password=*****
at tigase.db.jdbc.JDBCRepository.initRepository(JDBCRepository.java:612)
at tigase.db.RepositoryFactory.getUserRepository(RepositoryFactory.java:660)
at tigase.server.sreceiver.StanzaReceiver.setProperties(StanzaReceiver.java:572)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
at tigase.server.XMPPServer.start(XMPPServer.java:142)
at tigase.server.XMPPServer.main(XMPPServer.java:112)

Will I have to update the schema or something?

Categories: Tigase Forums

API and development: RE: 7.0.4

Fri, 08/05/2016 - 05:11

Thank you for reporting this issue. I created bug report #4447 in which it will be fixed.

I do not know what 7.0.4 in your topic refers to as this issue may appear only in unstable version 7.2.0-SNAPSHOT which is now in master branch of our Git repository. (Class tigase.server.amp.db.MsgRepository never existed before - it was created in version 7.2.0-SNAPSHOT).

Categories: Tigase Forums

API and development: 7.0.4

Thu, 08/04/2016 - 18:27

2016-08-05 08:46:16.760 [expired-processor] ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "expired-processor" exception
java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.fullyRelease(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
at tigase.server.amp.db.MsgRepository$MsgRepositoryMDBean.getMessageExpired(MsgRepository.java:295)
at tigase.server.amp.action.Store$1.run(Store.java:220)

Categories: Tigase Forums

Installation and maintenance: RE: how to upgrade Tigase XMPP Server 7.0.4 to version 7.1.0-SNAPSHOT

Tue, 08/02/2016 - 01:39

This highly depends on the setup you've made - if you are using sysinit scripts (installed to /etc/init.d/…) then use that, otherwise start Tigase with ./scripts/tigase.sh start etc/tigase.conf

Categories: Tigase Forums

Installation and maintenance: RE: how to upgrade Tigase XMPP Server 7.0.4 to version 7.1.0-SNAPSHOT

Tue, 08/02/2016 - 01:32

thank for your reply

after do every thing, how do i start my new server ?

./scripts/{OS}/init.d/tigase start etc/tigase.conf

or

./scripts/tigase.sh start etc/tigase.conf

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

Back to Top