Feed aggregator

Installation and maintenance: RE: Would tigase 7.1.0 support emojies storage in archived tables?

Tigase XMPP Server Board - Thu, 09/14/2017 - 15:03

I had the same issue and i solved it changing the mysql-connector lib to 5.1.43.

Categories: Tigase Forums

API and development: Feature request: to add 'element_id' field into 'tig_offline_messages' table...

Tigase XMPP Server Board - Thu, 09/14/2017 - 04:08

Hi there,

We are implementing the 'Last Message Correction' plugin
https://xmpp.org/extensions/xep-0308.html

At this moment we have one issue with 'tig_offline_messages' table

Let's image the following case:
1) User1 is online, User2 is offline
2) User1 sent 3 messages to User2 -> all the messages go to offline storage
3) User1 now edits e.g. 2nd message, e.g. he made a mistake.
At this stage, we have to modify a message we send before in offline storage.
So User2 will receive corrected message when will be online.

Problem: we do not have a way to retrieve an original message from offline storage via packet ID.
We have a 'msg_id' column in 'tig_offline_messages' table but it's something not related at all to real messages users send.
https://projects.tigase.org/projects/tigase-server/repository/revisions/master/entry/server/database/mysql-schema-7-2-schema.sql#L44

Would be great to have an additional column 'element_id' here and select by it.

What do you think?

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tigase XMPP Server Board - Wed, 09/13/2017 - 18:20

Thank you so much for replying :-)

I have not moved my server. It's just a localhost simple installation. I am just confused where all should I change the localhost. I believe that the the mongoDB path to localhost is justified as it is just a localhost installation of Mongo as well.

If I should change my initial.properties only, where all should I change it. I tried changing it a couple of times but couldn't connect with the tigase as server as the new virtual host put wasn't listening on the port 5222.

As for getting admin panel, how can I check if my tigase listening on the port 8080.

I apologize if any of my answers are primitive in their sense.

I am really interested to use the tigase Server as it perfectly fits my probable timeline of the application.

Appreciate any and all the help given :-)

Categories: Tigase Forums

Installation and maintenance: RE: XMPP server is not working on IP

Tigase XMPP Server Board - Wed, 09/13/2017 - 09:36

praveen kumar wrote:

my XMPP is setup on localhost.If I create a user using tigase.im service as test1@localhost it will create the user. but if I use my IP as it will not create the user.

How are you exactly creating those users and what error do you receive?

I want to use IP to create a user from my machine and another machine in same network.

As Daniel said - using IPs is generally discouraged and you should use domain names (even though those will be used only as identifiers so requiring correct routing will be required).

Why are you trying to use IPs instead of FQDN?

Categories: Tigase Forums

API and development: RE: Some warnings when enable Clustering on Tigase 7.2.0-SNAPSHOT servers?

Tigase XMPP Server Board - Wed, 09/13/2017 - 09:33

Wei Sun wrote:

My exactly version of tigase-server is 9908af23d8ab8f7b186a5b52fed11d922944e24e.
my init.properties file contain the following:

Providing complete configuration would be very helpful.

Does it matter? How to solve the problems? thanks

It looks like you are using some sort of custom build (vide commit details) - please:
  • verify that your config works with binaries provided by us;
  • verify that your custom build has all required dependencies.
Categories: Tigase Forums

API and development: RE: List of loaded plugins.

Tigase XMPP Server Board - Wed, 09/13/2017 - 09:31

Dymytrii Hurin wrote:

Hi there, I'm trying to find which plugins are loaded by server. Currently, I find this list in SessionManager

Currently this is not possible through API, neither in 7.1.x nor upcoming 7.2.0. You could probably use Reflection to that end.

My use case is, send an error to client if administrator forgets to enable plugin.

I would recommend checking that the installation is correctly configured before making it available to the end-users.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tigase XMPP Server Board - Wed, 09/13/2017 - 09:25

Aniketh R Jain wrote:

  • The issue I face now is if i change the virt-hosts to something else, it tells "new.host:5222" connection error

Providing detailed error would be beneficial as it gives more information why the error occurred.

I need to understand how do i change this host name
  • Also, the users I create get created with localhost

Below is my creation code:
[...]

Now the issue is if I change the "localhost" to match a new virt-host name, it fails.**

How did you changed the localhost? Have you changed only domain? Have you moved the server? Please keep in mind that you have both hostname (network address where the Tigase is installed and where you want to connect) and VHost/domain - which will be handled by Tigase. One more to keep in mind is that if you simply change the domain this won't affect created users, so you would need to create account with new domain name (either directly in the database or using InBandRegistration)

As for accessing admin panel - is Tigase listening on that port?

Categories: Tigase Forums

Installation and maintenance: RE: XMPP server is not working on IP

Tigase XMPP Server Board - Tue, 09/12/2017 - 22:30

my XMPP is setup on localhost.If I create a user using tigase.im service as test1@localhost it will create the user. but if I use my IP as it will not create the user. I want to use IP to create a user from my machine and another machine in same network.

Categories: Tigase Forums

Installation and maintenance: RE: XMPP server is not working on IP

Tigase XMPP Server Board - Tue, 09/12/2017 - 22:19

Hi there,
XMPP by default does not use IP addresses to deliver packets, rather they will go to a FQDN of the server itself.
I am a bit confused at the question however. Are you attempting to create users on our tigase.im service? Or are you trying to create users on your local machine?

Categories: Tigase Forums

Installation and maintenance: XMPP server is not working on IP

Tigase XMPP Server Board - Tue, 09/12/2017 - 22:07

Hi, Team.

My XMPP is working fine on localhost and on IP. but I am not able to create a user on Tigase.im service to IP address. it's working only on localhost. Please help to resolve this on IP address.

Categories: Tigase Forums

API and development: Some warnings when enable Clustering on Tigase 7.2.0-SNAPSHOT servers?

Tigase XMPP Server Board - Tue, 09/12/2017 - 05:11

My exactly version of tigase-server is 9908af23d8ab8f7b186a5b52fed11d922944e24e.
my init.properties file contain the following:
--cluster-mode = true

When I restart the tigase-server, lots of warnings will appear in tigase-console.log:
warning1:
2017-09-12 20:02:40.447 [main] Kernel.injectDependencies() WARNING: Could not initialize bean presenceCollectorModule, skipping injection of this bean tigase.kernel.KernelException: Can't inject <null> to field tigase.pubsub.modules.PresenceCollectorModule.capsModule at tigase.kernel.core.Kernel.inject(Kernel.java:477) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:571) at tigase.kernel.core.Kernel.initBean(Kernel.java:144) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:537) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:703) at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1305) at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:984) at tigase.kernel.core.Kernel.initBean(Kernel.java:140) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:537) at tigase.kernel.core.Kernel.initBean(Kernel.java:144) at tigase.kernel.core.Kernel.getInstance(Kernel.java:357) at tigase.server.Bootstrap.start(Bootstrap.java:107) at tigase.server.XMPPServer.start(XMPPServer.java:130) at tigase.server.XMPPServer.main(XMPPServer.java:111)

warning2:
2017-09-12 20:02:40.450 [main] Kernel.injectDependencies() WARNING: Could not initialize bean manageAffiliationsModule, skipping injection of this bean tigase.kernel.KernelException: Can't inject <null> to field tigase.pubsub.AbstractPubSubModule.repository at tigase.kernel.core.Kernel.inject(Kernel.java:477) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:571) at tigase.kernel.core.Kernel.initBean(Kernel.java:144) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:537) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:703) at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1305) at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:984) at tigase.kernel.core.Kernel.initBean(Kernel.java:140) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:537) at tigase.kernel.core.Kernel.initBean(Kernel.java:144) at tigase.kernel.core.Kernel.getInstance(Kernel.java:357) at tigase.server.Bootstrap.start(Bootstrap.java:107) at tigase.server.XMPPServer.start(XMPPServer.java:130) at tigase.server.XMPPServer.main(XMPPServer.java:111)

warning3:
2017-09-12 19:56:41.993 [stats-cache] StatisticsProvider$StatisticsCache$1.run() WARNING: Problem retrieving statistics: tigase.kernel.KernelException: Can't find bean implementing interface tigase.pubsub.repository.IPubSubRepository at tigase.kernel.core.Kernel.getInstance(Kernel.java:317) at tigase.kernel.core.Kernel.getInstance(Kernel.java:313) at tigase.kernel.core.Kernel.getInstance(Kernel.java:302) at tigase.pubsub.PubSubComponent.getStatistics(PubSubComponent.java:143) at tigase.stats.StatisticsCollector.getComponentStats(StatisticsCollector.java:375) at tigase.stats.StatisticsCollector.getAllStats(StatisticsCollector.java:351) at tigase.stats.StatisticsProvider$StatisticsCache.update(StatisticsProvider.java:711) at tigase.stats.StatisticsProvider$StatisticsCache.access$3500(StatisticsProvider.java:571) at tigase.stats.StatisticsProvider$StatisticsCache$1.run(StatisticsProvider.java:670) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
and so on.

Does it matter? How to solve the problems? thanks

Categories: Tigase Forums

API and development: List of loaded plugins.

Tigase XMPP Server Board - Mon, 09/11/2017 - 04:58

Hi there, I'm trying to find which plugins are loaded by server. Currently, I find this list in SessionManager
private Set<XMPPImplIfc> allPlugins = new ConcurrentSkipListSet<XMPPImplIfc>();
But I can't find way to check is the plugin enabled at the init.properties file outside from SessionManager.
Also, I find ProcessorFactory
public static boolean hasImplementation(String id)
And, SessionManagerConfig
getProcessor(String plug_id)
But it use ProcessorFactory methods and just find, is the plugin impliments XMPPImplIfc.
My use case is, send an error to client if administrator forgets to enable plugin.

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Tigase XMPP Server Board - Thu, 09/07/2017 - 08:31

It appears that the sql database has not been setup. You can either re-run the setup program and choose mysql during that period, or you can manually create the database following this guide:
http://docs.tigase.org/tigase-server/stable-snapshot/Administration_Guide/html/#prepareMysql

I'd probably recommend using the setup program for easier setup.
v7.1.x can run without a user database, but will result in that error where it will run, but can't authenticate or allow user access.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tigase XMPP Server Board - Wed, 09/06/2017 - 10:00

My installation settings were:

Configuration Chat: Default Installation
Your XMPP Domains: locals.chat
Server Administrators:
Admin Password:******
Select Database: Other...

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tigase XMPP Server Board - Wed, 09/06/2017 - 08:35

Also when I try the admin site i get the following error

"Firefox can’t establish a connection to the server at localhost:8080."

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tigase XMPP Server Board - Wed, 09/06/2017 - 08:34
  • Below is my init.properties
    config-type=--gen-config-def
    --admins = admin@localhost
    --virt-hosts = localhost
    --debug=server
    --user-db-uri=mongodb://localhost/tigase_test
    --user-db=tigase.mongodb.MongoRepository
    --auth-db=tigase.mongodb.MongoRepository

muc/history-db-uri=mongodb://localhost/tigase_test
muc/history-db=tigase.mongodb.muc.MongoHistoryProvider

pubsub/pubsub-repo-url=mongodb://localhost/tigase_test
pubsub/pubsub-repo-class=tigase.mongodb.pubsub.PubSubDAOMongo

message-archive/archive-repo-uri=mongodb://localhost/tigase_test
message-archive/archive-repo-class=tigase.mongodb.archive.MongoMessageArchiveRepository

  • Below is my tigase.config

#osgiEnabled=(true|false)
#osgiEnabled=false
OSGI=true
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:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly"
#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

#GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "

#JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"

#DNS_RESOLVER=" -Dresolver-class=tigase.util.DNSResolverDefault "
#INTERNAL_IP=" -Dtigase-primary-address=hostname.local "
#EXTERNAL_IP=" -Dtigase-secondary-address=hostname "

JAVA_HOME="C:\Program Files\Java\jdk1.8.0_112"
CLASSPATH=""
#PRODUCTION_HEAP_SETTINGS=" -Xms5G -Xmx5G " # heap memory settings must be adjusted on per deployment-base!
JAVA_OPTIONS="${GC} ${GC_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${DNS_RESOLVER} ${INTERNAL_IP} ${EXTERNAL_IP} -XX:MaxDirectMemorySize=128m "
TIGASE_OPTIONS=" --property-file etc/init.properties "

  • The issue I face now is if i change the virt-hosts to something else, it tells "new.host:5222" connection error

I need to understand how do i change this host name

  • Also, the users I create get created with localhost

Below is my creation code:
XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword("admin", "P@ssw0rd")
.setXmppDomain("localhost")
.setHost("localhost")
.setPort(5222)
.setSecurityMode(SecurityMode.disabled)
.build();

System.out.println("config set");
AbstractXMPPConnection conn = new XMPPTCPConnection(config);
conn.connect(); AccountManager accountManager = AccountManager.getInstance(conn);
accountManager.sensitiveOperationOverInsecureConnection(true);
Localpart username = Localpart.from("test4");
accountManager.createAccount(username, "P@ssw0rd");

Now the issue is if I change the "localhost" to match a new virt-host name, it fails.**

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Tigase XMPP Server Board - Wed, 09/06/2017 - 01:03

Hi Dan,
that was perfect, the server is running up and fine.
We are able to enter console.
However there is this error related to repository.

2017-09-06 13:27:26.555 [http-server-pool-3] AuthRepositoryMDImpl.plainAuth() WARNING: Couldn't obtain user repository for domain: localhost, not even default one!
2017-09-06 13:27:29.162 [cluster-nodes] ConfigRepository$1.run() SEVERE: exception during reload of config repository items
java.lang.NullPointerException
at tigase.cluster.repo.ClConSQLRepository.storeItem(ClConSQLRepository.java:219)
at tigase.cluster.repo.ClConConfigRepository.reload(ClConConfigRepository.java:154)
at tigase.cluster.repo.ClConSQLRepository.reload(ClConSQLRepository.java:268)
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)

We tried reinstalling the sql database, also followed a thread related to AutomaticAuthRepository.. but we are unable to login in the /admin due to this error.

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Tigase XMPP Server Board - Tue, 09/05/2017 - 20:14

I would recommend testing using the latest version of Tigase v7.1.1 for testing, it has a number of bug fixes.

http://build.xmpp-test.net/nightlies/dists/2017-09-05/tigase-server-7.1.1-SNAPSHOT-b4458.jar

However, the installer requires that you install the HTTP API component which is selected as number 12 under installation Packs.
You may edit your init.properties file and add the following lines which should start up the HTTP server
--comp-name-5 = http --comp-class-5 = tigase.http.HttpMessageReceiver

This should allow you to connect to the server as dependencies should be included in the .jar file.
(You may want to use this on your current installation to avoid changing versions.)

Note, the jar installer you are using is setup a little differently.
Dist-max/http install is our recommended setup and installation method, where you run a basic server out of the box and configure using the /setup address.

Let me know if you have any more issues.
-Dan

Categories: Tigase Forums

API and development: RE: All users have@localhost as JID and in the db as well

Tigase XMPP Server Board - Tue, 09/05/2017 - 16:42

How are you trying to add/register user? Where are they saving with localhost domain? In the database? Please check your client application that you are actually putting all details (hostname of the machine and domain of the user).

Categories: Tigase Forums

API and development: RE: New component development : MessageRouterConfig.hasClassForServerCompone...

Tigase XMPP Server Board - Tue, 09/05/2017 - 16:40

Please share your solution so the community can benefit and if anyone would run into the topic they will have the answer/hint how to solve it.

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

  • Tigase XMPP Server v7.1.1 has been released. A small release with some stability changes. Change notes are here https://t.co/KV9kWTYDcc 2 weeks 6 days ago
  • That's pretty awesome! Let's see if we can maintain interop compatibility with FastPath! 1 month 1 week ago
Back to Top