"not imported" (possible shadowing issue?)

72 views
Skip to first unread message

Seung Chan Lim

unread,
Oct 28, 2014, 1:48:07 PM10/28/14
to mobile-c...@googlegroups.com

Here's the top portion of my config file for the SGW.



{
"interface" : ":4984"
,"adminInterface" : ":4985"
,"log":["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Changes", "Changes+"]
,"SSLCert": "/home/ubuntu/rapidssl.crt"
,"SSLKey": "/home/ubuntu/privkey.pem"
,"databases":{
"maum2":{
"shadow": {
"bucket": "default"
,"server": "http://localhost:8091"
}
,"server": "http://localhost:8091"
,"bucket" : "default"
,"sync" : `
function(doc, old_doc) {


My understanding is that with the above configuration whatever change I make to the couchbase will get synced up with the syncgateway.

So I was surprised to get a {"error":"not_found","reason":"Not imported"} error response trying to retreive a document I can clearly see using the couchbase web interface.

So I thought maybe there's something I'm doing wrong with the config file?


ajres

unread,
Oct 28, 2014, 2:02:45 PM10/28/14
to mobile-c...@googlegroups.com
Seung

The shadow configuration must point to a different CBS bucket to your sync_gateway configuration, in your config you have both the sync_gateway bucket and the shadow bucket pointing to "default"

Andy

Jens Alfke

unread,
Oct 28, 2014, 2:51:03 PM10/28/14
to mobile-c...@googlegroups.com

> On Oct 28, 2014, at 11:02 AM, ajres <an...@couchbase.com> wrote:
>
> The shadow configuration must point to a different CBS bucket to your sync_gateway configuration, in your config you have both the sync_gateway bucket and the shadow bucket pointing to "default"

We should add some code to detect this and abort. It's not a situation I would have anticipated, but I've seen at least one other case where someone did this. I'll file an issue.

—Jens
Reply all
Reply to author
Forward
0 new messages