I got an error as below when I start sync_gateway
C:\Program Files (x86)\Couchbase>sync_gateway "E:\Documents\My Project\mobile\Vegetable\sync-gateway-config.json"
2016-10-01T17:56:51.145+07:00 Enabling logging: [CRUD+ REST+ Changes+ Attach+]
2016-10-01T17:56:51.149+07:00 ==== Couchbase Sync Gateway/1.3.0(274;8c3ee28) ====
2016-10-01T17:56:51.152+07:00 Opening db /vegetable as bucket “vegetable”, pool “default”, server http://localhost:8091
2016-10-01T17:56:51.162+07:00 Opening Couchbase database vegetable on localhost:8091
_time=2016-10-01T17:56:52.236+07:00 _level=INFO _msg= Trying with selected node 0
_time=2016-10-01T17:56:52.238+07:00 _level=INFO _msg= Trying with 127.0.0.1:8091/pools/default/bucketsStreaming/vegetable
_time=2016-10-01T17:56:52.255+07:00 _level=INFO _msg=Got new configuration for bucket vegetable
_time=2016-10-01T17:56:52.269+07:00 _level=INFO _msg= Trying with selected node 0
2016-10-01T17:56:52.298+07:00 Reset guest user to config
2016-10-01T17:56:52.300+07:00 Starting admin server on 127.0.0.1:4985
2016-10-01T17:56:52.310+07:00 Starting server on :4984 …
2016-10-01T17:56:52.313+07:00 FATAL: Failed to start HTTP server on 127.0.0.1:4985: listen tcp 127.0.0.1:4985: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. – rest.(*ServerConfig).Serve() at config.go:628
Here is the my sync_gateway-config.json
{
“log”:[“CRUD+”, “REST+”, “Changes+”, “Attach+”],
“databases”: {
“vegetable”: {
“server”:":8091",
“bucket”:“vegetable”,
“sync”:function (doc) { channel (doc.channels); }
,
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: ["*"]
}
}
}
}
}
Could you please help me !
Thanks