Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIND seems to trigger a full resync #13

Closed
amaccuish opened this issue Apr 1, 2023 · 8 comments
Closed

FIND seems to trigger a full resync #13

amaccuish opened this issue Apr 1, 2023 · 8 comments
Assignees

Comments

@amaccuish
Copy link

amaccuish commented Apr 1, 2023

Grommunio-Sync has become a lot more reliable, thank you for your work!

Whilst the resyncs with this problematic user have become a lot better, they still remain. The only thing I can see is that they often occur after the iPad issues a FIND command.

01/04/2023 11:24:34 [11718] [DEBUG] GSync::CommandNeedsPlainInput(23): false
01/04/2023 11:24:34 [11718] [WBXML] I Find:Find
01/04/2023 11:24:34 [11718] [WBXML] I Find:SearchId
01/04/2023 11:24:34 [11718] [WBXML] I DD721BE0-C232-4CD8-A32B-5850163F3B1F
01/04/2023 11:24:34 [11718] [WBXML] I </Find:SearchId>
01/04/2023 11:24:34 [11718] [WBXML] I Find:ExecuteSearch
01/04/2023 11:24:34 [11718] [WBXML] I Find:MailBoxSearchCriterion
01/04/2023 11:24:34 [11718] [WBXML] I Find:Query
01/04/2023 11:24:34 [11718] [WBXML] I
01/04/2023 11:24:34 [11718] [WBXML] I Email
01/04/2023 11:24:34 [11718] [WBXML] I
01/04/2023 11:24:34 [11718] [WBXML] I Find:FreeText
01/04/2023 11:24:34 [11718] [WBXML] I from:"Stoneacre Motor Group"
01/04/2023 11:24:34 [11718] [WBXML] I </Find:FreeText>
01/04/2023 11:24:34 [11718] [WBXML] I </Find:Query>
01/04/2023 11:24:34 [11718] [WBXML] I Find:Options
01/04/2023 11:24:34 [11718] [WBXML] I Find:Range
01/04/2023 11:24:34 [11718] [WBXML] I 0-99
01/04/2023 11:24:34 [11718] [WBXML] I </Find:Range>
01/04/2023 11:24:34 [11718] [WBXML] I </Find:Options>
01/04/2023 11:24:34 [11718] [WBXML] I </Find:MailBoxSearchCriterion>
01/04/2023 11:24:34 [11718] [WBXML] I </Find:ExecuteSearch>
01/04/2023 11:24:34 [11718] [WBXML] I </Find:Find>
01/04/2023 11:24:34 [11718] [DEBUG] WBXMLEncoder->startWBXML() type: vnd.ms-sync.wbxml
01/04/2023 11:24:34 [11718] [WBXML] O Find:Find
01/04/2023 11:24:34 [11718] [WBXML] O Find:Status
01/04/2023 11:24:34 [11718] [WBXML] O 1
01/04/2023 11:24:34 [11718] [WBXML] O </Find:Status>
01/04/2023 11:24:34 [11718] [DEBUG] DeviceManager->GetBackendIdForFolderId(): no backend-folderid available for '', returning as is.
01/04/2023 11:24:34 [11718] [DEBUG] Grommunio->GetMailboxSearchResults(): Do FIND
01/04/2023 11:24:34 [11718] [DEBUG] Grommunio->getFindRestriction(): extracted words: Stoneacre Motor Group
01/04/2023 11:24:34 [11718] [WBXML] O Find:Response
01/04/2023 11:24:34 [11718] [WBXML] O ItemOperations:Store
01/04/2023 11:24:34 [11718] [WBXML] O Mailbox
01/04/2023 11:24:34 [11718] [WBXML] O </ItemOperations:Store>
01/04/2023 11:24:34 [11718] [WBXML] O Find:Status
01/04/2023 11:24:34 [11718] [WBXML] O 1
01/04/2023 11:24:34 [11718] [WBXML] O </Find:Status>
01/04/2023 11:24:34 [11718] [WBXML] O Find:Range
01/04/2023 11:24:34 [11718] [WBXML] O 0-0
01/04/2023 11:24:34 [11718] [WBXML] O </Find:Range>
01/04/2023 11:24:34 [11718] [WBXML] O </Find:Response>
01/04/2023 11:24:34 [11718] [WBXML] O </Find:Find>
01/04/2023 11:24:34 [11718] [DEBUG] WBXMLEncoder->endTag() WBXML output completed
01/04/2023 11:24:34 [11718] [WBXML] WBXML-OUT: AwFqAAAZRUoDMQABUQAURwNNYWlsYm94AAEAGUoDMQABTQMwLTAAAQEB
01/04/2023 11:24:34 [11718] [WBXML] WBXML-IN : AwFqAAAZRUYDREQ3MjFCRTAtQzIzMi00Q0Q4LUEzMkItNTg1MDE2M0YzQjFGAAFHSEkAAFADRW1haWwAAQAZSwNmcm9tOiJTdG9uZWFjcmUgTW90b3IgR3JvdXAiAAEBTE0DMC05OQABAQEBAQ==
01/04/2023 11:24:34 [11718] [DEBUG] LoopDetection->ProcessLoopDetectionTerminate()

and then

01/04/2023 11:24:39 [18105] [DEBUG] GSync::CommandNeedsPlainInput(0): false
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I 0
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [WBXML] I kDAMailAccountAllMailboxesFolderID
01/04/2023 11:24:39 [18105] [WBXML] I
01/04/2023 11:24:39 [18105] [DEBUG] SyncParameters->RemoveSyncKey(): saved sync key removed
01/04/2023 11:24:39 [18105] [DEBUG] DeviceManager->GetBackendIdForFolderId(): no backend-folderid available for 'kDAMailAccountAllMailboxesFolderID', returning as is.
01/04/2023 11:24:39 [18105] [INFO] NoHierarchyCacheAvailableException: Folderid 'kDAMailAccountAllMailboxesFolderID' is not fully synchronized on the device - code: 0 - file: /usr/share/grommunio-sync/lib/core/devicemanag>
01/04/2023 11:24:39 [18105] [INFO] Full device resync requested

I've included a more detailed log attached.

7ag2cupohh64dfksh0chk10dtg.log

@gromandreas
Copy link
Member

Hi @amaccuish ,

is the folder's id really kDAMailAccountAllMailboxesFolderID or did you replace its id? It is strange that this folder doesn't appear in the folder list during the FolderSync command.

Do you have multiple ActiveSync/Exchange accounts configured on your iPad? Are there another clients connected to this account (Outlook, Thunderbird, another mobile device...)?

@amaccuish
Copy link
Author

amaccuish commented Apr 6, 2023

@gromandreas hi!

on the iPad there are no other accounts configured. I did not replace this folder, and it doesn't exist in the account. It always seems to be requested when the resync happens, I'm pretty sure the log file in the other ticket has it too.

And yes, there is an iPhone and Outlook connected.

@gromandreas
Copy link
Member

Did you try to remove the account on the device or do the full resync in order to check if that folder disappears?

@amaccuish
Copy link
Author

The folder doesn't exist. But yes a full resync and removing and readding have been tried.
photo_2023-04-12_19-54-36

@amaccuish
Copy link
Author

amaccuish commented Apr 12, 2023

Should I try and create the folder and see what happens? Is there a way to make the folder hidden in the web ui?

I find zero documentation, either the Microsoft spec, or any other open source projects that report this folder. And the user is not trying to create such a folder name themselves. Could it be an Apple bug somehow?

@gromandreas
Copy link
Member

Does the user use the default mail client, or is it some 3rd party app? Or does the user use some email enhancement app?

Please ask the user to provide the exact steps which cause this. I was not able to reproduce the behavior on our test iPhone, but maybe I missed something. I do not use iPhone/iPad, so having the exact steps would be helpful. Like you I also didn't find anything regarding this folder name.

It's rather a peculiarity of ios devices than a bug, however it's something grommunio-sync isn't expecting.

@amaccuish
Copy link
Author

amaccuish commented Apr 13, 2023

@gromandreas It's the default/built-in client, no other apps.

I have been trying to reproduce, I use an iPhone, but can't make it happen on my own device. As an aside, non of my searches return any results, even though I see grommunio-sync sending them. I seem to only see on-device emails, and every so often a server only email.

However, fairly reliably we can trigger it by doing a search. Here is one from just now. Apparently they're just doing a normal search. I will keep trying to see if I can reproduce, and also if it's possible to get a video/screen capture.

Untitled-1.log

@gromandreas
Copy link
Member

@amaccuish yes, it would be great if you would provide a video/screen capture. Are they doing the search directly from the inbox? Or from one of those special Mailboxes (VIP, Flagged, Unread)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants