Monitoring plugin - out-of-date message history

OpenFire 4.6.1
Monitoring plugin 2.2.0
vacuum-im 1.3.0

When starting the client. When displaying the history of correspondence in the message window, it displays not new, but old messages.

I’m not familiar with the Vacuum-IM client. Can you please provide a dump of the XMPP stanzas that it exchanges with the server when retrieving the messages? That will help us to isolate the problem.

Hello and thanks for the reply!

Log file in attachment.

log.txt (12.3 КБ)

I have a similar problem: The message order is reversed… XEP 313: Messages have to be in same order in archive as they were written in chat…

This comes from the server log

<iq id="b74c8082-54a4-4770-b5ef-fa5658665f10:sendIQ" to="mops@mydomain.local" type="set" from="mops@mydomain.local/jsxc-b69642ac"><query xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019"><x xmlns="jabber:x:data" type="submit"><field type="hidden" var="FORM_TYPE"><value>urn:xmpp:mam:2</value></field><field var="with"><value>admin@mydomain.local</value></field></x><set xmlns="http://jabber.org/protocol/rsm"><max>20</max><before/></set></query></iq>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3263"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:57.372Z"/><message xmlns="jabber:client" id="131f9520-ac13-4cff-b65e-baa8d28c7b90" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>F</body><origin-id xmlns="urn:xmpp:sid:0" id="131f9520-ac13-4cff-b65e-baa8d28c7b90"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3262"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:55.759Z"/><message xmlns="jabber:client" id="97b11150-d4d8-4ed3-b5c0-955954d3f91f" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>E</body><origin-id xmlns="urn:xmpp:sid:0" id="97b11150-d4d8-4ed3-b5c0-955954d3f91f"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3261"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:54.186Z"/><message xmlns="jabber:client" id="b133b07c-9c8e-4320-99a2-fadff47dd281" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>D</body><origin-id xmlns="urn:xmpp:sid:0" id="b133b07c-9c8e-4320-99a2-fadff47dd281"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3260"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:52.670Z"/><message xmlns="jabber:client" id="49b15b84-b6de-4285-b100-01bff702f0ab" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>C</body><origin-id xmlns="urn:xmpp:sid:0" id="49b15b84-b6de-4285-b100-01bff702f0ab"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3259"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:51.217Z"/><message xmlns="jabber:client" id="2e9ba264-4f01-4de8-830f-f676b33c7746" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>B</body><origin-id xmlns="urn:xmpp:sid:0" id="2e9ba264-4f01-4de8-830f-f676b33c7746"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<message to="mops@mydomain.local/jsxc-b69642ac"><result xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019" id="3258"><forwarded xmlns="urn:xmpp:forward:0"><delay xmlns="urn:xmpp:delay" stamp="2021-01-13T20:11:50.371Z"/><message xmlns="jabber:client" id="7ac40b3d-d209-461f-ac02-341414e9d52c" to="admin@mydomain.local" type="chat" from="mops@mydomain.local/jsxc-99752c3c"><body>A</body><origin-id xmlns="urn:xmpp:sid:0" id="7ac40b3d-d209-461f-ac02-341414e9d52c"></origin-id><request xmlns="urn:xmpp:receipts"></request><active xmlns="http://jabber.org/protocol/chatstates"></active><markable xmlns="urn:xmpp:chat-markers:0"></markable></message></forwarded></result></message>

<iq type="result" id="b74c8082-54a4-4770-b5ef-fa5658665f10:sendIQ" from="mops@mydomain.local" to="mops@mydomain.local/jsxc-b69642ac"><fin xmlns="urn:xmpp:mam:2" queryid="e01b5704-e2dd-488b-a598-2579c81a1019"><set xmlns="http://jabber.org/protocol/rsm"><first>3263</first><last>3258</last><count>6</count></set></fin></iq>

i noticed the id (3263) in result iq the in “first” is higher than the id (3258) in “last”

<set xmlns="http://jabber.org/protocol/rsm" > <first>3263</first><last>3258</last><count>6</count></set>...

OPENFIRE 4.6
MAM PLUGIN 2.2

OPENFIRE 4.6.1
MAM PLUGIN 2.2.1

the error persists

log
<<<< george@domen.local/STATION0 12:56:13 +6103 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_91" from="george@domen.local" to="george@domen.local/STATION0">
    <list xmlns="urn:xmpp:archive">
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-06-21T09:21:36.181Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-07-18T14:01:51.164Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-09-28T13:13:11.312Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-12-01T08:36:13.675Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-01-31T09:54:40.667Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-01T09:45:35.962Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-15T19:07:32.849Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-05T10:28:29.347Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-24T09:45:02.164Z"/>
      <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-07-17T17:48:25.238Z"/>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">3847</first>
        <last xmlns="http://jabber.org/protocol/rsm">18366</last>
        <count xmlns="http://jabber.org/protocol/rsm">28</count>
      </set>
    </list>
  </iq>

>>>> george@domen.local/STATION0 12:56:13 +3 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_92">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-07-17T17:48:25.238Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:16 +3493 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_92" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-07-17T17:48:25.238Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:16 +3 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_93">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-24T09:45:02.164Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:20 +3289 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_93" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-24T09:45:02.164Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:20 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_94">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-05T10:28:29.347Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:23 +3685 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_94" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-04-05T10:28:29.347Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:23 +3 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_95">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-15T19:07:32.849Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:27 +3768 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_95" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-15T19:07:32.849Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:27 +3 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_96">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-01T09:45:35.962Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:31 +3549 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_96" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-02-01T09:45:35.962Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:31 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_97">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-01-31T09:54:40.667Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:32 +1164 <<<<
  <presence xmlns="jabber:client" from="vtutkin@domen.local/ZEROTERM" to="george@domen.local/STATION0">
    <show xmlns="jabber:client">away</show>
    <priority xmlns="jabber:client">20</priority>
    <status xmlns="jabber:client">status</status>
    <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/Vacuum-IM" ver="tSj8ISKTAvaZr0qY4E1huL3aNM4="/>
    <x xmlns="vcard-temp:x:update"/>
  </presence>

<<<< george@domen.local/STATION0 12:56:33 +1574 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_97" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2017-01-31T09:54:40.667Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:33 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_98">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-12-01T08:36:13.675Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:36 +3037 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_98" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-12-01T08:36:13.675Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:36 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_99">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-09-28T13:13:11.312Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:39 +2914 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_99" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-09-28T13:13:11.312Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:39 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_100">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-07-18T14:01:51.164Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:42 +3037 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_100" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-07-18T14:01:51.164Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">0</last>
        <count xmlns="http://jabber.org/protocol/rsm">1</count>
      </set>
    </chat>
  </iq>

>>>> george@domen.local/STATION0 12:56:42 +2 >>>>
  <iq xmlns="jabber:client" type="get" id="sid_101">
    <retrieve xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-06-21T09:21:36.181Z">
      <set xmlns="http://jabber.org/protocol/rsm">
        <max>25</max>
      </set>
    </retrieve>
  </iq>

<<<< george@domen.local/STATION0 12:56:45 +2314 <<<<
  <iq xmlns="jabber:client" type="result" id="sid_101" from="george@domen.local" to="george@domen.local/STATION0">
    <chat xmlns="urn:xmpp:archive" with="svetau@domen.local" start="2016-06-21T09:21:36.181Z">
      <to xmlns="urn:xmpp:archive" secs="0" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <to xmlns="urn:xmpp:archive" secs="666" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <to xmlns="urn:xmpp:archive" secs="1006" jid="svetau@domen.local">
        <body xmlns="urn:xmpp:archive">message text</body>
      </to>
      <set xmlns="http://jabber.org/protocol/rsm">
        <first xmlns="http://jabber.org/protocol/rsm" index="0">0</first>
        <last xmlns="http://jabber.org/protocol/rsm">2</last>
        <count xmlns="http://jabber.org/protocol/rsm">3</count>
      </set>
    </chat>
  </iq>

used by XEP-0136