realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.25k stars 2.14k forks source link

Realm not syncing documents from atlas cluster even though all documents pass schema validation #7026

Closed michaeljajou closed 3 years ago

michaeljajou commented 3 years ago

I apologize in advance for the lack of information provided, it is just that nothing was truly changed and realm stopped syncing documents.

Overview I was writing a new schema for a new collection, and I went back to my app and realm stopped syncing documents for all collections. So I removed the configuration for the schema (did not change anything with the iOS app, since I didn't implement the class definition for that collection yet). Still, Sync did not transfer any documents from mongo to realm.

Additional Information As mentioned above, I reverted the app back to the exact state it was when realm sync was working perfectly fine, yet sync still wasn't working.

Goal I know the information in here is vague. Unfortunately, I don't have much information to give about the issue since I truly don't know why it's happening.

I guess the only question I can ask is: are there any known issues with realm sync where it just stops syncing documents after initializing and reinitializing multiple times. Maybe a possible overload?

ianpward commented 3 years ago

@michaeljajou I would encourage you to open a support ticket on the MongoDB cloud portal since this is a sync related question. The Github repo's are generally reserved for local-only non-sync Realm SDK bugs or issues.

michaeljajou commented 3 years ago

@ianpward I opened one, thanks. They said they'll try to get back to me in a few days. In the meantime, you've never ran into this sort of issue?

michaeljajou commented 3 years ago

Log

Sync: Connection[1]: Session[1]: client_reset_config = false, Realm exists = true, async open = false, client reset = false

michaeljajou commented 3 years ago

This is a Realm Sync error as sync started working again hours later without any changes being made.

jhoughjr commented 2 years ago

I wonder if that is what im experiencing now. I was chasing down why my data didnt sync to atlas, only for it to appear there after some time, but though it looks correct, the data isnt coming down, and there are NO errors reported in the logs in the admin interface or on the device console. Ive really got enough complexity trying to suss out a data model without having to second guess yet another tool. I started pretty happy with realm sync but keep running into walls like this and spending hours getting nowhere or running in circles.