Hi ,
I have installed Couchbase server 3 node cluster and sync gateway(on dedicated linux ec2 ).
my application is able to establish the connection with sync-gateway and fetch all documents.
but when trying to fetch a particular doc unable to process my request.
then happen to see some error in the syn-gateway/logs/errorlogs
g 15 22:44:02 ip-172-31-8-148.us-east-2.compute.internal systemd[1]: Starting Couchbase Sync Gateway server…
Aug 15 22:44:02 ip-172-31-8-148.us-east-2.compute.internal systemd[1]: Started Couchbase Sync Gateway server.
[root@ip-172-31-8-148 ec2-user]# cat /home/sync_gateway/logs/sync_gateway_error.log
2018-08-14T21:56:03.713Z Enabling logging: [HTTP+]
2018-08-14T21:56:03.713Z ==== Couchbase Sync Gateway/2.0.0(832;2d8a6c0) ====
2018-08-14T21:56:03.713Z requestedSoftFDLimit < currentSoftFdLimit (5000 < 65535) no action needed
2018-08-14T21:56:03.713Z Opening db /db as bucket “db”, pool “default”, server <walrus:data>
2018-08-14T21:56:03.713Z Opening Walrus database db on <walrus:data>
2018-08-14T21:56:03.713Z Design docs for current view version (2.0) do not exist - creating…
2018-08-14T21:56:03.713Z Design docs successfully created for view version 2.0.
2018-08-14T21:56:03.713Z Verifying view availability for bucket db…
2018-08-14T21:56:03.714Z Views ready for bucket db.
2018-08-14T21:56:03.714Z Initializing changes cache for database db with sequence: 0
2018-08-14T21:56:03.714Z Using default sync function ‘channel(doc.channels)’ for database “db”
2018-08-14T21:56:03.714Z Reset guest user to config
2018-08-14T21:56:03.714Z Starting admin server on 127.0.0.1:4985
2018-08-14T21:56:03.717Z Starting server on 0.0.0.0:4984 …
2018-08-14T22:13:34.213Z HTTP: #001: GET / (as )
2018-08-14T22:13:34.213Z HTTP+: #001: --> 200 (0.2 ms)
2018-08-14T22:13:59.252Z HTTP: #002: GET / (as )
2018-08-14T22:13:59.253Z HTTP+: #002: --> 200 (0.1 ms)
2018-08-14T22:14:00.706Z HTTP: #003: GET /favicon.ico/ (as )
2018-08-14T22:14:00.706Z HTTP: #003: --> 400 invalid database name “favicon.ico” (0.1 ms)
2018-08-14T22:57:12.603Z Enabling logging: [HTTP+]
2018-08-14T22:57:12.603Z ==== Couchbase Sync Gateway/2.0.0(832;2d8a6c0) ====
2018-08-14T22:57:12.603Z requestedSoftFDLimit < currentSoftFdLimit (5000 < 65535) no action needed
2018-08-14T22:57:12.603Z Opening db /db as bucket “db”, pool “default”, server <walrus:data>
2018-08-14T22:57:12.605Z Opening Walrus database db on <walrus:data>
2018-08-14T22:57:12.606Z Design docs for current SG view version (2.0) found.
2018-08-14T22:57:12.606Z Verifying view availability for bucket db…
2018-08-14T22:57:12.743Z Views ready for bucket db.
2018-08-14T22:57:12.743Z Initializing changes cache for database db with sequence: 1
2018-08-14T22:57:12.743Z Using default sync function ‘channel(doc.channels)’ for database “db”
2018-08-14T22:57:12.744Z Reset guest user to config
2018-08-14T22:57:12.744Z Starting admin server on 127.0.0.1:4985
2018-08-14T22:57:12.749Z Starting server on 0.0.0.0:4984 …
2018-08-14T23:02:35.924Z HTTP: #001: GET / (as )
2018-08-14T23:02:35.925Z HTTP+: #001: --> 200 (0.9 ms)
2018-08-14T23:02:37.709Z HTTP: #002: GET /favicon.ico/ (as )
2018-08-14T23:02:37.709Z HTTP: #002: --> 400 invalid database name “favicon.ico” (0.1 ms)
2018-08-15T06:34:35.634Z HTTP: #003: GET / (as ADMIN)
2018-08-15T06:34:35.634Z HTTP+: #003: --> 200 (0.1 ms)
2018-08-15T06:34:52.929Z HTTP: #004: GET / (as )
2018-08-15T06:34:52.929Z HTTP+: #004: --> 200 (0.1 ms)
2018-08-15T06:36:03.522Z HTTP: #005: GET / (as )
2018-08-15T06:36:03.522Z HTTP+: #005: --> 200 (0.1 ms)
2018-08-15T06:36:04.997Z HTTP: #006: GET /favicon.ico/ (as )
2018-08-15T06:36:04.997Z HTTP: #006: --> 400 invalid database name “favicon.ico” (0.1 ms)
2018-08-15T06:39:25.264Z Enabling logging: [HTTP+]
2018-08-15T06:39:25.264Z ==== Couchbase Sync Gateway/2.0.0(832;2d8a6c0) ====
2018-08-15T06:39:25.264Z requestedSoftFDLimit < currentSoftFdLimit (5000 < 65535) no action needed
2018-08-15T06:39:25.264Z Opening db /db as bucket “db”, pool “default”, server <walrus:data>
2018-08-15T06:39:25.265Z Opening Walrus database db on <walrus:data>
2018-08-15T06:39:25.265Z Design docs for current SG view version (2.0) found.
2018-08-15T06:39:25.265Z Verifying view availability for bucket db…
2018-08-15T06:39:25.317Z Views ready for bucket db.
2018-08-15T06:39:25.317Z Initializing changes cache for database db with sequence: 1
2018-08-15T06:39:25.317Z Using default sync function ‘channel(doc.channels)’ for database “db”
2018-08-15T06:39:25.317Z Reset guest user to config
2018-08-15T06:39:25.317Z Starting admin server on 127.0.0.1:4985
2018-08-15T06:39:25.320Z Starting server on 0.0.0.0:4984 …
2018-08-15T07:02:40.299Z Enabling logging: [*]
what could be issue ?
one more thing is am unable to access sync-gateway admin console on port http://publicIp:4985/_admin
respons on page : refused to connect . ( i have set same rules for 4984-4985)
But i m able to access sync-gateway connection validation on http://publicIP:4984.
response : {“couchdb”:“Welcome”,“vendor”:{“name”:“Couchbase Sync Gateway”,“version”:“2.0”},“version”:“Couchbase Sync Gateway/2.0.0(832;2d8a6c0)”}