Project

General

Profile

How to use the acs ?

Moffitt tig
Added over 2 years ago

Hi.using the tigase7.1.0 in init.properties below add:

--cluster-mode = true
--sm-cluster-strategy-class= tigase.server.cluster.strategy.OnlineUsersCachingStrategy 
--customer-id=xxxxxxxxx
--comp-name-1 = muc
--comp-class-1 = tigase.muc.cluster.MUCComponentClustered
muc/muc-strategy-class[S]=tigase.muc.cluster.ClusteredRoomStrategy
--comp-name-2 = pubsub
--comp-class-2 = tigase.pubsub.cluster.PubSubComponentClustered

Wait a few minutes appear below:

2016-09-19 16:58:38.086 [pool-14-thread-1]  LicenceChecker.d()                WARNING:  Licence invalid
java.lang.NullPointerException
    at tigase.licence.d.check(SourceFile:93)
    at tigase.licence.b.check(SourceFile:72)
    at tigase.licence.LicenceChecker.d(SourceFile:260)
    at tigase.licence.LicenceChecker.a(SourceFile:56)
    at tigase.licence.LicenceChecker$a.run(SourceFile:380)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2016-09-19 16:58:38.091 [pool-14-thread-1]  LicenceChecker$a.run()            WARNING:  
This installation contains Tigase ACS package, not an open source software.
The Tigase ACS is only available under a commercial license.
The full text of the commercial license agreement is available upon request.

More information about ACS component and licensing can be found here:
http://www.tigase.com/content/tigase-acs-advanced-clustering-strategy
The Tigase ACS component is provided free of charge for testing and
development purposes only. Any use of the component on production systems,
either commercial or not-for-profit, requires the purchase of a license.

If the Tigase ACS component is activated without a valid license, it will
continue to work, including its full set of features, but it will send
certain statistical information to Tigase's servers on a regular basis.
If the Tigase ACS component cannot access our servers to send information,
it will stop working. Once a valid license is installed, the Tigase ACS
component will stop sending statistical information to Tigase's servers.

By activating the Tigase ACS component without a valid license you agree
and accept that the component will send certain statistical information
(such as DNS domain names, vhost names, number of online users, number of
cluster nodes, etc.) which may be considered confidential and proprietary
by the user. You accept and confirm that such information, which may be
considered confidential or proprietary, will be transferred to Tigase's
servers and that you will not pursue any remedy at law as a result of the
information transfer.
If the Tigase ACS component is installed but not activated, no statistical
information will be sent to Tigase's servers.
2016-09-19 16:58:38.320 [pool-14-thread-1]  LicenceChecker$a.run()            WARNING:  Uploading data
2016-09-19 16:58:41.607 [Timer-1]          StatisticsUploader$1.run()         SEVERE:   exception uploading statistics
java.net.UnknownHostException: stats.tigase.org
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at tigase.stats.collector.provider.StatisticsUploader.a(SourceFile:47)
    at tigase.stats.collector.provider.StatisticsUploader$1.run(SourceFile:99)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
2016-09-19 17:00:44.946 [Timer-1]          StatisticsUploader$1.run()         SEVERE:   exception uploading statistics
java.net.UnknownHostException: stats.tigase.org
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at tigase.stats.collector.provider.StatisticsUploader.a(SourceFile:47)
    at tigase.stats.collector.provider.StatisticsUploader$1.run(SourceFile:99)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

This is why ? How to solve ?

Have the document said how to test using the acs ?

thank you in advance!


Replies (3)

Added by Wojciech Kapcia TigaseTeam over 2 years ago

Moffitt tig wrote:

Hi.using the tigase7.1.0 in init.properties below add:

[...]

Wait a few minutes appear below:

[...]

This is why ? How to solve ?

  • NPE - there was a bug in statistics code but it was fixed in the latest nightlies; however - it did not influenced functioning of the strategy.

  • java.net.UnknownHostException: stats.tigase.org - ACS component requires communication with our servers and it looks like either your DNS resolver is not working or you are blocking this hostname - please allow communication with that domain.

Added by Moffitt tig over 2 years ago

hello . Wojciech Kapcia

java.net.UnknownHostException: stats.tigase.org - ACS component requires communication with our servers and it looks like either your DNS resolver is not working or you are blocking this hostname - please allow communication with that domain.

I still don't understand, how to avoid the abnormal ,Can say in detail ?

thank you in advance!

Added by Wojciech Kapcia TigaseTeam over 2 years ago

Moffitt tig wrote:

hello . Wojciech Kapcia

java.net.UnknownHostException: stats.tigase.org - ACS component requires communication with our servers and it looks like either your DNS resolver is not working or you are blocking this hostname - please allow communication with that domain.

I still don't understand, how to avoid the abnormal ,Can say in detail ?

thank you in advance!

You must make sure that you are able to access http://stats.tigase.org:8080/ from the machine that runs Tigase XMPP Server. This depends on the operating system you are using.

    (1-3/3)