WildAid / o-fish-realm

Realm application code and sample data for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection. The web app allows agencies to gain insights from the aggregated information.
Apache License 2.0
23 stars 9 forks source link

Realm Sync on newly imported app #156

Closed Sheeri closed 4 years ago

Sheeri commented 4 years ago

In the sandbox environment, sync is stopping with: "maximum attempts reached processing event for trigger id=5f73.....4e759a: dropping collection \"wildaid.MenuData\" being synchronized with Realm is not supported"

This is making it so I can't login with a user on a mobile app, using the sandbox environment.

am-MongoDB commented 4 years ago

I've just re-enabled sync for wildaidsandbox-mxgfy

@Sheeri Looking at the error - dropping collection "wildaid.MenuData" being synchronized with Realm is not supported" it looks like someone dropped the MenuData collection. This is a destructive change (from a sync perspective); Terminating (not pausing) and then restarting sync is the fix image You also need to set the read and write sync permissions to this when reactivating:

{
  "%%user.custom_data.agency.name": "%%partition"
}
Sheeri commented 4 years ago

Thanks! Now I know for next time..... Will reactivate and try again.

Sheeri commented 4 years ago

I also had to update the Custom User Data -> Cluster name (the sync source) at https://realm.mongodb.com/groups/5f733d3366d46e349c2c49de/apps/5f735f71a3478af2476f85cf/auth/customUserData

(I used mongodb-atlas).

Things work now! I can login as my sandbox user on the iOS app.