Giter Site home page Giter Site logo

Comments (38)

woj-tek avatar woj-tek commented on May 18, 2024

Which server do you use? Does it support message archiving (MAM)? Did you enabled storing message history on the server?

from beagle-im.

jnaeff avatar jnaeff commented on May 18, 2024

Ejabberd 19.05

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

1-1 chat history is not retrieved on the opening of a chat but on connection to the XMPP server.
BeagleIM retrieves messages from X last days or since the last message which is in BeagleIM archive.

from beagle-im.

jnaeff avatar jnaeff commented on May 18, 2024

The issue still excited if you send a message on BeagleIM and then switch to SiskimIM. Then they message are not synced. This way you mis part of the conversation. What do you need to debug this issue?

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Can you confirm, ie. with the use of another client, that those messages are actually archived by the server?

from beagle-im.

jnaeff avatar jnaeff commented on May 18, 2024

It works on other clients. I notice I have the issue only by 1 on 1 chats. I have the same issue in SiskimIM. If I switch between BeagleIM and SiskimIM my message are also not synced. With MUC it works like it suposed to.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Which version of BeagleIM do you use? From the AppStore? of beta build?

from beagle-im.

jnaeff avatar jnaeff commented on May 18, 2024

SiskimIM 6.0 and BeagleIM 90

from beagle-im.

achempion avatar achempion commented on May 18, 2024

I have similar issue, the message synchronisation does not work but if I try to use other client (like converse.js) it gets all the history retrieved correctly.

Steps to reproduce

  • send message from converse.js, close it
  • open BeagleIM, can't see my sent message, close it
  • open converse.js in another browser, all history retrieved correctly

BeagleIM , Version 4.0 (103)

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Could you check if you have message synchronization enabled in the account settings?

from beagle-im.

achempion avatar achempion commented on May 18, 2024

@hantu85 how do I check it, do you mean "Automatic synchronisation" under "Message archiving" section?

I checked the server database as well and it contains the message, also it can be retrieved from completely fresh instance of other xmpp client.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

do you mean "Automatic synchronisation" under "Message archiving" section?

Yes, exactly there.

from beagle-im.

achempion avatar achempion commented on May 18, 2024

@hantu85 I checked it, re-activated the account and restarted an application after that, it still doesn't show messages sent from other client.

I thought it would be better to keep this setting off because of deprecated status of message archiving standard https://xmpp.org/extensions/xep-0136.html. But still can't see my messages.

I wonder can I somehow delete local Beagle database to see will it retrieve any messages.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Message archiving in this case is general term and BeagleIM does not support XEP-0136, only XEP-0313 is supported.

Just to be sure, you have enabled "Automatic message synchronization" and selected period of time to synchronize?

from beagle-im.

achempion avatar achempion commented on May 18, 2024

Just to be sure, you have enabled "Automatic message synchronization" and selected period of time to synchronize?

Yes, last 3 days. All messages was sent today.

More info how to reproduce:

  • close beagle
  • create file index.html with content
<html>
  <head>
    <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/6.0.0/dist/converse.min.css">
    <script src="https://cdn.conversejs.org/6.0.0/dist/converse.min.js" charset="utf-8"></script>
  </head>
  <body>
    <script>
    converse.initialize({
        bosh_service_url: 'https://<your server>:5443/bosh',
      view_mode: 'fullscreen'
    });
</script>
  </body>
</html>

login and send any message

  • open beagle and check can you see your sent message

p.s. thank you for the client, it's best client for the xmpp today, easy to use and great design

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Well, I'm testing BeagleIM with Tigase all the time and "message sync issues" are rarely reported from other servers. Could you tell me which server do you use? i would need to test BeagleIM against exactly this server software and most likely version to be able to provide a fix.

from beagle-im.

achempion avatar achempion commented on May 18, 2024

I'm using ejabberd 20.07.45.

I have UTC timezone on the server and my client is UTC+3.

from beagle-im.

achempion avatar achempion commented on May 18, 2024

If I delete beagleim.sqlite and then re-open an application I'll get all history correctly.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Did you have any message from this account in your BeagleIM? If so, BeagleIM would fetch only newer messages that in had in the local storage.

from beagle-im.

achempion avatar achempion commented on May 18, 2024

I did. Now, after I deleted the beagleim.sqlite the synchronization started working correctly. Can't reproduce my case anymore.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

I suppose that this was causing the issue in your case. I suppose we should improve onboarding process, so that we would ask users to enable message archiving synchronization during adding the account.

from beagle-im.

jubalh avatar jubalh commented on May 18, 2024

It appears I have a similar issue.
Using Beagle 4.1 (110) and prosody 0.11.5.

With Profanity on account A I write to account B which is online with ChatSecure, no encryption used.
ChatSecure receives the messages.
I leave ChatSecure on.
I start Beagle. Nothing happens. I click on the past conversations with account A: the recently sent messages still do not appear.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

They will not appear if message synchronization is not enabled. Please check account settings in Beagle IM. It may happen that only newer messages (after message synchronization is enabled) will sync to Beagle IM.

from beagle-im.

jubalh avatar jubalh commented on May 18, 2024

They will not appear if message synchronization is not enabled. Please check account settings in Beagle IM

I didn't find that setting, but will look again later today.
What is the intention behind not having this on by default? I imagine most users would want this behaviour.

from beagle-im.

woj-tek avatar woj-tek commented on May 18, 2024

What is the intention behind not having this on by default? I imagine most users would want this behaviour.

@jubalh privacy concerns, though there should be a prompt for the user (like in Siskin) if feature is available on the server.

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

I confirm that 1 on 1 MAM does not work for me either (even non-OMEMO). My server is a prosody instance and MAM works just fine in gajim, dino, conversejs and Conversations. MUC MAM works OK though, even in beagle.
Interestingly enough, if I manually check "enable sync" / "automatic sync", click save, and reopen "archiving settings", they are unchecked.
I am using Version 5.0 (134). Let me know if I can help further debug this.

EDIT: I did some more testing and now "enabled" stays checked on in "archiving settings" but "automatic sync" does not. This is what the XML console report when I do that:

<!--   2021-09-29T05:52:55Z   >>>>   -->
<iq id='7BAD86DD-E224-4B96-9EDC-A8BE4178019E' type='get'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:52:55Z   <<<<   -->
<iq type='result' id='7BAD86DD-E224-4B96-9EDC-A8BE4178019E' to='[email protected]/8b-Cwfxo'>
<prefs xmlns='urn:xmpp:mam:2' default='always'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-09-29T05:52:57Z   >>>>   -->
<iq id='F50FB703-359D-4EC8-8116-45EA58D9D141' type='get'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:52:57Z   <<<<   -->
<iq type='result' id='F50FB703-359D-4EC8-8116-45EA58D9D141' to='[email protected]/8b-Cwfxo'>
<prefs default='always' xmlns='urn:xmpp:mam:2'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-09-29T05:52:57Z   >>>>   -->
<iq id='9F223A17-4746-4C04-B484-A55719117E06' type='set'>
<prefs default='always' xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:52:57Z   <<<<   -->
<iq type='result' id='9F223A17-4746-4C04-B484-A55719117E06' to='[email protected]/8b-Cwfxo'/>

<!--   2021-09-29T05:53:13Z   >>>>   -->
<iq type='get' id='EB6D18DC-E231-499D-83C2-058A3ED1FF22'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:53:13Z   <<<<   -->
<iq id='EB6D18DC-E231-499D-83C2-058A3ED1FF22' to='[email protected]/8b-Cwfxo' type='result'>
<prefs xmlns='urn:xmpp:mam:2' default='always'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-09-29T05:53:16Z   >>>>   -->
<iq type='get' id='D6C303F7-54EE-4C6F-9056-31B56BA18671'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:53:16Z   <<<<   -->
<iq to='[email protected]/8b-Cwfxo' type='result' id='D6C303F7-54EE-4C6F-9056-31B56BA18671'>
<prefs default='always' xmlns='urn:xmpp:mam:2'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-09-29T05:53:16Z   >>>>   -->
<iq id='353A0C78-F02F-46AF-BC7B-1A029343527C' type='set'>
<prefs default='always' xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-09-29T05:53:16Z   <<<<   -->
<iq type='result' to='[email protected]/8b-Cwfxo' id='353A0C78-F02F-46AF-BC7B-1A029343527C'/>

Is my prosody instance behaving in some way that beagle does not expect?

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

Beagle 5.0 is out, all is great except this MAM thing not working. I have no idea where to read error messages or where to start to try and help debug this. All I know is that the 'automatic sync' checkbox does not 'stay' checked in the app settings. Please let me know where I can look to find logs or something...

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

Removing beagleim.sqlite did work for me. I tried to uninstall and remove all beagle files to start from a clean state, but because of some mac os x magic, I cannot seem to find how to do that. I tried removing my account from beagle and readding it, but still no message sync.

Launching BeagleIM from the terminal does not print anything useful to stderr or stdout.

In settings, if I go to archiving settings, 'enabled' is unchecked and clicking 'save' does not close the dialog. I can close it using "cancel". If I reopen 'archiving settings', 'enabled' is checked, so I can try to check 'automatic synchronization', and close the dialog with 'cancel' again. If I reopen a third time 'archiving settings', 'enabled' is checked but not 'automatic sync'.

Please, I don't want to give up a this, BeagleIM is great besides this issue which apparently can be solved by starting from a clean state. If anybody reads this, just help me remove all application cache/data/whatever. Do I have to reinstall macos x to do that?

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

If you want to remove all data of BeagleIM, have a look at zap section on https://github.com/tigase/homebrew-tigase/blob/master/Casks/beagleim-beta.rb which cleans up BeagleIM data when installed with homebrew. (Directories listed there are removed AFAIR).

As for 'save' not closing the dialog, it is only possible if BeagleIM was not able to retrieve your MAM settings from the server or update them. As those operations are crucial, the window stays open (unfortunately, it was not possible to retrieve the actual error). To dig deeper, please open the XML console for this account (in BeagleIM hold OPTION and click on Window, XML Console and select the correct account. Then try to save options in the settings window.

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

if you want to remove all data of BeagleIM, have a look at zap section on https://github.com/tigase/homebrew-tigase/blob/master/Casks/beagleim-beta.rb which cleans up BeagleIM data when installed with homebrew. (Directories listed there are removed AFAIR)

Well I installed via app store, then tried the beta from the releases on github. Are some settings saved via apple cloud or something?

This is the XML console output when I tried to enable 'automatic sync', and click on save, resulting on the dialog box not closing.

<!--   2021-12-12T07:16:59Z   >>>>   -->
<iq id='EF33DEC0-695B-4575-84D9-CF64A4E24D91' type='get'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-12-12T07:16:59Z   <<<<   -->
<iq type='result' id='EF33DEC0-695B-4575-84D9-CF64A4E24D91' to='[email protected]/SvNMiUQY'>
<prefs xmlns='urn:xmpp:mam:2' default='always'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-12-12T07:17:03Z   >>>>   -->
<iq id='1117D5FB-D787-4E3A-8E4B-3968B8F56D20' type='get'>
<prefs xmlns='urn:xmpp:mam:2'/>
</iq>

<!--   2021-12-12T07:17:03Z   <<<<   -->
<iq to='[email protected]/SvNMiUQY' type='result' id='1117D5FB-D787-4E3A-8E4B-3968B8F56D20'>
<prefs default='always' xmlns='urn:xmpp:mam:2'>
<always/>
<never/>
</prefs>
</iq>

<!--   2021-12-12T07:17:03Z   >>>>   -->
<iq id='B39F4042-9074-427A-8E7F-761AC72A8536' type='set'>
<prefs xmlns='urn:xmpp:mam:2' default='always'/>
</iq>

<!--   2021-12-12T07:17:03Z   <<<<   -->
<iq to='[email protected]/SvNMiUQY' id='B39F4042-9074-427A-8E7F-761AC72A8536' type='result'/>

I have never digged into MAM stuff too much, my prosody settings are pretty vanilla there, and it works fine using monal, conversations, conversejs, gajim, dino. Do you think beagle needs some special settings enabled/disabled in prosody?

Thanks for your reply btw!

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

Enabling MAM looks OK.

Account settings are stored in Apple-provided Keychain which stores those data encrypted.

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

Thanks again for your reply.

Account settings are stored in Apple-provided Keychain which stores those data encrypted.

So I guess the sqlite db isn't stored there and that the fix that worked for some people in this thread does not work for me. I guess I'll use Monal and launch beagle when I need A/V calls. It's really frustrating but survivable :)

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

I think that in your case, there is an issue with account settings being stored in Keychain being overwritten. I was aware that this was sometimes happening between BeagleIM and Psi (as both apps were storing them as for protocol "xmpp" and retrieving all of them for processing as their own accounts). As you mentioned Monal, it may be possible that this is happening here as well (or Monal could block overwriting data for some accounts by Beagle - I've seen that as well).

You could try closing Monal (so that it would not be in the tray or taskbar) and then enabling MAM with sync, closing Beagle, and starting it once again to verify that settings were stored. If that would work then it would mean that there is an interference between Monal and Beagle.

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

@hantu85 Sorry for the late reply and thanks again for not letting me down :)

I really don't think that this is 'other xmpp clients'-related since the reason I tried any other was precisely that MAM sync was not working on beagle (and I only really started trying any other client a month ago; I have been using beagle since march).

However, it may be that I messed up everything by having both the app store release installed and beta releases downloaded from github at the same time. I tried to clean everything and just use the app store release to see if it fixed anything for me (hence my previous questions about removing all beagle related files).

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

A little more on this issue, who knows, it may help... Thanks to your comment @hantu85, I managed to start from a 'really clean state'. Uninstalled all xmpp apps, removed all entries from the apple keychain, and deleted /System/Volumes/Data/Users/nicoco/Library/Containers/org.tigase.messenger.BeagleIM. Nothing changed after I re-added my account. I still cannot enable 'automatic sync'. I noticed this weird entry in the dialog:
Capture d’écran 2021-12-25 à 17 00 49

Anyway, MAM is still not working in 1-on-1 chats. I am out of ideas about what to test next...

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

EDIT: this was not linked to the issue and seem to have been resolved on the tigase server side

I did not give up on this so I tested with a fresh prosody instance, and MAM worked. So there is something with my "real" prosody instance or account that beagle doesn't like somehow (again, no problem with gajim dino or conversations...).

I joined the Tigase MIX a while ago. If I open my XML console I have this spamming repeatedly in a seemingly infinite loop:

<!--   2022-05-07T05:38:46Z   <<<<   -->
<message to='[email protected]/BLywhCTJgwrs' from='[email protected]' xml:lang='en'>
<result id='754c6f7f-f2f9-4d28-baf1-7be88066f712' xmlns='urn:xmpp:mam:2' queryid='5CD2E810-87B8-4DEA-8A20-06C12801C4B2'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2021-11-18T18:11:34Z'/>
<message xml:lang='en' id='754c6f7f-f2f9-4d28-baf1-7be88066f712' to='[email protected]/BLywhCTJgwrs' from='[email protected]/eeb5622118c2f9c8422ce54d2776bea78bd5b46d' type='groupchat' xmlns='jabber:client'>
<origin-id id='CB874CC5-0DFD-40C8-9057-535E4F704C39' xmlns='urn:xmpp:sid:0'/>
<request xmlns='urn:xmpp:receipts'/>
<markable xmlns='urn:xmpp:chat-markers:0'/>
<body>d</body>
<mix xmlns='urn:xmpp:mix:core:1'>
<nick>Jeroen</nick>
<jid>redacted@redacted</jid>
</mix>
<stanza-id id='754c6f7f-f2f9-4d28-baf1-7be88066f712' xmlns='urn:xmpp:sid:0' by='[email protected]'/>
</message>
</forwarded>
</result>
</message>

(and beagle crashed pretty rapidly with the XML console opened)

Clicking the (x) button on the MIX channel does not close it.

I thought this might be related since the stanza mentions mam somewhere, but maybe it isn't at all and I should open a new issue for this?

from beagle-im.

truenicoco avatar truenicoco commented on May 18, 2024

So, my issues were related ta a misconfiguration in my XMPP server (prosody using an old community MAM module instead of the official, newer one), beagle is not at fault there.

from beagle-im.

0x8801 avatar 0x8801 commented on May 18, 2024

This worked for me on MacOS

  • Installed from App Store
  • Added account
  • Clicked on edit account
  • Clicked Edit -> Archiving Settings
  • Enabled synchronization, Period -> Last Month and saved
  • Removed account
  • Readded account

from beagle-im.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.