I was able to reproduce your problem by changing my sync gateway config to
match yours:
"grocery-sync": {
"server": "walrus:data",
"sync": `
function(doc){
channel(doc.channels);
}`,
"users": {
"GUEST": {"disabled": false, "admin_channels": ["public"]}
}
},
the problem is that GrocerySync application is not very "channel aware",
and does not put the document into the "public" channel (or any other
channel for that matter).
Can you delete your current GUEST user and either use the config I posted
earlier, or run:
curl -X PUT localhost:4985/grocery-sync/_user/GUEST --data '{"disabled":
false, "all_channels": ["*"], "admin_channels": ["*"]} '
and then retry from the beginning?
On Mon, Apr 21, 2014 at 12:29 PM, James Norman <[email protected]>wrote:
> Also, just an edit, I was starting the server with:
> ./sync_gateway -url=http://localhost:8091 -bucket="grocery-sync"
>
> And got the same behavior.
>
> And just to add, if I start the grocery sync app, make 2 entries, clear
> the cache and restart I get the following in the sync-gateway output
>
> 19:28:11.039324 HTTP: #014: GET
> /grocery-sync/_local/d2ba96ef02cca253105e93d76e
> 343b3242439224
> 19:28:11.039581 HTTP: #014: --> 404 missing (0.0 ms)
> 19:28:11.039812 HTTP: #015: GET
> /grocery-sync/_local/b75cad5e7cbabca195d612f2d6
> f2a013bae2907c
> 19:28:11.039989 HTTP: #015: --> 404 missing (0.0 ms)
> 19:28:11.281168 HTTP: #016: POST /grocery-sync/_changes
>
> --
> You received this message because you are subscribed to the Google Groups
> "Couchbase Mobile" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/2d4a58c4-69a0-4fd6-9fe4-a70ae23e5993%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/2d4a58c4-69a0-4fd6-9fe4-a70ae23e5993%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCFo5vowN%3DYW%2BSGep9XiWFeNPW63nEdiRtq%2BoTN3tfZgjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.