Azeem Akram opened 10 years ago
|
|
@tigase team: Let me know what other info you need to be able to debug this issue. |
|
I can confirm this happens to me too, but I'm currently unable to provide logs. Specifically, Tigase re-saves the message appending more and more elements to it. I'll try to "frame the moment" and get back to you. |
|
Ok I think I know what is causing this (or a similar bug maybe?). Steps to reproduce:
I suggest that a message delivered to an offline full JID either:
|
|
Andrzej, please take a look at it as soon as you can. |
|
I tried to replicate this issue using newst version from Message was sent to offline store only once and when it was retrieved to deliver to user it was removed from offline storage. I would suggest to check logs for any possible exceptions which may be related to this issue as this may give us some hints about cause of this issue (ie. permissions to database tables might not allow Tigase to remove records). Another reason for this might be that XMPP client which receives message once it connects is using XEP-0198 Stream Management and is not acking that it received this message - this would lead to sending this message to offline store once again - but behavior of Tigase XMPP Server would be correct in this case as Stream Managements needs to send messages which are not acked to offline storage. Other reason could be some custom code which could create a loop. To continue this investigation I would need:
|
|
Also I would like to know what was load on server on which this occurred? Was it rather big or on this server there was a lot of I think that this may be caused by patch from #2561 if it was applied, was it? |
|
Hi, I'll upgrade to latest version and try reproduce it myself. For now I've solved the most important issue which causes the delay element to be added over and over by using a workaround: Don't care about the wrong comment; what I did here is check if the delay element was already added and, if not, add it. |
|
Closing as there was no feedback, so I assume the problem was not replicated. |
Type |
Bug
|
Priority |
Major
|
Assignee | |
RedmineID |
2855
|
Version |
tigase-server-7.1.0
|
Spent time |
6h
|
Hello Team,
Thanks for your help in advance.
I am having an issue in receiving offline messages. Please review the steps below to understand the issue.
User_1 and User_2 are online and send messages to each other. Messages are being delivered accurately and in time.
User_1 suddenly goes offline, but User_2 keeps sending messages to User_1.
Those messages are stored somewhere on server as "Offline Stored Messages" to be sent later.
Now after some time User_1 comes online again, and receive the offline message sent by User_2 immediately.
User_1 goes offline again after reading the received offline messages from User_2.
Next day, User_1 comes online again and again receives the offline message sent by User_2 previous day, (which he has already received and read - as per point number 4)
This happens with every login, Every time User_1 come online, first it receives all the offline message sent by any friend at any time.
It looks like, Offline Stored Messages status never updated even after they are delivered.
Any new Offline Message intends the receiver to receive the complete list of offline message sent in the past and received too.
What can I think to resolve it,
Either, we need a way to update the status of the message to be "read" from "Unread"
We can delete the Offline Message that we have received.
I am anxiously looking forward to get this issue resolved as soon as possible as my BIG project is stuck on this issue.
Best Regards
Azeem Akram