-
Hi,
I've run some tests on the latest version from repository and I wasn't able to replicate the issue, the log:
- Psi+/1, incomming presence after second resource logs in
<presence from="tigase1@firefly/Psi+/2" to="tigase1@firefly"> <priority>50</priority> <c xmlns="http://jabber.org/protocol/caps" node="http://psi-dev.googlecode.com/caps" ver="0.16" ext="ca cv e-time ep-notify-2 last-act sxe whiteboard"/> </presence>
- Psi+/1, outgoing message to second resource
<message type="chat" to="tigase1@firefly/Psi+/2" id="ab20a"> <subject>test</subject> <body>test</body> </message>
- Psi+/2, incomming message from anotherresource
<message from="tigase1@firefly/Psi+/1" type="chat" id="ab20a" to="tigase1@firefly/Psi+/2"> <subject>test</subject> <body>test</body> </message>
- Psi+/2, outgoing message to another resource
<message type="chat" id="msg2" to="tigase1@firefly/Psi+/1"> <subject>test2</subject> <body>test2</body> </message>
- Psi+/1, incomming message from second resource
<message from="tigase1@firefly/Psi+/2" type="chat" to="tigase1@firefly/Psi+/1" id="msg2"> <subject>test2</subject> <body>test2</body> </message>
I've run the test on both AMP and message plugins.
-
Could you provide exact version/revision which manifested the issue?
-
Could you provide your
init.properties
(you mention it in the ticket but it's missing)
-
As you can see from the image, a user (admin@yousee.dk) is connected twice. One with resource zool and the other with Psi.
Sending a message fails.
Version: 5.1.4 (in cluster mode)
Init.properties:
@config-type=--gen-config-def
--admins=admin@p-xmpp01.xxx.idk, admin@xxx.dk
--virt-hosts = xxx.dk
--debug=server
--user-db=mysql
--user-db-uri=jdbc:mysql://localhost:3306/tigase?user=root&password=xxx
--cluster-mode=true
--cluster-nodes=p-xmpp01.xxx.idk,p-xmpp02.xxx.idk@
I've also tried it without the clusering enabled. And that actually made it work. So the problem does not lay in the versions of the tigase server, but more in the routing when clustering is enabled. :-(
It actually also works in version 5.2.0 - beta3. Which I have tested here:
Version: 5.2.0-beta3 (b3269) (stand alone mode).
Init.properties:
@config-type = --gen-config-def
--virt-hosts = yousee.dk
--cluster-mode = false
--debug = server
--user-db = mysql
--admins = test2@yousee.dk
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=adminadmin@
-
Ups, I am sorry, I misread the original post. I am taking back what I said :-) please ignore my post.
The problem may happen in a clustering mode as it is not well tested yet. Thank you for reporting it. This helps us with our tests. We will look at the problem during our tests.
Could you please, just tell me what clustering mode you had enabled while experiencing the problem? Was it using ACS component or default clustering?
-
Hey Artur!
I am using the default cluster strategy. Maybe I should try out my scenario for 5.2.0-beta3 as well?. Will ACS work for 5.1.4? because I would very much like to try it out.
Beside this message problem when in cluster mode, I am sometimes having trouble with login due to resource conflict, even though I am using different resources for my clients. Have you experienced this before? It only happens in cluster mode.
-Cheers!
/Steffen
-
There is a different version of ACS for 5.1.4 although the ACS included in the 5.2.0 Beta3 should work with 5.1.4.
As for the resource conflict, there were problems like this but they were fixed in subsequent versions. Hard to tell about your case though without investigation.
-
Tested with latest version with and w/o ACS hence it just struck me that this might be related to the changes in delivery logic (see linked changeset and tickets)
-
Hi Artur, I can only see a few changes that might have something to do with this issue on master. I can see some NPE fixed on https://projects.tigase.org/projects/tigase-server/repository/revisions/f65f1d25375e055d886ee15866bdcc374b56d20e - but I am not sure that this is related to this issue here. :-)
I there is a fix on master, then let me know so I can test it. :-)
Cheers and thanks Artur!
/Steffen
-
The fixes were done in SessionManager, thats for sure. They could be accompanied by some code changes in connection managers as well. So you should really start investigation from SM changes tracking. I am very sorry I cannot provide you with more details. Unfortunately these were kind of fast/hot fixes without a ticket report attached to code changes. So I do not even remember when exactly they were made.
Andrzej was the developer who was making the fixes. Let's ask him where to look and when this could be done.
Andrzej: could you please provide any details if you have them?
-
Ups sorry everybody. I am responding to so many queries and some of them are very similar, so I messed this up. Again!
Please forget my previous comment.
Stephen the cluster fix is not available in repository yet. I am still working on it. Instead of a quick dirty fix I found a way to do it in a better way, more reliable but it needs some work, therefore it will take me a few more days.
I am sorry for keeping you waiting.
-
I made a fix in delivery of presence stanzas to other resources of same user and it is fixed now, so delivery of direct presence to other resources works fine. As for delivery of messages to other resources on diffrent nodes, there is still an issue there which needs to be fixed.
Type |
Bug
|
Priority |
Major
|
Assignee | |
RedmineID |
1480
|
Version |
tigase-server-5.2.0
|
I am trying to send from the same user with one resource to anohter resource.
That is: sending a message stanza from test2@test.dk/Phone to test2@test.dk/Web. This have worked before when using tigase 5.1 (using 5.2 now), so I wonder what have changed?.
Of course it could be AMP or Message module that have changed, but I really cant see it.
Here are the stanzas (from test2@test.dk/Phone client):
@
jkhjkhk jkhjkhkThe recipient is no longer available.
@
My init.prop (sm-plugins) looks like this:
Ive tried using both AMP and message as sm-plugins.