GOROOT=/Users/isaaclambat/sdk/go1.17 #gosetup GOPATH=/Users/isaaclambat/go #gosetup /Users/isaaclambat/sdk/go1.17/bin/go build -i -tags cb_sg_enterprise -o /private/var/folders/q1/x1yfkq8j1fq6dtmgbh8qwgf40000gr/T/GoLand/___Build_EE github.com/couchbase/sync_gateway #gosetup go build: -i flag is deprecated /private/var/folders/q1/x1yfkq8j1fq6dtmgbh8qwgf40000gr/T/GoLand/___Build_EE -logging.console.log_keys Sync,SyncMsg,WS,WSFrame,HTTP,CRUD -logging.console.log_level trace /Users/isaaclambat/dev/testing/configs/full-working.json 2022-05-26T17:42:36.644+01:00 ==== Couchbase Sync Gateway/() EE ==== 2022-05-26T17:42:36.645+01:00 [INF] Loading content from [/Users/isaaclambat/dev/testing/configs/full-working.json] ... 2022-05-26T17:42:36.652+01:00 [INF] Config: Starting in persistent mode using config group "default" 2022-05-26T17:42:36.652+01:00 [INF] Logging: Console to stderr 2022-05-26T17:42:36.652+01:00 [INF] Logging: Files disabled 2022-05-26T17:42:36.653+01:00 [ERR] No log_file_path property specified in config, and --defaultLogFilePath command line flag was not set. Log files required for product support are not being generated. 2022-05-26T17:42:36.653+01:00 [INF] Logging: Console level: trace 2022-05-26T17:42:36.653+01:00 [INF] Logging: Console keys: [CRUD HTTP Sync SyncMsg WS WSFrame] 2022-05-26T17:42:36.653+01:00 [INF] Logging: Redaction level: partial 2022-05-26T17:42:36.653+01:00 [DBG] requestedSoftFDLimit < currentSoftFdLimit (5000 <= 10240) no action needed 2022-05-26T17:42:36.653+01:00 [INF] Logging stats with frequency: &{1m0s} 2022-05-26T17:42:37.186+01:00 [INF] Opening db /bucket1 as bucket "bucket1", pool "default", server 2022-05-26T17:42:37.186+01:00 [INF] GoCBv2 Opening Couchbase database bucket1 on as user "Administrator" 2022-05-26T17:42:37.186+01:00 [INF] Setting query timeouts for bucket bucket1 to 1m15s 2022-05-26T17:42:37.223+01:00 [INF] Setting max_concurrent_query_ops to 256 based on query node count (1) 2022-05-26T17:42:37.223+01:00 [INF] Initializing indexes with numReplicas: 0... 2022-05-26T17:42:37.479+01:00 [INF] Verifying index availability for bucket bucket1... 2022-05-26T17:42:37.486+01:00 [INF] Indexes ready for bucket bucket1. 2022-05-26T17:42:37.486+01:00 [INF] delta_sync enabled=false with rev_max_age_seconds=86400 for database bucket1 2022-05-26T17:42:37.487+01:00 [INF] Created background task: "CleanAgedItems" with interval 1m0s 2022-05-26T17:42:37.487+01:00 [INF] Created background task: "InsertPendingEntries" with interval 2.5s 2022-05-26T17:42:37.487+01:00 [INF] Created background task: "CleanSkippedSequenceQueue" with interval 30m0s 2022-05-26T17:42:37.510+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:38.993+01:00 [INF] Using metadata purge interval of 3.00 days for tombstone compaction. 2022-05-26T17:42:38.993+01:00 [WRN] Automatic compaction can only be enabled on nodes running an Import process -- db.NewDatabaseContext() at database.go:567 2022-05-26T17:42:38.999+01:00 [INF] Using default sync function 'channel(doc.channels)' for database "bucket1" 2022-05-26T17:42:38.999+01:00 [INF] Opening db /bucket2 as bucket "bucket2", pool "default", server 2022-05-26T17:42:38.999+01:00 [INF] GoCBv2 Opening Couchbase database bucket2 on as user "Administrator" 2022-05-26T17:42:38.999+01:00 [INF] Setting query timeouts for bucket bucket2 to 1m15s 2022-05-26T17:42:39.047+01:00 [INF] Setting max_concurrent_query_ops to 256 based on query node count (1) 2022-05-26T17:42:39.047+01:00 [INF] Initializing indexes with numReplicas: 0... 2022-05-26T17:42:39.340+01:00 [INF] Verifying index availability for bucket bucket2... 2022-05-26T17:42:39.348+01:00 [INF] Indexes ready for bucket bucket2. 2022-05-26T17:42:39.348+01:00 [INF] delta_sync enabled=false with rev_max_age_seconds=86400 for database bucket2 2022-05-26T17:42:39.349+01:00 [INF] Created background task: "CleanAgedItems" with interval 1m0s 2022-05-26T17:42:39.349+01:00 [INF] Created background task: "InsertPendingEntries" with interval 2.5s 2022-05-26T17:42:39.349+01:00 [INF] Created background task: "CleanSkippedSequenceQueue" with interval 30m0s 2022-05-26T17:42:39.373+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:40.860+01:00 [INF] Using metadata purge interval of 3.00 days for tombstone compaction. 2022-05-26T17:42:40.860+01:00 [WRN] Automatic compaction can only be enabled on nodes running an Import process -- db.NewDatabaseContext() at database.go:567 2022-05-26T17:42:40.866+01:00 [INF] Using default sync function 'channel(doc.channels)' for database "bucket2" 2022-05-26T17:42:40.866+01:00 [INF] Opening db /data-bucket1 as bucket "data-bucket1", pool "default", server 2022-05-26T17:42:40.866+01:00 [INF] GoCBv2 Opening Couchbase database data-bucket1 on as user "Administrator" 2022-05-26T17:42:40.867+01:00 [INF] Setting query timeouts for bucket data-bucket1 to 1m15s 2022-05-26T17:42:40.959+01:00 [INF] Setting max_concurrent_query_ops to 256 based on query node count (1) 2022-05-26T17:42:40.959+01:00 [INF] Initializing indexes with numReplicas: 1... 2022-05-26T17:42:41.186+01:00 [INF] Verifying index availability for bucket data-bucket1... 2022-05-26T17:42:41.193+01:00 [INF] Indexes ready for bucket data-bucket1. 2022-05-26T17:42:41.193+01:00 [INF] delta_sync enabled=false with rev_max_age_seconds=86400 for database data-bucket1 2022-05-26T17:42:41.193+01:00 [INF] Created background task: "CleanAgedItems" with interval 1m0s 2022-05-26T17:42:41.193+01:00 [INF] Created background task: "InsertPendingEntries" with interval 2.5s 2022-05-26T17:42:41.193+01:00 [INF] Created background task: "CleanSkippedSequenceQueue" with interval 30m0s 2022-05-26T17:42:41.215+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.763+01:00 [WRN] Validation Key not defined in config for provider "azuread" - auth code flow will not be supported for this provider -- db.NewDatabaseContext() at database.go:492 2022-05-26T17:42:42.814+01:00 [INF] Using metadata purge interval of 3.00 days for tombstone compaction. 2022-05-26T17:42:42.814+01:00 [INF] Created background task: "Compact" with interval 24h0m0s 2022-05-26T17:42:42.830+01:00 [INF] Using default sync function 'channel(doc.channels)' for database "data-bucket1" 2022-05-26T17:42:42.830+01:00 [INF] Opening db /bucket3 as bucket "bucket3", pool "default", server 2022-05-26T17:42:42.830+01:00 [INF] GoCBv2 Opening Couchbase database bucket3 on as user "Administrator" 2022-05-26T17:42:42.830+01:00 [INF] Setting query timeouts for bucket bucket3 to 1m15s 2022-05-26T17:42:42.926+01:00 [INF] Setting max_concurrent_query_ops to 256 based on query node count (1) 2022-05-26T17:42:42.926+01:00 [INF] Initializing indexes with numReplicas: 0... 2022-05-26T17:42:42.939+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.947+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.951+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.952+01:00 [WRN] c:data-bucket1-SGI DCP RollbackEx request - rolling back DCP feed for: vbucketId: 34, rollbackSeq: 0. -- base.(*DCPCommon).rollbackEx() at dcp_common.go:187 2022-05-26T17:42:42.957+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.959+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.960+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.961+01:00 [WRN] c:data-bucket1-SGI DCP RollbackEx request - rolling back DCP feed for: vbucketId: 36, rollbackSeq: 0. -- base.(*DCPCommon).rollbackEx() at dcp_common.go:187 2022-05-26T17:42:42.964+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.965+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.968+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.968+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.968+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.968+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.972+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.973+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.973+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.974+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:42.976+01:00 [WRN] c:data-bucket1-SGI DCP RollbackEx request - rolling back DCP feed for: vbucketId: 52, rollbackSeq: 0. -- base.(*DCPCommon).rollbackEx() at dcp_common.go:187 2022-05-26T17:42:43.204+01:00 [INF] Verifying index availability for bucket bucket3... 2022-05-26T17:42:43.216+01:00 [INF] Indexes ready for bucket bucket3. 2022-05-26T17:42:43.216+01:00 [INF] delta_sync enabled=false with rev_max_age_seconds=86400 for database bucket3 2022-05-26T17:42:43.217+01:00 [INF] Created background task: "CleanAgedItems" with interval 1m0s 2022-05-26T17:42:43.217+01:00 [INF] Created background task: "InsertPendingEntries" with interval 2.5s 2022-05-26T17:42:43.217+01:00 [INF] Created background task: "CleanSkippedSequenceQueue" with interval 30m0s 2022-05-26T17:42:43.229+01:00 [INF] Using metadata purge interval of 3.00 days for tombstone compaction. 2022-05-26T17:42:43.229+01:00 [WRN] Automatic compaction can only be enabled on nodes running an Import process -- db.NewDatabaseContext() at database.go:567 2022-05-26T17:42:43.234+01:00 [INF] Using default sync function 'channel(doc.channels)' for database "bucket3" 2022-05-26T17:42:43.235+01:00 [INF] Opening db /data-bucket2 as bucket "data-bucket2", pool "default", server 2022-05-26T17:42:43.235+01:00 [INF] GoCBv2 Opening Couchbase database data-bucket2 on as user "Administrator" 2022-05-26T17:42:43.235+01:00 [INF] Setting query timeouts for bucket data-bucket2 to 1m15s 2022-05-26T17:42:43.256+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.266+01:00 [INF] Setting max_concurrent_query_ops to 256 based on query node count (1) 2022-05-26T17:42:43.266+01:00 [INF] Initializing indexes with numReplicas: 1... 2022-05-26T17:42:43.462+01:00 [INF] Verifying index availability for bucket data-bucket2... 2022-05-26T17:42:43.469+01:00 [INF] Indexes ready for bucket data-bucket2. 2022-05-26T17:42:43.469+01:00 [INF] delta_sync enabled=false with rev_max_age_seconds=86400 for database data-bucket2 2022-05-26T17:42:43.470+01:00 [INF] Created background task: "CleanAgedItems" with interval 1m0s 2022-05-26T17:42:43.470+01:00 [INF] Created background task: "InsertPendingEntries" with interval 2.5s 2022-05-26T17:42:43.470+01:00 [INF] Created background task: "CleanSkippedSequenceQueue" with interval 30m0s 2022-05-26T17:42:43.496+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.517+01:00 [WRN] Validation Key not defined in config for provider "azuread" - auth code flow will not be supported for this provider -- db.NewDatabaseContext() at database.go:492 2022-05-26T17:42:43.524+01:00 [INF] Using metadata purge interval of 3.00 days for tombstone compaction. 2022-05-26T17:42:43.524+01:00 [INF] Created background task: "Compact" with interval 24h0m0s 2022-05-26T17:42:43.534+01:00 [INF] Using default sync function 'channel(doc.channels)' for database "data-bucket2" 2022-05-26T17:42:43.534+01:00 [INF] Starting metrics server on 0.0.0.0:4986 2022-05-26T17:42:43.534+01:00 [INF] Starting admin server on 0.0.0.0:4985 2022-05-26T17:42:43.534+01:00 [INF] Starting server on 0.0.0.0:4984 ... 2022-05-26T17:42:43.563+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.563+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.569+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.574+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.574+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.576+01:00 [WRN] c:data-bucket2-SGI DCP RollbackEx request - rolling back DCP feed for: vbucketId: 58, rollbackSeq: 0. -- base.(*DCPCommon).rollbackEx() at dcp_common.go:187 2022-05-26T17:42:43.579+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.579+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.582+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.590+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.594+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.595+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.597+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.598+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.599+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.599+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:42:43.601+01:00 [INF] CBGoUtilsLogger: Using plain authentication for user Administrator 2022-05-26T17:45:40.652+01:00 [INF] HTTP: c:#001 GET /bucket3/_blipsync (as ADMIN) 2022-05-26T17:45:40.652+01:00 [INF] WS: c:#001 Start BLIP/Websocket handler 2022-05-26T17:45:40.652+01:00 [DBG] WSFrame+: c:#001 Sender starting 2022-05-26T17:45:40.779+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#1 (flags= 0, length=62) 2022-05-26T17:45:40.779+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#1 2022-05-26T17:45:40.779+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#1: Body: '' Properties: map[Profile:getCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0=] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.779+01:00 [INF] SyncMsg: c:[6103f8a] #1: Type:getCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= 2022-05-26T17:45:40.779+01:00 [INF] SyncMsg: c:[6103f8a] #1: Type:getCheckpoint --> 404 missing Time:366.428µs 2022-05-26T17:45:40.779+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp ERR#1: Body: 'missing' Properties: map[Error-Code:404 Error-Domain:HTTP] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.779+01:00 [DBG] WSFrame+: c:#001 Push ERR#1 2022-05-26T17:45:40.779+01:00 [DBG] WSFrame+: c:#001 Sending frame: ERR#1 (flags= 10, size= 41) 2022-05-26T17:45:40.804+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#2 (flags= 0, length=46) 2022-05-26T17:45:40.804+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#2 2022-05-26T17:45:40.804+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#2: Body: '' Properties: map[Profile:subChanges batch:200 continuous:true] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.804+01:00 [INF] SyncMsg: c:[6103f8a] #2: Type:subChanges Since:0 Continuous:true 2022-05-26T17:45:40.804+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#2: Body: '' Properties: map[] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.804+01:00 [DBG] WSFrame+: c:#001 Push RPY#2 2022-05-26T17:45:40.804+01:00 [INF] Sync: c:[6103f8a] Sending changes since 0 2022-05-26T17:45:40.804+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#2 (flags= 1, size= 1) 2022-05-26T17:45:40.805+01:00 [DBG] Sync+: c:[6103f8a] Sending 0 changes 2022-05-26T17:45:40.805+01:00 [DBG] WS+: c:#001 Queued MSG#1~ 2022-05-26T17:45:40.805+01:00 [DBG] WSFrame+: c:#001 Push MSG#1~ 2022-05-26T17:45:40.805+01:00 [TRC] SyncMsg+: c:[6103f8a] Sent Req MSG#1~: Body: 'null' Properties: map[Content-Type:application/json Profile:changes] -- db.(*BlipSyncContext).sendBLIPMessage() at blip_sync_context.go:526 2022-05-26T17:45:40.805+01:00 [INF] Sync: c:[6103f8a] Sent all changes to client 2022-05-26T17:45:40.805+01:00 [DBG] WSFrame+: c:#001 Sending frame: MSG#1~ (flags= 101000, size= 51) 2022-05-26T17:45:40.829+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#3!~ (flags= 11000, length=85) 2022-05-26T17:45:40.829+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#3!~ 2022-05-26T17:45:40.829+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#3!~: Body: '[["doc","1-afaffa067d2d78a9f47db4fed2a931802ca54411","",128]]' Properties: map[Profile:proposeChanges] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.830+01:00 [INF] SyncMsg: c:[6103f8a] #3: Type:proposeChanges #Changes: 1 2022-05-26T17:45:40.830+01:00 [DBG] SyncMsg+: c:[6103f8a] #3: Type:proposeChanges --> OK Time:450.95µs 2022-05-26T17:45:40.830+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#3!~: Body: '[]' Properties: map[] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.830+01:00 [DBG] WSFrame+: c:#001 Push RPY#3!~ 2022-05-26T17:45:40.830+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#3!~ (flags= 11001, size= 3) 2022-05-26T17:45:40.857+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#4~ (flags= 1000, length=184) 2022-05-26T17:45:40.857+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#4~ 2022-05-26T17:45:40.857+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#4~: Body: '{"attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","@type":"blob"},"Key":"Val","_attachments":{"blob_/attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","stub":true,"revpos":1}}}' Properties: map[Profile:rev id:doc noconflicts:1 rev:1-afaffa067d2d78a9f47db4fed2a931802ca54411 sequence:1] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.858+01:00 [DBG] SyncMsg+: c:[6103f8a] #4: Type:rev Id:doc Rev:1-afaffa067d2d78a9f47db4fed2a931802ca54411 Sequence:1 2022-05-26T17:45:40.858+01:00 [TRC] SyncMsg+: c:[6103f8a] #4: Properties:map[Profile:rev id:doc noconflicts:1 rev:1-afaffa067d2d78a9f47db4fed2a931802ca54411 sequence:1] Body:{"attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","@type":"blob"},"Key":"Val","_attachments":{"blob_/attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","stub":true,"revpos":1}}} -- db.(*blipHandler).processRev() at blip_handler.go:826 2022-05-26T17:45:40.858+01:00 [TRC] UNMARSHAL doc body doc/1-afaffa067d2d78a9f47db4fed2a931802ca54411 from db.(*blipHandler).processRev() at blip_handler.go:943 -- db.(*Document).Body() at document.go:263 2022-05-26T17:45:40.858+01:00 [DBG] Sync+: c:[6103f8a] Asking for attachment "blob_/attachment" for doc doc (digest sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=) 2022-05-26T17:45:40.858+01:00 [DBG] WS+: c:#001 Queued MSG#2 2022-05-26T17:45:40.858+01:00 [DBG] WSFrame+: c:#001 Push MSG#2 2022-05-26T17:45:40.858+01:00 [TRC] SyncMsg+: c:[6103f8a] Sent Req MSG#2: Body: '' Properties: map[Profile:getAttachment compress:true digest:sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=] -- db.(*BlipSyncContext).sendBLIPMessage() at blip_sync_context.go:526 2022-05-26T17:45:40.858+01:00 [DBG] WSFrame+: c:#001 Sending frame: MSG#2 (flags= 0, size= 78) 2022-05-26T17:45:40.869+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#5 (flags= 0, length=86) 2022-05-26T17:45:40.869+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#5 2022-05-26T17:45:40.869+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#5: Body: '{"time":1653583539}' Properties: map[Profile:setCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= rev:] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.869+01:00 [INF] SyncMsg: c:[6103f8a] #5: Type:setCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= 2022-05-26T17:45:40.870+01:00 [DBG] SyncMsg+: c:[6103f8a] #5: Type:setCheckpoint --> OK Time:776.582µs 2022-05-26T17:45:40.870+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#5: Body: '' Properties: map[rev:0-1] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.870+01:00 [DBG] WSFrame+: c:#001 Push RPY#5 2022-05-26T17:45:40.870+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#5 (flags= 1, size= 9) 2022-05-26T17:45:40.900+01:00 [DBG] WSFrame+: c:#001 Received frame: RPY#2~ (flags= 1001, length=12) 2022-05-26T17:45:40.901+01:00 [DBG] CRUD+: c:[6103f8a] Invoking sync on doc "doc" rev 1-afaffa067d2d78a9f47db4fed2a931802ca54411 2022-05-26T17:45:40.901+01:00 [INF] CRUD: c:[6103f8a] Added attachment "_sync:att2:E51US4IbE+vqFPGw/hhXciLkFcKWbjo1EcQZYFUjIgI=:sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=" 2022-05-26T17:45:40.902+01:00 [DBG] CRUD+: c:[6103f8a] Saving doc (seq: #1, id: doc rev: 1-afaffa067d2d78a9f47db4fed2a931802ca54411) 2022-05-26T17:45:40.903+01:00 [TRC] Already had doc body doc/1-afaffa067d2d78a9f47db4fed2a931802ca54411 from db.(*Database).updateAndReturnDoc() at crud.go:1893 -- db.(*Document).Body() at document.go:254 2022-05-26T17:45:40.903+01:00 [DBG] CRUD+: c:[6103f8a] Stored doc "doc" / "1-afaffa067d2d78a9f47db4fed2a931802ca54411" as #1 2022-05-26T17:45:40.903+01:00 [DBG] SyncMsg+: c:[6103f8a] #4: Type:rev --> OK Time:45.438699ms 2022-05-26T17:45:40.903+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#4: Body: '' Properties: map[] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.903+01:00 [DBG] WSFrame+: c:#001 Push RPY#4 2022-05-26T17:45:40.903+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#4 (flags= 1, size= 1) 2022-05-26T17:45:40.903+01:00 [DBG] Sync+: c:[6103f8a] Sending 1 changes 2022-05-26T17:45:40.903+01:00 [DBG] WS+: c:#001 Queued MSG#3~ 2022-05-26T17:45:40.903+01:00 [DBG] WSFrame+: c:#001 Push MSG#3~ 2022-05-26T17:45:40.903+01:00 [TRC] SyncMsg+: c:[6103f8a] Sent Req MSG#3~: Body: '[[1,"doc","1-afaffa067d2d78a9f47db4fed2a931802ca54411"]]' Properties: map[Content-Type:application/json Profile:changes] -- db.(*BlipSyncContext).sendBLIPMessage() at blip_sync_context.go:526 2022-05-26T17:45:40.903+01:00 [DBG] WSFrame+: c:#001 Sending frame: MSG#3~ (flags= 1000, size= 103) 2022-05-26T17:45:40.987+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#6 (flags= 0, length=99) 2022-05-26T17:45:40.988+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#6 2022-05-26T17:45:40.988+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#6: Body: '{"time":1653583539,"local":1}' Properties: map[Profile:setCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= rev:0-1] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:40.988+01:00 [INF] SyncMsg: c:[6103f8a] #6: Type:setCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= Rev:0-1 2022-05-26T17:45:40.988+01:00 [DBG] SyncMsg+: c:[6103f8a] #6: Type:setCheckpoint --> OK Time:533.816µs 2022-05-26T17:45:40.988+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#6: Body: '' Properties: map[rev:0-2] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:40.988+01:00 [DBG] WSFrame+: c:#001 Push RPY#6 2022-05-26T17:45:40.988+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#6 (flags= 1, size= 9) 2022-05-26T17:45:41.012+01:00 [DBG] WSFrame+: c:#001 Received frame: RPY#3~ (flags= 1001, length=33) 2022-05-26T17:45:41.012+01:00 [INF] Sync: c:[6103f8a] Sent 1 changes to client, from seq 1 2022-05-26T17:45:41.012+01:00 [DBG] Sync+: c:[6103f8a] Sending 0 changes 2022-05-26T17:45:41.066+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#7 (flags= 0, length=110) 2022-05-26T17:45:41.067+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#7 2022-05-26T17:45:41.067+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#7: Body: '{"time":1653583539,"local":1,"remote":1}' Properties: map[Profile:setCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= rev:0-2] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:41.067+01:00 [INF] SyncMsg: c:[6103f8a] #7: Type:setCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= Rev:0-2 2022-05-26T17:45:41.067+01:00 [DBG] SyncMsg+: c:[6103f8a] #7: Type:setCheckpoint --> OK Time:609.46µs 2022-05-26T17:45:41.067+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#7: Body: '' Properties: map[rev:0-3] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:41.067+01:00 [DBG] WSFrame+: c:#001 Push RPY#7 2022-05-26T17:45:41.067+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#7 (flags= 1, size= 9) 2022-05-26T17:45:45.308+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#8!~ (flags= 11000, length=56) 2022-05-26T17:45:45.308+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#8!~ 2022-05-26T17:45:45.308+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#8!~: Body: '[["doc","2-2eaadab0f94617e1051f52cdf5920b940886ce91","1-afaffa067d2d78a9f47db4fed2a931802ca54411",104]]' Properties: map[Profile:proposeChanges] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:45.308+01:00 [INF] SyncMsg: c:[6103f8a] #8: Type:proposeChanges #Changes: 1 2022-05-26T17:45:45.308+01:00 [DBG] SyncMsg+: c:[6103f8a] #8: Type:proposeChanges --> OK Time:370.378µs 2022-05-26T17:45:45.308+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#8!~: Body: '[]' Properties: map[] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:45.308+01:00 [DBG] WSFrame+: c:#001 Push RPY#8!~ 2022-05-26T17:45:45.308+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#8!~ (flags= 11001, size= 3) 2022-05-26T17:45:45.364+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#9~ (flags= 1000, length=42) 2022-05-26T17:45:45.364+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#9~ 2022-05-26T17:45:45.364+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#9~: Body: '{"attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","@type":"blob"},"Key":"Val","Cookie":"True","_attachments":{"blob_/attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","stub":true,"revpos":2}}}' Properties: map[Profile:rev history:1-afaffa067d2d78a9f47db4fed2a931802ca54411 id:doc noconflicts:1 rev:2-2eaadab0f94617e1051f52cdf5920b940886ce91 sequence:2] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:45.364+01:00 [DBG] SyncMsg+: c:[6103f8a] #9: Type:rev Id:doc Rev:2-2eaadab0f94617e1051f52cdf5920b940886ce91 Sequence:2 2022-05-26T17:45:45.364+01:00 [TRC] SyncMsg+: c:[6103f8a] #9: Properties:map[Profile:rev history:1-afaffa067d2d78a9f47db4fed2a931802ca54411 id:doc noconflicts:1 rev:2-2eaadab0f94617e1051f52cdf5920b940886ce91 sequence:2] Body:{"attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","@type":"blob"},"Key":"Val","Cookie":"True","_attachments":{"blob_/attachment":{"digest":"sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=","length":11,"content_type":"text/plain","stub":true,"revpos":2}}} -- db.(*blipHandler).processRev() at blip_handler.go:826 2022-05-26T17:45:45.364+01:00 [TRC] UNMARSHAL doc body doc/2-2eaadab0f94617e1051f52cdf5920b940886ce91 from db.(*blipHandler).processRev() at blip_handler.go:943 -- db.(*Document).Body() at document.go:263 2022-05-26T17:45:45.364+01:00 [DBG] CRUD+: c:[6103f8a] Invoking sync on doc "doc" rev 2-2eaadab0f94617e1051f52cdf5920b940886ce91 2022-05-26T17:45:45.365+01:00 [DBG] CRUD+: c:[6103f8a] Backed up revision body "doc"/"1-afaffa067d2d78a9f47db4fed2a931802ca54411" (282 bytes, ttl:300) 2022-05-26T17:45:45.365+01:00 [DBG] CRUD+: c:[6103f8a] Saving doc (seq: #2, id: doc rev: 2-2eaadab0f94617e1051f52cdf5920b940886ce91) 2022-05-26T17:45:45.366+01:00 [TRC] Already had doc body doc/2-2eaadab0f94617e1051f52cdf5920b940886ce91 from db.(*Database).updateAndReturnDoc() at crud.go:1893 -- db.(*Document).Body() at document.go:254 2022-05-26T17:45:45.366+01:00 [DBG] CRUD+: c:[6103f8a] Stored doc "doc" / "2-2eaadab0f94617e1051f52cdf5920b940886ce91" as #2 2022-05-26T17:45:45.367+01:00 [DBG] Sync+: c:[6103f8a] Sending 1 changes 2022-05-26T17:45:45.367+01:00 [DBG] WS+: c:#001 Queued MSG#4~ 2022-05-26T17:45:45.367+01:00 [DBG] CRUD+: c:[6103f8a] Deleted obsolete attachments (key: [_sync:att2:E51US4IbE+vqFPGw/hhXciLkFcKWbjo1EcQZYFUjIgI=:sha1-wzp8ZyykdEuZ9GuqmxQ7XDrY7Co=], doc: "doc") 2022-05-26T17:45:45.367+01:00 [DBG] WSFrame+: c:#001 Push MSG#4~ 2022-05-26T17:45:45.367+01:00 [DBG] SyncMsg+: c:[6103f8a] #9: Type:rev --> OK Time:2.898613ms 2022-05-26T17:45:45.367+01:00 [TRC] SyncMsg+: c:[6103f8a] Sent Req MSG#4~: Body: '[[2,"doc","2-2eaadab0f94617e1051f52cdf5920b940886ce91"]]' Properties: map[Content-Type:application/json Profile:changes] -- db.(*BlipSyncContext).sendBLIPMessage() at blip_sync_context.go:526 2022-05-26T17:45:45.367+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#9: Body: '' Properties: map[] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:45.367+01:00 [DBG] WSFrame+: c:#001 Push RPY#9 2022-05-26T17:45:45.367+01:00 [DBG] WSFrame+: c:#001 Sending frame: MSG#4~ (flags= 1000, size= 103) 2022-05-26T17:45:45.367+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#9 (flags= 1, size= 1) 2022-05-26T17:45:45.427+01:00 [DBG] WSFrame+: c:#001 Received frame: RPY#4~ (flags= 1001, length=8) 2022-05-26T17:45:45.427+01:00 [INF] Sync: c:[6103f8a] Sent 1 changes to client, from seq 2 2022-05-26T17:45:45.427+01:00 [DBG] Sync+: c:[6103f8a] Sending 0 changes 2022-05-26T17:45:45.427+01:00 [TRC] Sync+: c:[6103f8a] Client didn't specify 'deltas' property in 'changes' response. useDeltas: false -- db.(*BlipSyncContext).handleChangesResponse() at blip_sync_context.go:283 2022-05-26T17:45:45.443+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#10 (flags= 0, length=110) 2022-05-26T17:45:45.443+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#10 2022-05-26T17:45:45.443+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#10: Body: '{"time":1653583544,"local":2,"remote":1}' Properties: map[Profile:setCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= rev:0-3] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:45.443+01:00 [INF] SyncMsg: c:[6103f8a] #10: Type:setCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= Rev:0-3 2022-05-26T17:45:45.443+01:00 [DBG] SyncMsg+: c:[6103f8a] #10: Type:setCheckpoint --> OK Time:569.627µs 2022-05-26T17:45:45.443+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#10: Body: '' Properties: map[rev:0-4] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:45.443+01:00 [DBG] WSFrame+: c:#001 Push RPY#10 2022-05-26T17:45:45.443+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#10 (flags= 1, size= 9) 2022-05-26T17:45:45.515+01:00 [DBG] WSFrame+: c:#001 Received frame: MSG#11 (flags= 0, length=110) 2022-05-26T17:45:45.515+01:00 [DBG] WS+: c:#001 Incoming BLIP Request: MSG#11 2022-05-26T17:45:45.515+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Req MSG#11: Body: '{"time":1653583544,"local":2,"remote":2}' Properties: map[Profile:setCheckpoint client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= rev:0-4] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:185 2022-05-26T17:45:45.515+01:00 [INF] SyncMsg: c:[6103f8a] #11: Type:setCheckpoint Client:cp-kTF8FUaRD88AmpxpfPVMxNJ48Y0= Rev:0-4 2022-05-26T17:45:45.516+01:00 [DBG] SyncMsg+: c:[6103f8a] #11: Type:setCheckpoint --> OK Time:675.508µs 2022-05-26T17:45:45.516+01:00 [TRC] SyncMsg+: c:[6103f8a] Recv Rsp RPY#11: Body: '' Properties: map[rev:0-5] -- db.(*BlipSyncContext).register.func1() at blip_sync_context.go:208 2022-05-26T17:45:45.516+01:00 [DBG] WSFrame+: c:#001 Push RPY#11 2022-05-26T17:45:45.516+01:00 [DBG] WSFrame+: c:#001 Sending frame: RPY#11 (flags= 1, size= 9) 2022-05-26T17:45:50.294+01:00 [INF] WS: c:#001 Error: receiveLoop exiting with WebSocket error: failed to get reader: received close frame: status = StatusNormalClosure and reason = "" 2022-05-26T17:45:50.294+01:00 [DBG] WSFrame+: c:#001 Sender stopped 2022-05-26T17:45:50.294+01:00 [DBG] WSFrame+: c:#001 parseLoop stopped 2022-05-26T17:45:50.345+01:00 [INF] WS: c:#001 BLIP/Websocket Handler exited: failed to get reader: received close frame: status = StatusNormalClosure and reason = "" 2022-05-26T17:45:50.345+01:00 [INF] HTTP: c:[6103f8a] #001: --> BLIP+WebSocket connection error: failed to get reader: received close frame: status = StatusNormalClosure and reason = "" 2022-05-26T17:45:50.345+01:00 [INF] HTTP: c:[6103f8a] #001: --> BLIP+WebSocket connection closed 2022-05-26T17:45:50.345+01:00 [DBG] SyncMsg+: c:[6103f8a] #2: Type:subChanges --> Time:9.540785554s ^C2022-05-26T17:45:54.304+01:00 [INF] Handling signal: interrupt Process finished with the exit code 130 (interrupted by signal 2: SIGINT)