Tigase XMPP Server Board

Tigase server administration: RE: Unable to log with admin account after installation

Wed, 07/15/2015 - 05:13

Wojciech Kapcia wrote:

Cyrille Voluter wrote:

I can log with admin account through XMPP client now.
This can be possible by changing SHA1_user_id value into admin account row (tigasedb.tig_users table).

What exactly you had to change? Installer uses stored procedures so need to change something manually would indicate some error during installation.

Cyrille Voluter wrote:

Web admin endpoint has been activated by replacing component class restMessageReciever by HttpMessagereceiver into inti.propreties message.

Thank you, I've corrected the class in the installer.

But I can't log with admin account into web log page.
When i check request with browser development tool, i got an CORS cross Policy error over BOSH communication.

What exact URL are you trying to access?

Web interface is plenty functional when i browse from localhost machine :

When I'm connect here: http://localhost:8080/ui/ , i can log with admin@domainmachin + password. For other admin domain, I add bosh url : http://localhost:5280/bosh.

Unfortunately, when i try from other than localhost machine, i can connect on auth page from http://mydomain.cloudapp.net:8080/ui/ but when I try to log in something (bosh url : http://mydomain.cloudapp.net:5280/bosh) nothing proceed and CROSS domain error appear into debug dev log plug in.
I have already tried with full ip but it something.

Categories: Tigase Forums

Tigase server development: RE: Unable using REST API

Wed, 07/15/2015 - 05:02

Hello,
You are finally all right, i have left necessary jars for old 1.0.0.0 rest api and change open jdk 7 for oracle jdk 8 and all working fine (just add http/api-key[s]=open_access for enabling access).

Tanks for help,

Categories: Tigase Forums

Tigase server development: Recieve a message twice

Wed, 07/15/2015 - 04:26

Hi every body,
I have a tigase server with below configuration.
config-type = --gen-config-def --cluster-mode = false --test = false --debug = server,xmpp.impl --virt-hosts = X --admins = admin@X #--monitoring=jmx:9050 --stats-history = 480,300 --stats-archiv=tigase.stats.CounterDataFileLogger:stats-file-logger:300 stats/stats-archiv/stats-file-logger/stats-directory=logs/server_statistics stats/stats-archiv/stats-file-logger/stats-filename=stat stats/stats-archiv/stats-file-logger/stats-unixtime=false stats/stats-archiv/stats-file-logger/stats-datetime=true stats/stats-archiv/stats-file-logger/stats-datetime-format=HH:mm:ss stats/stats-archiv/stats-file-logger/stats-level=FINE message-router/components/msg-receivers/ws2s.active[B]=false message-router/components/msg-receivers/bosh.active[B]=false --vhost-anonymous-enabled = false --cm-see-other-host = none # --user-db-uri = jdbc:mysql://localhost/tigase?user=tigase&password=tigase # --user-db = mysql --user-db-uri = jdbc:postgresql://localhost/tigase?user=tigase&password=tigase --user-db = pgsql basic-conf/logging/java.util.logging.FileHandler.pattern = /var/log/tigase/tigase.log basic-conf/config-dump-file = /etc/tigase/config-dump.properties c2s/processors[s]=urn:xmpp:sm:3 c2s/xmpp-ack[B]=true #c2s/watchdog_delay[L]=30000 #c2s/watchdog_timeout[L]=60000 #c2s/watchdog_ping_type=xmpp --domain-filter-policy=OWN --new-connections-throttling = 5222:500 --sm-plugins = +jabber:iq:last,+message-carbons,-message-archive-xep-0136,+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,-jabber:iq:register,+jabber:iq:roster,+presence,-jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,-pep,-zlib,+amp,-message,-msgoffline,+urn:xmpp:blocking --amp-security-level=PERFORMANCE sess-man/plugins-conf/amp/msg-offline = true sess-man/plugins-conf/jabber\:iq\:roster/auto-authorize = true sess-man/plugins-conf/presence/auto-authorize = true sess-man/plugins-conf/amp/store-limit=100000 amp/store-limit[S]=100000 --comp-name-1 = proxy --comp-class-1 = tigase.socks5.Socks5ProxyComponent
When I send a message from client A to client B, I see it in client B.
07-15 15:47:35.955 16939-7619/ D/SMACK﹕ RECV (28): <message id="Z78GXgMmb7OH3rl16boGmkjkq3m77J" type="chat" to="yo9qxkq61zh5@X" xmlns="jabber:client" from="vv71lfjrgcwu@X/ba1dd717b6ef5a26"><body>XXX</body><thread>_oMVsOplU</thread><active xmlns="http://jabber.org/protocol/chatstates"/><request xmlns="urn:xmpp:receipts"/></message>
07-15 15:47:35.989 16939-7618/ D/SMACK﹕ SENT (28): <message to='vv71lfjrgcwu@X/ba1dd717b6ef5a26' id='3289F-475' type='chat'><received xmlns='urn:xmpp:receipts' id='Z78GXgMmb7OH3rl16boGmkjkq3m77J'/></message>
07-15 15:47:35.992 16939-7618/ D/SMACK﹕ SENT (28): <r xmlns='urn:xmpp:sm:3'/>
07-15 15:47:36.152 16939-7619/ D/SMACK﹕ RECV (28): <a xmlns='urn:xmpp:sm:3' h='10'/>
then I go offline in client B and go online again, I receive the same message again from offline store now
07-15 15:50:52.275 16939-14318/ D/SMACK﹕ RECV (31): <message id="Z78GXgMmb7OH3rl16boGmkjkq3m77J" type="chat" to="yo9qxkq61zh5@X" xmlns="jabber:client" from="vv71lfjrgcwu@X/ba1dd717b6ef5a26"><body>XXX</body><thread>_oMVsOplU</thread><active xmlns="http://jabber.org/protocol/chatstates"/><request xmlns="urn:xmpp:receipts"/><delay stamp="2015-07-15T11:20:28.147Z" xmlns="urn:xmpp:delay" from="X"/><delay stamp="2015-07-15T11:20:28.202Z" xmlns="urn:xmpp:delay" from="X">Offline Storage - X</delay></message>

Is it a server side bug?

Categories: Tigase Forums

Tigase server development: RE: Unable using REST API

Wed, 07/15/2015 - 02:02

Wojciech Kapcia wrote:

Cyrille Voluter wrote:

There are two issues actually:

java_util_logging_Logger$log.call() SEVERE: exception processing request
java.lang.SecurityException: class "javax.servlet.http.HttpUpgradeHandler"'s signer information does not match signer information of other classes in the same package
at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)

Please make sure you have exact set of jars provided in Tigase package without any duplicates.

Here my jars folder content :

drwxrwxr-x 2 myuser myuser 4096 Jul 7 15:09 ./ drwxr-xr-x 38 myuser myuser 4096 Jul 15 10:23 ../ -rwxrw-r-- 1 myuser myuser 2703892 May 14 20:55 derby.jar* -rwxrw-r-- 1 myuser myuser 174932 May 14 20:55 derbytools.jar* -rwxrw-r-- 1 myuser myuser 6317783 May 14 20:55 groovy-all.jar* -rwxrw-r-- 1 myuser myuser 45024 May 15 00:44 hamcrest-core.jar* -rwxr--r-- 1 501 staff 200387 May 6 2013 javax.servlet.jar* -rwxr--r-- 1 501 staff 21146 May 6 2013 jetty-continuation.jar* -rwxr--r-- 1 501 staff 60749 Jul 15 2013 jetty-deploy.jar* -rwxr--r-- 1 501 staff 95691 May 6 2013 jetty-http.jar* -rwxr--r-- 1 501 staff 103285 May 6 2013 jetty-io.jar* -rwxr--r-- 1 501 staff 89693 May 6 2013 jetty-security.jar* -rwxr--r-- 1 501 staff 347872 May 6 2013 jetty-server.jar* -rwxr--r-- 1 501 staff 98935 May 6 2013 jetty-servlet.jar* -rwxr--r-- 1 501 staff 284472 May 6 2013 jetty-util.jar* -rwxr--r-- 1 501 staff 110161 Jul 15 2013 jetty-webapp.jar* -rwxr--r-- 1 501 staff 38982 Jul 15 2013 jetty-xml.jar* -rwxrw-r-- 1 myuser myuser 68274 May 15 00:44 jstun.jar* -rwxrw-r-- 1 myuser myuser 301946 May 15 00:44 jtds.jar* -rwxrw-r-- 1 myuser myuser 22922 May 15 00:44 licence-lib.jar* -rwxrw-r-- 1 myuser myuser 703265 May 14 20:55 mysql-connector-java.jar* -rwxrw-r-- 1 myuser myuser 551290 May 14 20:55 postgresql.jar* -rwxrw-r-- 1 myuser myuser 95806 Jul 6 18:00 servlet-api-3.1.jar* -rwxrw-r-- 1 myuser myuser 56815 May 15 00:44 tigase-acs.jar* -rwxrw-r-- 1 myuser myuser 67322 May 15 00:44 tigase-acs-muc.jar* -rwxrw-r-- 1 myuser myuser 33408 May 15 00:44 tigase-acs-pubsub.jar* -rwxrw-r-- 1 myuser myuser 49592 Jul 7 15:09 tigase-extras-1.0.0.jar* -rwxrw-r-- 1 myuser myuser 43441 May 15 00:44 tigase-extras.jar* -rwxrw-r-- 1 myuser myuser 209250 May 15 00:44 tigase-http-api.jar* -rwxrw-r-- 1 myuser myuser 1347880 Jul 6 18:11 tigase-http-api-libraries.tar.gz* -rwxrw-r-- 1 myuser myuser 55141 May 15 00:44 tigase-message-archiving.jar* -rwxrw-r-- 1 myuser myuser 157257 May 15 00:44 tigase-muc.jar* -rwxrw-r-- 1 myuser myuser 274716 May 15 00:44 tigase-pubsub-2.2.0.jar.old* -rwxrw-r-- 1 myuser myuser 354973 May 15 00:44 tigase-pubsub.jar* -rwxrw-r-- 1 myuser myuser 1990114 May 15 00:44 tigase-server.jar* -rwxrw-r-- 1 myuser myuser 60275 May 15 00:44 tigase-socks5.jar* -rwxrw-r-- 1 myuser myuser 8656 May 15 00:44 tigase-stats-collector-library.jar* -rwxrw-r-- 1 myuser myuser 7689 May 15 00:44 tigase-stats-collector-provider.jar* -rwxrw-r-- 1 myuser myuser 12484 May 15 00:44 tigase-stun.jar* -rwxrw-r-- 1 myuser myuser 6998410 May 15 00:44 tigase-web-ui.war*
Categories: Tigase Forums

Tigase server administration: RE: Support for End User session xep-133 feature

Wed, 07/15/2015 - 01:04

Hello,
Thanks for your response,

A speficic Tigase version can be use this feature or is there a version that is supposed to support it?
Otherwise, is it possible to use this feature under REST interface ?

Thanks,

Categories: Tigase Forums

Tigase server development: Hack Tigase through Eclipse

Tue, 07/14/2015 - 21:53

I am trying to configure tigase in eclipse and I am getting an error while trying to import tigase.psf
Error is:
The following errors occurred while importing projects. Some projects may not be loaded.
org.apache.subversion.javahl.ClientException: Filesystem has no item
svn: Unable to connect to a repository at URL 'https://projects.tigase.org/reps/tigase-server/trunk'
svn: '/reps/tigase-server/trunk' path not found

org.apache.subversion.javahl.ClientException: Filesystem has no item
svn: Unable to connect to a repository at URL 'https://projects.tigase.org/reps/tigase-server/trunk'
svn: '/reps/tigase-server/trunk' path not found

am new to this, can anyone provide detailed configuration process??

Categories: Tigase Forums

Tigase server development: RE: Firefox 39 secure websockets issue

Tue, 07/14/2015 - 12:24

Thanks Andrzej

we use Tigase 7.0.0
we updated JDK on server to 8 and looks like it works now

Categories: Tigase Forums

Tigase server development: RE: Firefox 39 secure websockets issue

Tue, 07/14/2015 - 12:08

This issue appeared due to the fact that new versions of web browsers (Firefox, Chrome and others) increased security requirements from ciphers used for HTTPS/WSS connection encryption.

To fix this issue it is required to use newest versions of Tigase XMPP Server as JDK 8 is required to be able to use required ciphers.
I also suggest to unlock strong cryptography in Java by installation of Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files to increase number of supported strong encryption ciphers.

Categories: Tigase Forums

MongoDB discussion: auth failed

Tue, 07/14/2015 - 07:02

com.mongodb.CommandFailureException: { "serverUsed" : "10.0.146.34:27017" , "ok" : 0.0 , "errmsg" : "auth failed" , "code" : 18}
at com.mongodb.CommandResult.getException(CommandResult.java:76)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:652)
at com.mongodb.DBPort.authenticate(DBPort.java:364)
at com.mongodb.DBPort.checkAuth(DBPort.java:375)
at com.mongodb.DBTCPConnector.doOperation(DBTCPConnector.java:209)
at com.mongodb.DBCollectionImpl.sendWriteCommandMessage(DBCollectionImpl.java:477)
at com.mongodb.DBCollectionImpl.writeWithCommandProtocol(DBCollectionImpl.java:427)
at com.mongodb.DBCollectionImpl.updateWithCommandProtocol(DBCollectionImpl.java:417)
at com.mongodb.DBCollectionImpl.update(DBCollectionImpl.java:267)
at com.mongodb.DBCollection.update(DBCollection.java:191)
at com.mongodb.DBCollection.update(DBCollection.java:224)
at tigase.mongodb.cluster.ClConMongoRepository.storeItem(ClConMongoRepository.java:143)
at tigase.cluster.repo.ClConConfigRepository.reload(ClConConfigRepository.java:120)
at tigase.mongodb.cluster.ClConMongoRepository.reload(ClConMongoRepository.java:163)
at tigase.db.comp.ConfigRepository$1.run(ConfigRepository.java:74)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
2015-07-14 21:57:24.330 [cluster-nodes] ClConMongoRepository.reload() WARNING: Problem getting elements from DB:

and my db URI :
--user-db-uri=mongodb://xmppuser:/xmppdb

is there something wrong?

Categories: Tigase Forums

Tigase server development: RE: Startup Errors

Tue, 07/14/2015 - 04:45

Hi, The following are my configuration and log output

Categories: Tigase Forums

Tigase server development: RE: Register user error

Tue, 07/14/2015 - 03:21

Thank you for confirmation. I've commited to the repository that will prevent disabling this plugin while using MongoDB.

Categories: Tigase Forums

Tigase server development: RE: Register user error

Tue, 07/14/2015 - 03:04

thanks a lot. When using mongodb ,the sentence
--sm-plugins=+jabber:iq:register
needs to be added , and it would be loaded by default when using MySQL.

Categories: Tigase Forums

Tigase server development: RE: Compile binary files`

Tue, 07/14/2015 - 02:43

I do really appreciate.
Brilliant.
thousand thanks.

Categories: Tigase Forums

Tigase server development: RE: Roster

Tue, 07/14/2015 - 02:38

Thanks for the update,

Herewith I have attached document of xml transaction for the friend request.

Please let me know what I have to do next?

Categories: Tigase Forums

Tigase server development: RE: Compile binary files`

Tue, 07/14/2015 - 01:51

Ehsan Mozaffari wrote:

I really appreciated for answering me rapidly.
I can run java files in CMD. However, If I have done the compilation, I'd run the single java file like tigase-server-7.0.2-b3821.jar.
I am not only face the no main manifest attribute but also the whole java package in the binary files. In other words, I don't have any instructions in windows in order to how can I be able to convert this whole package plus my own accompanied java file ( tigase-server.jar ) with these available tools ( eclipse+maven compiler and CMD ) on windows 8 OS.

This has been described here: Building Server and Generating Packages

If you run simple maven build in the main directory you'll build the main tigase-server binary. If you want to create the complete package you should run maven build for the master module (modules/master/pom.xml) and in addition enable dist maven profile (from main tigase-server directory):

mvn -Pdist -f modules/master/pom.xml clean install

Another of my problems is, when I run the run.bat file as administrator the command prompt disappeared, moreover, the InstallTigaseService.bat runs successfully but its service cannot execute from services.msc because of the error 1067: the process terminated unexpectedly
and if this problem is solved the other problem is stop.bat file.

You can run all those files directly from the command line, i.e. first open CMD and then execute the file - it will prevent window from closing automatically - it shouldn't close by itself but it will help debug the issue. Most likely the problem stems from the problem in the configuration and/or missing schema.

Categories: Tigase Forums

Tigase server development: RE: Roster

Tue, 07/14/2015 - 01:44

Vinoth Rajendran wrote:

I have to users "user1" and "user2". new1 gives contact request to user2 and user2 request to new 1.

Suddenly, user2 has user1 as friend but user1 has pending contact of user2.

Is this is bug or correct scenario?

After I logged out and login as user2. I got changed user 1 as friend.

Please share full XML stanza exchange in the client with the server. Including roster push entries.

Categories: Tigase Forums

Tigase server development: RE: how to slove Queue overflow when the tigase server run a wihle

Tue, 07/14/2015 - 01:40

There are two offending plugins in your case:
sess-man/Processor: session-close=,Queue: 192945, AvTime: 11, Runs: 2446988, Lost: 10121,
sess-man/Processor: jabber:iq:auth=, Queue: 96471, AvTime: 7, Runs: 3492587, Lost: 1039766,

Please:
  • check your database connectivity;
  • make sure there aren't any deadlocks.
Categories: Tigase Forums

Tigase server administration: RE: Configuration question.

Tue, 07/14/2015 - 01:24

Slava Bendersky wrote:

1 There are another few configuration issues which can't find resolution for it.

1. Bosh get rolled until timeout both port 5281,5280
If I open browser to http://ip:5280/http-bind it just sit there are until time out never finish transaction.

Why are you doing that? What are you trying to achieve? Simply opening this in your browser won't do anything. Please peruse XEP-0124: Bidirectional-streams Over Synchronous HTTP and XEP-0206: XMPP Over BOSH

2. How to create Roster Groups for User under one organization ? And how to subscribe to it by default specific users.

Shared Roster Groups. Where admin can create the group and add user to the group, with ability share roster/presence updates and see they status. Most organization will not allow for user to do operation with contact list, they just want that user will log in and see what groups with contacts are assigned/available to him based on departments, teams and so on.

So Dynamic Roster is perfect fit - please see my previous link.

Categories: Tigase Forums

Tigase server development: RE: Unable using REST API

Tue, 07/14/2015 - 01:20

Cyrille Voluter wrote:

There are two issues actually:

java_util_logging_Logger$log.call() SEVERE: exception processing request
java.lang.SecurityException: class "javax.servlet.http.HttpUpgradeHandler"'s signer information does not match signer information of other classes in the same package
at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)

Please make sure you have exact set of jars provided in Tigase package without any duplicates.

[sess-man tasks] ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "sess-man tasks" exception
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at tigase.server.xmppsession.SessionManager.everyMinute(SessionManager.java:2211)
at tigase.server.AbstractMessageReceiver$3.run(AbstractMessageReceiver.java:1247)
at java.util.TimerThread.mainLoop(Timer.java:555)

This is a result of using Tigase package build with JDK8 under previous version of Java and can be ignored.

Categories: Tigase Forums

Tigase server administration: RE: Support for End User session xep-133 feature

Tue, 07/14/2015 - 01:13

This command is not available in Tigase 7.0.2.

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