Thanks Jens. I wanted to test that suggestion but sync-gateway (1.0.3) doesn't accept any config files:
$ /opt/couchbase-sync-gateway/bin/sync_gateway -url
http://localhost:8091 -bucket eponyms couchbase-sync-gateway.json
16:43:21.989336 FATAL: Error reading config file couchbase-sync-gateway.json: json: cannot unmarshal array into Go value of type db.PrincipalConfig -- rest.ParseCommandLine() at config.go:294
16:43:26.697926 ==== Couchbase Sync Gateway/1.0.3(81;fa9a6e7) ====
16:43:26.703177 FATAL: Error opening database: 502 Unable to connect to server: HTTP error 401 Unauthorized getting "
http://localhost:8091/pools": -- rest.RunServer() at config.go:415
I stripped the config file down to the following, still no success:
$ cat couchbase-sync-gateway.json
{
"interface": ":4984",
"adminInterface": ":4985",
"log": ["REST"],
"databases": {
"eponyms": {
"bucket": "eponyms",
"users": {
"GUEST": {"disabled": false},
"admin_channels": ["public"]
}
}
}
}
Any ideas what might be causing this? Seems to be valid JSON.
Thanks
Pascal