at_client_sdk icon indicating copy to clipboard operation
at_client_sdk copied to clipboard

Sync happens for ever sometimes

Open yahu1031 opened this issue 2 years ago • 6 comments

Describe the bug

I have onboarded to the buzz app with latest atbuzz-2.0 code. I see the servercommitId and localCommitId are same with changedEntries: 45. But sync never completes.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the latest atbuzz-2.0 code from here
  2. Run the ap once and wait for the sync completes
  3. Stop the code and start it again.

Expected behavior

Sync must be completes as expected.

Smartphone (please complete the following information):

  • Device: iPhone12
  • OS: iOS15.5

Were you using an @‎application when the bug was found?**

  • at‎buzz(2.0 dev)

Additional context

This happens on very rare conditions. Here are logs

yahu1031 avatar Aug 16 '22 14:08 yahu1031

complete logs are here with some exceptions

yahu1031 avatar Aug 16 '22 15:08 yahu1031

@yahu1031 Can you please provide the latest update on this branch? I have the same issue assigned to me - https://github.com/atsign-foundation/apps/issues/686

Judging by the logs there is this error with sync on wavi mobile. Screenshot 2022-08-22 at 12 17 45 PM

Sardar1208 avatar Aug 22 '22 06:08 Sardar1208

Hey @Sardar1208 Here are some logs today it reproduced. buzz.log

yahu1031 avatar Aug 25 '22 08:08 yahu1031

Debugged this issue on .wavi - This is because the put request is being invoked by the wavi app continuously. The key 'privateaccount' is getting updated in a loop as a result the key is being sync'ed for ever causing the sync to run. Updated the findings to @sachins-geekyants . Spent 5 SP on this.

sitaram-kalluri avatar Sep 01 '22 11:09 sitaram-kalluri

@kalluriramkumar I could not reproduce this issue, for me 'privateaccount' key was getting updated only once. Also, sync was not running forever.

sachins-geekyants avatar Sep 02 '22 10:09 sachins-geekyants

@kalluriramkumar I got this today here are the logs https://cdn.sourceb.in/bins/8f8ozX6Asj/0

yahu1031 avatar Sep 05 '22 07:09 yahu1031