Sync-Gateway not able to pull data from Couchbase server

My Couchbase sync gateway not able to pull data from Couchbase server and when I’m did editing the item on Couchbase server its showing edited item on the Couchbase server but not coming on sync-gateway.
also my emulator is also not able to pull item present on Couchbase server.

i tried to restart the pc after uninstalled the sync-gateway and also restart the pc after sync-gateway installation still facing same issue.

I’m getting the error in sg-error file like-400 invalid database name “favicon.ico”

below is the my serviceconfig.json file
{
“adminInterface”: “127.0.0.1:4985”,
“interface”: “0.0.0.0:4984”,
“databases”: {
“grocery-sync”: {
“server”: “http://192.168.0.105:8091”,
“bucket”: “grocery-sync”,
“username”: “user”,
“password”: “password”,
“enable_shared_bucket_access”: true,
“import_docs”: true,
“num_index_replicas”: 0,
“users”: {
“GUEST”: {“disabled”: false, “admin_channels”: ["*"] }
},
“import_filter”: function(doc) { if (doc.type != "apple") { return false } return true },
“sync”: function (doc, oldDoc) { channel("store1"); channel(doc.channels); },
“allow_conflicts”: false,
“revs_limit”: 20
}
}
}

Please help me to solve the error.

@asha.pawar , your database for sync gateway is ‘grocery-sync’. Did you try accessing with right database, like http://x.x.x.x:4985/grocery-sync? if you are using right database name, you should not get this error. You can try first with admin port and see if it works, then try with public port? As you have config “enable_shared_bucket_access”: true, “import_docs”: true, it will import docs from server to sync gateway .

Thank you for your reply…
I used the right database as you told and uses the admin port with 4985 but still im not able to access the edited item from the server on sync gateway.
can you help me which URL i need to use for the public port as a know only… [http://localhost:4984/] for the public sync gateway but i wanted to access the database as well so which public sync gateway URL i can use?
and if i made change in mainactivity.java file with public port is there need to made change in serviceconfig file as well.

when i tried to edit the item from coucbase server and tried to look on sysnc gateway then below error im getting
2021-01-06T17:12:59.480+05:30 [INF] HTTP: #718: --> 400 invalid database name “favicon.ico” (0.0 ms)
2021-01-06T17:12:59.483+05:30 [INF] HTTP: #719: GET /grocery-sync/_all_docs (as ADMIN)
2021-01-06T17:12:59.483+05:30 [INF] HTTP: #720: GET /grocery-sync/_changes?since=11&include_docs=true&limit=10 (as ADMIN)
2021-01-06T17:12:59.483+05:30 [INF] Changes: c:#720 MultiChangesFeed(channels: {}, options: {Since: 11, Limit: 10, Conflicts: false, IncludeDocs: true, Wait: false, Continuous: false, HeartbeatMs: 0, TimeoutMs: 300000, ActiveOnly: false}) …
2021-01-06T17:12:59.483+05:30 [INF] Cache: GetCachedChanges("
", 11) --> 10 changes valid from #12
2021-01-06T17:12:59.484+05:30 [WRN] c:#720 Changes feed: error getting revision body for “2” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.484+05:30 [WRN] c:#720 Changes feed: error getting revision body for “3” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.485+05:30 [WRN] c:#720 Changes feed: error getting revision body for “4” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.485+05:30 [INF] Changes: c:#720 MultiChangesFeed done
2021-01-06T17:12:59.485+05:30 [INF] HTTP+: #720: --> 200 OK (2.0 ms)
2021-01-06T17:12:59.489+05:30 [INF] HTTP: #721: GET /grocery-sync/_changes?since=11&include_docs=true&feed=longpoll (as ADMIN)
2021-01-06T17:12:59.489+05:30 [INF] Changes: c:#721 MultiChangesFeed(channels: {
}, options: {Since: 11, Limit: 0, Conflicts: false, IncludeDocs: true, Wait: true, Continuous: false, HeartbeatMs: 0, TimeoutMs: 300000, ActiveOnly: false}) …
2021-01-06T17:12:59.490+05:30 [INF] Cache: GetCachedChanges("
", 11) --> 19 changes valid from #12
2021-01-06T17:12:59.493+05:30 [WRN] c:#721 Changes feed: error getting revision body for “2” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.497+05:30 [WRN] c:#721 Changes feed: error getting revision body for “3” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.498+05:30 [WRN] c:#721 Changes feed: error getting revision body for “4” (1-ef4980a76dc8aeaea7c51827040165d5): 404 Not imported – db.(Database).addDocToChangeEntry() at changes.go:130
2021-01-06T17:12:59.498+05:30 [INF] Changes: c:#721 MultiChangesFeed done
2021-01-06T17:12:59.498+05:30 [INF] HTTP+: #721: --> 200 OK (0.0 ms)
2021-01-06T17:12:59.499+05:30 [INF] HTTP: #722: GET /grocery-sync/2 (as ADMIN)
2021-01-06T17:12:59.500+05:30 [INF] HTTP: #722: --> 404 Not imported (1.0 ms)
2021-01-06T17:12:59.503+05:30 [INF] HTTP: #723: GET /grocery-sync/3 (as ADMIN)
2021-01-06T17:12:59.504+05:30 [INF] HTTP: #723: --> 404 Not imported (1.0 ms)
2021-01-06T17:12:59.504+05:30 [INF] HTTP+: #719: --> 200 OK (20.9 ms)
2021-01-06T17:12:59.506+05:30 [INF] HTTP: #724: GET /grocery-sync/4 (as ADMIN)
2021-01-06T17:12:59.507+05:30 [INF] HTTP: #724: --> 404 Not imported (1.0 ms)
2021-01-06T17:12:59.508+05:30 [INF] HTTP: #725: GET /grocery-sync/_changes?since=42&include_docs=true&limit=10 (as ADMIN)
2021-01-06T17:12:59.508+05:30 [INF] Changes: c:#725 MultiChangesFeed(channels: {
}, options: {Since: 42, Limit: 10, Conflicts: false, IncludeDocs: true, Wait: false, Continuous: false, HeartbeatMs: 0, TimeoutMs: 300000, ActiveOnly: false}) …
2021-01-06T17:12:59.508+05:30 [INF] Cache: GetCachedChanges("
", 42) --> 9 changes valid from #43
2021-01-06T17:12:59.508+05:30 [INF] Changes: c:#725 MultiChangesFeed done
2021-01-06T17:12:59.508+05:30 [INF] HTTP+: #725: --> 200 OK (0.0 ms)
2021-01-06T17:12:59.510+05:30 [INF] HTTP: #726: GET /grocery-sync/2 (as ADMIN)
2021-01-06T17:12:59.510+05:30 [INF] HTTP: #727: GET /grocery-sync/3 (as ADMIN)
2021-01-06T17:12:59.510+05:30 [INF] HTTP: #726: --> 404 Not imported (0.0 ms)
2021-01-06T17:12:59.510+05:30 [INF] HTTP: #727: --> 404 Not imported (0.0 ms)
2021-01-06T17:12:59.512+05:30 [INF] HTTP: #728: GET /grocery-sync/_changes?since=56&include_docs=true&feed=longpoll (as ADMIN)
2021-01-06T17:12:59.512+05:30 [INF] Changes: c:#728 MultiChangesFeed(channels: {
}, options: {Since: 56, Limit: 0, Conflicts: false, IncludeDocs: true, Wait: true, Continuous: false, HeartbeatMs: 0, TimeoutMs: 300000, ActiveOnly: false}) …
2021-01-06T17:12:59.512+05:30 [INF] HTTP: #729: GET /grocery-sync/4 (as ADMIN)
2021-01-06T17:12:59.513+05:30 [INF] HTTP: #729: --> 404 Not imported (1.0 ms)
2021-01-06T17:12:59.515+05:30 [INF] HTTP: #730: GET /grocery-sync/_changes?since=56&include_docs=true&limit=10 (as ADMIN)
2021-01-06T17:12:59.515+05:30 [INF] Changes: c:#730 MultiChangesFeed(channels: {
}, options: {Since: 56, Limit: 10, Conflicts: false, IncludeDocs: true, Wait: false, Continuous: false, HeartbeatMs: 0, TimeoutMs: 300000, ActiveOnly: false}) …
2021-01-06T17:12:59.515+05:30 [INF] Changes: c:#730 MultiChangesFeed done
2021-01-06T17:12:59.515+05:30 [INF] HTTP+: #730: --> 200 OK (0.0 ms)
2021-01-06T17:13:01.429+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_96da5535-34b0821d, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 320-383
2021-01-06T17:13:01.429+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_f47365c5-eaf258d, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 192-255
2021-01-06T17:13:01.439+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_84003db0-7d56b0c7, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 448-511
2021-01-06T17:13:01.439+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_acbbef99-16d23290, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 0-63
2021-01-06T17:13:01.440+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_7dc1913f-503da0c1, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 512-575
2021-01-06T17:13:01.445+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_7332d0c7-4f7d7b7d, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 128-191
2021-01-06T17:13:01.445+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_80d40edf-454cccf1, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 256-319
2021-01-06T17:13:01.445+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_627da171-3bb55cdd, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 832-895
2021-01-06T17:13:02.217+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_244a4eff-6d414433, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 576-639
2021-01-06T17:13:02.217+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_103fc5fb-41420166, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 768-831
2021-01-06T17:13:02.217+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_1d526e8f-607d56c9, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 960-1023
2021-01-06T17:13:02.217+05:30 [INF] DCP: cbdatasource: server: 192.168.0.105:11210, uprOpenName: sg:db0xe5c494f6_index_548e77d48eb131d9_1076212c-54d4e363, worker, looping beg, vbucketState: “running” (has 64 vbuckets), 384-447

please help me to solve the issue