Hello All,
I have upgraded Couchbase 4.5 to the 5.5 enterprise version(planning to upgrade to the 7.0.3 version) and sync gateway from 1.4 to 1.5.
After the upgrade some documents I need to delete manually from Couchbase server. But it still appears on our app which is using Couchbase lite. It was working earlier when I was using sync gateway 1.4 version.
If I submit the document through app then it get sync on couchbase server, after that I am using view to get the submitted document using the status=summited and deleting it through node js API and document get disappear from app. this is working fine.
Now If I delete the document from Couchbase server using the Admin credential from the DB. Document gets deleted from the DB but it still appears in the app.
Also tried enable_shared_bucket_access =true and import_docs = true/continuous but no luck.
Can you please help?
below are my sync gateway configurations:
{
“adminInterface”: “xx.xxx.xxx.xx:4985”,
“interface”: “xx.xxx.xxx.xx:4984”,
“databases”: {
“sg_db2”: {
“server”: “http://127.0.0.1:8091/”,
“bucket”: “db2”,
“username”: “Administrator”,
“password” : “xxxxx”,
“sync”: "function(doc) {if (doc.docType != undefined) { channel
(doc.docType); if(doc.docType == ‘SO’) { if(doc.status == ‘SUBMITTED’) {channel
(‘close’);} else {channel(doc.sO.eng.id);}} if(doc.docType == ‘IHours’) {
channel(doc.engId); } }}",
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: [ “" ]
},
“eng”: {
“password”: “xxxxxxx”,
“admin_channels”: [ "” ],
“disabled”: false
}
},
“revs_limit”:20
}
2 posts - 2 participants