Hi all,
I’ve an existing web project is using Couchbase server as a DB which running almost 1 year.
Last month, I just finished the version upgrade for CB and SG and everything running very well.
- From Couchbase 4.6 to 5.5
- From Sync Gateway 1.4 to 2.0
However, when I build a new iOS app and do the data sync, I cannot download full set of json document from couchbase server.
**_json file failed to download **
Json files created in old version of CB 4.6 and SG 1.4
**_json file success to download **
Json file created in new version CB 5.5 and SG 2.0
After some testing and research, I noticed that if the json file created in old CB version with object attached which may impact the data sync after version upgrade, it look like related to the new feature “XATTS”.
Below is the sync gateway config file for reference,
{
“log”: [
“CRUD”,
“CRUD+”,
“HTTP”,
“HTTP+”,
“Access”,
“Cache”,
“Shadow”,
“Shadow+”,
“Changes”,
“Changes+”
],
“interface”: “:4984”,
“adminInterface”: “:4985”,
“databases”: {
“testing”: {
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: ["*"]
}
},
“roles”: {
“admin”: {},
“user”: {}
},
“server”: “XXXXX”,
“bucket”: “XXXXX”,
“enable_shared_bucket_access”: true,
“import_docs”: “true”,
“sync”:
function(doc, oldDoc){ XXXX }
}
}
}
Can anyone help how can I download an existing documents to mobile app after the version upgrade?