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
}