Sync Gateway running issue

When running Sync Gateway from windows server, it tries to update couch base views from 8092 port. In actual, couch base views are there in 8091 port.

2017-12-06T12:37:56.052Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: EOF – db.installViews.func1() at database.go:747
2017-12-06T12:37:57.060Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:37:58.070Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:37:59.092Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:38:00.135Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:38:01.421Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: EOF – db.installViews.func1() at database.go:747
2017-12-06T12:38:02.585Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:38:03.909Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:38:05.244Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: EOF – db.installViews.func1() at database.go:747
2017-12-06T12:38:07.529Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: dial tcp 10.0.0.173:8092: connectex: No connection could be made because the target machine actively refused it. – db.installViews.func1() at database.go:747
2017-12-06T12:38:10.263Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: EOF – db.installViews.func1() at database.go:747
2017-12-06T12:38:15.659Z WARNING: Error installing Couchbase design doc: Put http://:8092/bucket/_design/sync_housekeeping: EOF – db.installViews.func1() at database.go:747
2017-12-06T12:38:15.659Z WARNING: RetryLoop for Attempt to install Couchbase design doc bucket : sync_housekeeping giving up after 12 attempts – base.RetryLoop() at util.go:298
2017-12-06T12:38:15.659Z FATAL: Error opening database: Put http://:8092/bucket/_design/sync_housekeeping: EOF – rest.RunServer() at config.go:769

– Please suggest me

@SrinivasanKuppuswamy,

SG expects the views on port 8092.
If you really need to you can change the source code of SG to adjust the port from 8091 to 8092 , but then you also have to change the 8091 port problem that SG uses to auth against CB.