Unable to start sync gatewaay


#1

i am trying to run sync_gaeway through config.json file.
and unable to run sync_gateway.
below is the log:
sync_gateway config.json
16:46:01.666358 Enabling logging: [REST]
16:46:01.768932 ==== Couchbase Sync Gateway/1.0.4(34;04138fd) ====
16:46:01.771933 Configured Go to use all 4 CPUs; setenv GOMAXPROCS to override t
his
16:46:01.773935 WARNING: Error setting MaxFileDescriptors to 5000: Unsupported o
n Windows – rest.setMaxFileDescriptors() at config.go:378
16:46:01.778938 Opening db /omnibazaar as bucket “omnibazaar”, pool “default”, s
erver http://75.76.221.21:8091
16:46:01.780940 Opening Couchbase database omnibazaar on <http://75.76.221.21:80
91>
16:46:07.718321 WARNING: Error installing Couchbase design doc: no available cou
ch rest URLs – db.installViews() at database.go:291
16:46:07.719321 WARNING: Error installing Couchbase design doc: no available cou
ch rest URLs – db.installViews() at database.go:305
16:46:07.720323 FATAL: Error opening database: no available couch rest URLs – r
est.RunServer() at config.go:415


#2

@zeeshan_niazi

It looks like Sync gateway can not access the Cocuhabse Server REST API.

If you launch a Web browser on the windows server where you are trying to run Sync Gateway and point it at:

http:/ /75.76.221.21:8091

Do you see the Couchbase Server Admin Console?

Andy


#3

yes @andy i can see server(Couchbase Server Admin Console) view of this address.
http://75.76.221.21:8091/index.html


#4

@zeeshan_niazi The ‘no available couch REST URLs’ error means that Sync Gateway cannot find a healthy Couchbase Server node to connect to. Do your Couchbase server nodes look healthy when viewed through the Admin Console?


#5

@adamf
what do you mean by healthy node?
i can access it from url like http://75.76.221.21:8091/index.html
and can create documents etc.