Tigase XMPP Server Board

API and development: RE: Issue with logs: can't see logs from OfflineMessages.process method

Wed, 03/30/2016 - 03:15

Actually all logs

for example,

log.info("my Log"); System.out.println("myLog");

I don't anything of that

are you sure you are using OfflineMessages plugin (you have to set it explicitly) and not (default) MessageAMP, which utilizes OfflineMessages class and mentioned methods, but not OfflineMessages.process() itself?

yes, we use MessageAMP plugin, is it a case?

Categories: Tigase Forums

API and development: RE: Issue with logs: can't see logs from OfflineMessages.process method

Wed, 03/30/2016 - 03:12
This depends ;)
  • what kind of logs?
  • are you sure you are using OfflineMessages plugin (you have to set it explicitly) and not (default) MessageAMP, which utilizes OfflineMessages class and mentioned methods, but not OfflineMessages.process() itself?
Categories: Tigase Forums

API and development: Issue with logs: can't see logs from OfflineMessages.process method

Wed, 03/30/2016 - 03:02

Hi there

I have just tried to put some logs inside OfflineMessages.process method but can't see them in logs/tigase.log.0

but, I can see logs from methods that are called from OfflineMessages.process, for example, restorePacketForOffLineUser, savePacketForOffLineUser

My init.properties config:
--debug = xmpp

any ideas why it happens?

Categories: Tigase Forums

API and development: RE: Privacy lists XEP-0016 "black hole"

Wed, 03/30/2016 - 02:52

This is correct, and given current limitations (no session and limited NonAuthUserRepository) it can't be done now.

Categories: Tigase Forums

Installation and maintenance: RE: MongoDB Status

Wed, 03/30/2016 - 02:50

For medium sized I expected something bigger than a closed corporate installation with some hundreds or few thousands of users.
My use case is to support a open mobile application published to Google Play.
I don't expect an huge number of concurrent users initially, but it will be nice to be able to handle about 10K concurrent users without clustering. And then if application gets traction I will invest in clustering and fine tunning it.

I asked about MongoDB because some data for the app fits better a NOSQL approach, and I prefer to have only one database.

And about services I will use mainly PubSub and MUC.

Categories: Tigase Forums

API and development: RE: Tigase releases and building from source

Wed, 03/30/2016 - 02:37

Thank you for your explanations. Now its absolutely clear to me :)
And about compilation I will double check the versions.

Categories: Tigase Forums

API and development: RE: Custom Authentication

Wed, 03/30/2016 - 02:34

Thanks Bartosz,
I didn't know what happened if JID wasn't present. With that behaviour I think that will be easy to implement in my part.
Cheers,

Categories: Tigase Forums

API and development: RE: Custom Authentication

Wed, 03/30/2016 - 01:16

getAuthorizationID() returns JID used by user in session. If JID is returned, then user session will be created with this JID. If given JID doesn't exists in Tigase DB, then it will be created. So you can authenticate user in any method you want. It is independent from DB.

I don't know how Google JWT token works. You have to decide yourself.

Categories: Tigase Forums

Installation and maintenance: RE: MongoDB Status

Tue, 03/29/2016 - 11:05

It is hard to tell as I do not know what you mean by medium sized installation, ie. what type of services you want to run: PubSub? MUC? MessageArchiving? number of connected users?

However as far as I can tell not many users decide to use MongoDB as data storage for Tigase XMPP Server.

Categories: Tigase Forums

API and development: RE: Privacy lists XEP-0016 "black hole"

Tue, 03/29/2016 - 07:46

Yeah, as I see it's really hard to have an access to the UserRepository without a session...

Categories: Tigase Forums

API and development: RE: Privacy lists XEP-0016 "black hole"

Tue, 03/29/2016 - 07:20

Sorry, it's still here

I saw some changes
https://projects.tigase.org/projects/tigase-server/repository/changes/src/main/java/tigase/xmpp/impl/JabberIqPrivacy.java?rev=master

but it still doesn't work

The main issues is with this check for null:

@Override public void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results) { if ((session == null) ||!session.isAuthorized() || (results == null) || (results .size() == 0)) {

so we even can't check the recipient's privacy list when he is offline

Categories: Tigase Forums

Installation and maintenance: RE: Create user with MongoDB

Tue, 03/29/2016 - 02:58

You can safely include only --user-db-uri, and as a result --user-db and --auth-db values will be derived automatically.

It's best to utilize internal Tigase API (as you've did) or you can:
  • create new accounts using in-band-registration
  • (once admin account is present) use admin ad-hoc scripts to create new users (which will use same repository API)
Categories: Tigase Forums

API and development: RE: Tigase releases and building from source

Tue, 03/29/2016 - 02:49

Joan Pujol wrote:

As I haven't found that version for download ( Is this available?) I decided to compile from source. But I have some problems and doubts.

Yes, it's available and you can find the links in http://tigase.net/node/535 and http://build.tigase.org/nightlies/

1
How are releases managed? I think I understand the master and stable branches. But what does have the release one? I've seen that is practically aligned with the master one and has commits tagged by tasks for 7.1.0 and 7.2.0.
Concretely I want to work in what will be the 7.1.0 version, because for my production plans I don't know if it's safe to plain for 7.2.0 release.
Do I've to use the release branch? Does it's commits will be included in 7.1.0 (althought some are from issues tagged for 7.2.0)?

This is explained in Git best practices

2
I tried to compile the master server branch and I've found several issues.

Using mvn -Pdist -f modules/master/pom.xml clean install I was able to build XMPP Server Master Project but Server and Server Distribution failed
Then I downloaded message-archiving and after compiling it I've been able to build XMPP Server. But Server Distribution fails because tigase-unified-archive isn't found, where can I found it?

Then I tried to build the MongoDB module and I've problems with pubsub. And if I try to build pubsub I get error about classes that are not found:
For example tigase/tigase-pubsub/src/main/java/tigase/pubsub/PubSubComponent.java:[34,26] error: package tigase.disteventbus does not exist
This package seems to be at the server project but not in the pub sub.

Providing logs would make analysis easier. All artifacts are available and published to the repository: http://build.tigase.org/maven/tigase/tigase-unified-archive/

I'm doing something wrong?

Most likely you are mixing different versions.

3
Is there any estimation dates for versions. I'm particuarlly interested in 7.2.0 because it has some MongoDB tasks.
I've seen that there are some dates on Redmine but they are some months passed.

Currently we are focusing on releasing 7.1.0, the dates of subsequent versions will be then re-adjusted.

Joan Pujol wrote:

But what seems strange to me if that I look at GIT repository I see that release and master branch are near the same (I attach an image). This is because 7.2.0 development hasn't started yet?

No, they are far from the same - they may look similar if you look only at the top of the repository changes, but if you compare the files there are huge changes and introduction of couple of new APIs, and this entails split into master/release/stable branches.

Categories: Tigase Forums

Installation and maintenance: RE: Create user with MongoDB

Mon, 03/28/2016 - 09:33

I answer myself in case of someone has the same problem.

I had two problems:

1
_id is not an autogenerated field. It has to be a SHA256 of full user JID.
I solved that creating a small utility to create the user instead of creating the document manually:

public static void main(String[] args) throws Exception { MongoRepository repository = new MongoRepository(); repository.initRepository("mongodb://localhost:27017/tigase", new HashMap<>()); BareJID user = BareJID.bareJIDInstance("username@lujopmb.local"); boolean userExist = repository.userExists(user); if(userExist) { System.out.println("User already exists"); } else { repository.addUser(user, "password"); } }

2
With MySQL I only needed to specify --user-db but with MongoDB I found that --auth-db is also needed:
--user-db = tigase.mongodb.MongoRepository --auth-db = tigase.mongodb.MongoRepository

With that two changes I've been able to authenticate without problems.

Categories: Tigase Forums

Installation and maintenance: Create user with MongoDB

Sun, 03/27/2016 - 15:17

I've download latest 7.1.0 nighty build and tried to configure to use MongoDB.
Tigase starts correctly but I can't login:

As I haven't found any documentation about how to create an user I just created a document in tig_users:
{ "_id" : ObjectId("56f8508ba6629bcc4151c1c5"), "user_id" : "username@lujopmb.local", "domain" : "lujopmb.local", "password" : "mypassword" }

Is this the way to create users? I've to create another entry?
Any documentation about that?

To be sure that the problem is in MongoDB I've verified that changing only --user-db-uri and --user-db to mysql configuration all works correctly.

Categories: Tigase Forums

API and development: RE: Tigase releases and building from source

Sun, 03/27/2016 - 15:10

Thanks David,

But what seems strange to me if that I look at GIT repository I see that release and master branch are near the same (I attach an image). This is because 7.2.0 development hasn't started yet?

Categories: Tigase Forums

API and development: RE: Tigase releases and building from source

Sun, 03/27/2016 - 13:08

Hi Joan, thanks for choosing our software.
Currently we are QA'ing v7.1.0 in release branch, and developing for v7.2.0 in master branch. This is somewhat atypical of expected, but both branches are still undergoing changes.

V7.2.0 has a lot of major changes to the tigase code, including a kernel implementation which effects almost all of the components, so the standard way of building for right now is a bit...broken as you've seen.

v7.1.0 is very close to release, we have a few changes, but it will be released soon and it currently being built at http://build.xmpp-test.net/ under nighlies/dists.
v7.2.0 is still in heavy development and I am not sure what the outlook for release is.

Hope that helps!
Daniel

Categories: Tigase Forums

Installation and maintenance: RE: MongoDB Status

Sun, 03/27/2016 - 10:51

Thank you very much Andrezej.
Only one more question about it. Do you know if there is some medium sized production instalaltions using MongoDB by now?

Categories: Tigase Forums

API and development: Tigase releases and building from source

Sun, 03/27/2016 - 10:49

After doing a little research and testing I decided to go for Tigase.
Initially I downloaded the latest stable version but as I found some bugs that are currently solved for 7.1.0 and I haven't plans to go for production at least until June/July I decided to download that version.

As I haven't found that version for download ( Is this available?) I decided to compile from source. But I have some problems and doubts.

1
How are releases managed? I think I understand the master and stable branches. But what does have the release one? I've seen that is practically aligned with the master one and has commits tagged by tasks for 7.1.0 and 7.2.0.
Concretely I want to work in what will be the 7.1.0 version, because for my production plans I don't know if it's safe to plain for 7.2.0 release.
Do I've to use the release branch? Does it's commits will be included in 7.1.0 (althought some are from issues tagged for 7.2.0)?

2
I tried to compile the master server branch and I've found several issues.

Using mvn -Pdist -f modules/master/pom.xml clean install I was able to build XMPP Server Master Project but Server and Server Distribution failed
Then I downloaded message-archiving and after compiling it I've been able to build XMPP Server. But Server Distribution fails because tigase-unified-archive isn't found, where can I found it?

Then I tried to build the MongoDB module and I've problems with pubsub. And if I try to build pubsub I get error about classes that are not found:
For example tigase/tigase-pubsub/src/main/java/tigase/pubsub/PubSubComponent.java:[34,26] error: package tigase.disteventbus does not exist
This package seems to be at the server project but not in the pub sub.
I'm doing something wrong?

3
Is there any estimation dates for versions. I'm particuarlly interested in 7.2.0 because it has some MongoDB tasks.
I've seen that there are some dates on Redmine but they are some months passed.

Categories: Tigase Forums

API and development: RE: Can't inject <null> to field tigase.server.ext.monitor.MonitorMailer.c

Thu, 03/24/2016 - 14:30

Actually they are included in this archive, vide #3533 and associated commit.

Current list of dependencies of tigase-mailer can be found in mailer project pom.xml file.

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

  • A new maintenance release of Tigase XMPP Server has been released, now v7.0.4. Check out the release notes here: https://t.co/7Rqjng8v1K 2 days 2 hours ago
  • Tigase XMPP Server supports REST integration out of the box, see https://t.co/56fnwwT88N for setup and useage details. 3 days 20 hours ago
Back to Top