GOROOT=/usr/local/go #gosetup GOPATH=/Users/tleyden/Development/sync_gateway/godeps #gosetup /usr/local/go/bin/go build -i -o /private/var/folders/l7/hr7n2gb52nz0vn9lq_x2prcr0000gn/T/___Sync_Gateway___Couchbase_Server /Users/tleyden/Development/sync_gateway/godeps/src/github.com/couchbase/sync_gateway/main.go #gosetup /private/var/folders/l7/hr7n2gb52nz0vn9lq_x2prcr0000gn/T/___Sync_Gateway___Couchbase_Server /Users/tleyden/Development/sync-gateway-configs/couchbase-db.json #gosetup 2018-09-20T18:04:28.239-07:00 [ERR] No logFilePath configured, and --defaultLogFilePath flag is not set. Log files required for product support are not being generated. -- base.(*LoggingConfig).Init() at logging_config.go:40 2018-09-20T18:04:28.239-07:00 ==== /() ==== 2018-09-20T18:04:28.239-07:00 [INF] Console LogKeys: [HTTP Query] 2018-09-20T18:04:28.239-07:00 [INF] Console LogLevel: trace 2018-09-20T18:04:28.239-07:00 [INF] Log Redaction Level: none 2018-09-20T18:04:28.239-07:00 [INF] requestedSoftFDLimit < currentSoftFdLimit (5000 < 12544) no action needed 2018-09-20T18:04:28.239-07:00 [INF] Opening db /db as bucket "test_data_bucket", pool "default", server 2018-09-20T18:04:28.239-07:00 [INF] GoCBCustomSGTranscoder Opening Couchbase database test_data_bucket on as user "test_data_bucket" 2018-09-20T18:04:28.266-07:00 [INF] Successfully opened bucket 2018-09-20T18:04:28.273-07:00 [INF] Initializing indexes with numReplicas: 0... 2018-09-20T18:04:28.293-07:00 [INF] Query: Index sg_access_1 doesn't exist, creating... 2018-09-20T18:04:28.293-07:00 [DBG] Query+: Attempting to create index using statement: [CREATE INDEX `sg_access_1` ON `test_data_bucket`(ALL (ARRAY (op.name) FOR op IN OBJECT_PAIRS(`test_data_bucket`._sync.access) END)) with {"defer_build":true}] 2018-09-20T18:04:28.613-07:00 [INF] Query: Index sg_access_1 created successfully 2018-09-20T18:04:28.660-07:00 [INF] Query: Index sg_roleAccess_1 doesn't exist, creating... 2018-09-20T18:04:28.660-07:00 [DBG] Query+: Attempting to create index using statement: [CREATE INDEX `sg_roleAccess_1` ON `test_data_bucket`(ALL (ARRAY (op.name) FOR op IN OBJECT_PAIRS(`test_data_bucket`._sync.role_access) END)) with {"defer_build":true}] 2018-09-20T18:04:29.006-07:00 [INF] Query: Index sg_roleAccess_1 created successfully 2018-09-20T18:04:29.044-07:00 [INF] Query: Index sg_channels_1 doesn't exist, creating... 2018-09-20T18:04:29.044-07:00 [DBG] Query+: Attempting to create index using statement: [CREATE INDEX `sg_channels_1` ON `test_data_bucket`(ALL (ARRAY [op.name, LEAST(`test_data_bucket`._sync.sequence,op.val.seq), IFMISSING(op.val.rev,null), IFMISSING(op.val.del,null)] FOR op IN OBJECT_PAIRS(`test_data_bucket`._sync.channels) END), `test_data_bucket`._sync.rev, `test_data_bucket`._sync.sequence, `test_data_bucket`._sync.flags) with {"defer_build":true}] 2018-09-20T18:04:29.502-07:00 [INF] Query: Index sg_channels_1 created successfully 2018-09-20T18:04:29.604-07:00 [INF] Query: Index sg_allDocs_1 doesn't exist, creating... 2018-09-20T18:04:29.604-07:00 [DBG] Query+: Attempting to create index using statement: [CREATE INDEX `sg_allDocs_1` ON `test_data_bucket`(`test_data_bucket`._sync.sequence, `test_data_bucket`._sync.rev, `test_data_bucket`._sync.flags, `test_data_bucket`._sync.deleted) WHERE META().id NOT LIKE '\\_sync:%' with {"defer_build":true}] 2018-09-20T18:04:30.166-07:00 [INF] Query: Index sg_allDocs_1 created successfully 2018-09-20T18:04:30.227-07:00 [INF] Query: Index sg_syncDocs_1 doesn't exist, creating... 2018-09-20T18:04:30.227-07:00 [DBG] Query+: Attempting to create index using statement: [CREATE INDEX `sg_syncDocs_1` ON `test_data_bucket`(META().id) WHERE META().id LIKE '\\_sync:%' with {"defer_build":true}] 2018-09-20T18:04:30.692-07:00 [INF] Query: Index sg_syncDocs_1 created successfully 2018-09-20T18:04:30.742-07:00 [INF] Query: Building deferred indexes: [sg_access_1 sg_channels_1 sg_allDocs_1 sg_roleAccess_1 sg_syncDocs_1] 2018-09-20T18:04:31.249-07:00 [DBG] RetryLoop retrying GetIndexMeta for index sg_access_1 after 100 ms. 2018-09-20T18:04:31.377-07:00 [DBG] RetryLoop retrying GetIndexMeta for index sg_access_1 after 200 ms. 2018-09-20T18:04:31.651-07:00 [DBG] RetryLoop retrying GetIndexMeta for index sg_access_1 after 400 ms. 2018-09-20T18:04:32.091-07:00 [DBG] RetryLoop retrying GetIndexMeta for index sg_access_1 after 800 ms. 2018-09-20T18:04:32.914-07:00 [DBG] RetryLoop retrying GetIndexMeta for index sg_access_1 after 1600 ms. 2018-09-20T18:04:34.690-07:00 [INF] Verifying index availability for bucket test_data_bucket... 2018-09-20T18:04:34.690-07:00 [DBG] Query+: Verifying index availability for index sg_channels_1... 2018-09-20T18:04:34.690-07:00 [DBG] Query+: Verifying index availability for index sg_access_1... 2018-09-20T18:04:34.690-07:00 [DBG] Query+: Verifying index availability for index sg_roleAccess_1... 2018-09-20T18:04:34.690-07:00 [TRC] Query: Executing N1QL query: &{options:map[statement:SELECT `test_data_bucket`._sync.access.foo as val FROM `test_data_bucket` WHERE ANY op in OBJECT_PAIRS(`test_data_bucket`._sync.access) SATISFIES op.name = 'foo' end LIMIT 1 scan_consistency:request_plus] adHoc:true} 2018-09-20T18:04:34.690-07:00 [TRC] Query: Executing N1QL query: &{options:map[statement:SELECT [op.name, LEAST(`test_data_bucket`._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null), IFMISSING(op.val.del,null)][1] AS sequence FROM `test_data_bucket` UNNEST OBJECT_PAIRS(`test_data_bucket`._sync.channels) AS op WHERE [op.name, LEAST(`test_data_bucket`._sync.sequence, op.val.seq),IFMISSING(op.val.rev,null), IFMISSING(op.val.del,null)] BETWEEN ['foo', 0] AND ['foo', 1] ORDER BY sequence LIMIT 1 scan_consistency:request_plus] adHoc:true} 2018-09-20T18:04:34.690-07:00 [TRC] Query: Executing N1QL query: &{options:map[statement:SELECT `test_data_bucket`._sync.role_access.foo as val FROM `test_data_bucket` WHERE ANY op in OBJECT_PAIRS(`test_data_bucket`._sync.role_access) SATISFIES op.name = 'foo' end LIMIT 1 scan_consistency:request_plus] adHoc:true} 2018-09-20T18:04:34.700-07:00 [DBG] Query+: Index sg_channels_1 verified as ready 2018-09-20T18:04:34.700-07:00 [DBG] Query+: Index sg_access_1 verified as ready 2018-09-20T18:04:34.700-07:00 [DBG] Query+: Index sg_roleAccess_1 verified as ready 2018-09-20T18:04:34.700-07:00 [INF] Indexes ready for bucket test_data_bucket. 2018-09-20T18:04:34.702-07:00 [INF] Initializing changes cache for database db with sequence: 2 2018-09-20T18:04:34.750-07:00 [INF] Using default sync function 'channel(doc.channels)' for database "db" 2018-09-20T18:04:34.750-07:00 [INF] Reset guest user to config 2018-09-20T18:04:34.751-07:00 [INF] Starting admin server on :4985 2018-09-20T18:04:34.753-07:00 [INF] Starting server on :4984 ... 2018-09-20T18:04:34.760-07:00 [INFO] Using plain authentication for user test_data_bucket