Error in Syncing Data Between Mobile and Web App

Hello

We’ve faced an issue where the Community Health Toolkit (CHT) mobile app is not properly syncing data with the web app. :upside_down_face: The problem occurs intermittently, particularly in areas with spotty internet connectivity. Field users report that their data appears to save locally but fails to reflect in the web app dashboard, even after multiple manual sync attempts. :upside_down_face:

This can lead to duplicate entries or loss of critical patient data, severely impacting the continuity of care.

Upon investigation, it seems the issue may be related to how the app handles partial uploads when network connections drop mid-sync. Affected users have noted that once they return to a stable connection, the app does not automatically retry failed syncs. :thinking:

In some cases, restarting the app temporarily resolves the problem, but this isn’t a reliable solution. It appears the issue might stem from either a client-side bug in the retry logic or a server-side timeout configuration. Checked Data Synchronization and Analytics | Community Health Toolkit Java documentation guide for reference .

Has anyone else experienced similar issues or found a workaround? We’d appreciate input from the community on debugging this further. :thinking:

Additionally, is there any documentation or best practices for improving sync reliability in low-connectivity regions? Understanding how to prevent these errors and ensure data integrity would be a huge help!

Thank you ! :slightly_smiling_face:

Hello @gojawor

This sounds concerning because failed / partial syncs are retried, and even if the connection is spotty there should not be data loss, just a delay until the data reaches the server.

Can you please give us more information about what symptoms you are seeing?

1 Like

Hi @gojawor - I see this is your first post - welcome to the forum!

Along with more info on the symptoms per Diana’s request - could you also give more details about your deployment:

  • How many phones are are affected and what percentage of all phones is this?
  • Are the phones all the same model? If yes, which model?
  • Which version of running CHT are you running?
  • What is your hosting infrastructure? (Docker vs Kubernetes, AWS vs GCP vs Datacenter vs ??)

Thanks!

-adj

2 Likes