Sync gateway can not start server on port 4985

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
_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
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 listen tcp 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”: {
“sync”:function (doc) { channel (doc.channels); },
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: ["*"]
Could you please help me !

maybe 4985 port is using.

As @atom_yang suggests, the error indicates port 4985 is already being used by some other app.

Is it possible you already have an instance of Sync Gateway running?

Otherwise you can either change the ports Sync Gateway uses, or figure out what other app is using port 4985 and stop it.