Q: sync_gateway crash


#1

hi
I wrote some data to the CB database before. Then the SG configuration was opened to XATTR. Then, we deleted the local data of LITE again. But once again, the SG service will not start. The error message is as follows:

2018-11-20T09:25:45.425+08:00 WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 546, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.
go:2632018-11-20T09:25:45.425+08:00 WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 744, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.
go:2632018-11-20T09:25:45.429+08:00 Cache: Received #23226 (unused sequence)
2018-11-20T09:25:45.429+08:00 Changes+: Notifying that “kitchen” changed (keys="{_sync:user:7a01127d}") count=2
2018-11-20T09:25:45.429+08:00 Cache: Received #16608 (unused sequence)
2018-11-20T09:25:45.430+08:00 Cache: Received #23249 (unused sequence)
2018-11-20T09:25:45.432+08:00 Cache: Received #24272 (unused sequence)
2018-11-20T09:25:45.433+08:00 Cache: Received #15936 (unused sequence)
2018-11-20T09:25:45.433+08:00 Cache: Received #16022 (unused sequence)
2018-11-20T09:25:45.434+08:00 Cache: Received #24312 (unused sequence)
2018-11-20T09:25:45.434+08:00 Cache: Received #23168 (unused sequence)
2018-11-20T09:25:45.434+08:00 Cache: Received #23693 (unused sequence)
2018-11-20T09:25:45.434+08:00 Changes+: Notifying that “kitchen” changed (keys="{_sync:user:7a40a944}") count=3
2018-11-20T09:25:45.434+08:00 Import+: Ignoring delete mutation for Ed2YFiUIUDGMXEjmjNX5jh3yf4l7wqNa5AZFBbhHdKyQBME5gowtwsCs60OyEQjCejCJKQ2dKTh3JwQNdRGB12yJPNWaVHbC2B3lYQD
9Ki8rbOF1Xd2RLNO06FauOzH3ULyk73GTnbwWmkwQ9DLEAVeM2Djhvfdigh19BnF6 - no existing Sync Gateway metadata.2018-11-20T09:25:45.435+08:00 Cache: Received #22269 (unused sequence)
2018-11-20T09:25:45.435+08:00 Cache: Received #16682 (unused sequence)
2018-11-20T09:25:45.435+08:00 Import+: Ignoring delete mutation for Company.c9c63932 - no existing Sync Gateway metadata.
2018-11-20T09:25:45.436+08:00 Cache: Received #24898 (unused sequence)
2018-11-20T09:25:45.437+08:00 Cache: Received #16598 (unused sequence)
2018-11-20T09:25:45.437+08:00 Cache: Received #23380 (unused sequence)
2018-11-20T09:25:45.438+08:00 Cache: Received #17645 (unused sequence)
2018-11-20T09:25:45.438+08:00 Import+: Ignoring delete mutation for tS3fA7YB1C8oO33xx4DKVbjDELizDnxxs7alaw5bTbqaHmQu8whbmB00KsWrTTYHyJ1MU7RP20eEvakSSMZUnzZnaaibuFjih3HQ2JJ
YmFbH6gxl6T5julPI1Q2yokUSPyWLw9X4fM4hEpq6ns4MdAU7S9gmKaHQaoBwVoI4 - no existing Sync Gateway metadata.2018-11-20T09:25:45.440+08:00 Cache: Received #16006 (unused sequence)
2018-11-20T09:25:45.440+08:00 Cache: Received #22450 (unused sequence)
2018-11-20T09:25:45.441+08:00 Cache: Received #16636 (unused sequence)
2018-11-20T09:25:45.441+08:00 Cache: Received #16613 (unused sequence)
2018-11-20T09:25:45.442+08:00 Cache: Received #16579 (unused sequence)
2018-11-20T09:25:45.442+08:00 Cache: Received #16593 (unused sequence)
2018-11-20T09:25:45.442+08:00 Cache: Received #16681 (unused sequence)
2018-11-20T09:25:45.443+08:00 Cache: Received #16634 (unused sequence)
2018-11-20T09:25:45.443+08:00 Cache: Received #16784 (unused sequence)
2018-11-20T09:25:45.444+08:00 Cache: Received #16645 (unused sequence)
2018-11-20T09:25:45.445+08:00 Import+: Ignoring delete mutation for Employee.2b4fd216-a3c3-414f-9292-957f018479ee - no existing Sync Gateway metadata.
2018-11-20T09:25:45.445+08:00 Import+: Ignoring delete mutation for Employee.3ed7955a-5f49-46cd-8555-1e2ad9af8222 - no existing Sync Gateway metadata.
2018-11-20T09:25:45.447+08:00 Cache: Received #23231 (unused sequence)
2018-11-20T09:25:45.453+08:00 Cache: Received #16496 (unused sequence)
2018-11-20T09:25:45.453+08:00 Cache: Received #22447 (unused sequence)
2018-11-20T09:25:45.454+08:00 Cache: Received #16073 (unused sequence)
2018-11-20T09:25:45.454+08:00 Cache: Received #23647 (unused sequence)
2018-11-20T09:25:45.455+08:00 Cache: Received #16616 (unused sequence)
2018-11-20T09:25:45.455+08:00 Import+: Attempting to import doc “LkVqvuU4ylQW0PRrSg0cMHYv0qHJbo6GzgmTPDDlBe0Ngx7MjCnVVRS4WS2s7I7ifsanZtV8IICDiXazAVpmKrHIdN4hXkZOeTBdvMgDCX
YS3sgy3gCKAqt2Vvf3YI9ukQLYjrxEFPFn9gTDKvrQD4ysCTnR8mc6b1cw5U1K”…2018-11-20T09:25:45.455+08:00 CRUD+: Doc LkVqvuU4ylQW0PRrSg0cMHYv0qHJbo6GzgmTPDDlBe0Ngx7MjCnVVRS4WS2s7I7ifsanZtV8IICDiXazAVpmKrHIdN4hXkZOeTBdvMgDCXYS3sgy3gCKAqt2Vvf3YI9ukQ
LYjrxEFPFn9gTDKvrQD4ysCTnR8mc6b1cw5U1K is not an SG write, based on cas. cas:1568b0afedb20000 syncCas:""2018-11-20T09:25:45.455+08:00 Import: Created new rev ID 1-ca9ad22802b66f662ff171f226211d5c
panic: assignment to entry in nil map

goroutine 84 [running]:
github.com/couchbase/sync_gateway/db.(*Database).importDoc.func1(0xc420376280, 0xa, 0x145, 0x1c, 0x1, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:187 +0x31f
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func1(0xc420376280, 0x101, 0xc4201d9ac7, 0x4, 0x4, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:809 +0xf0
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func3(0xc4201d9ac7, 0x4, 0x4, 0x0, 0x0, 0x0, 0x1568b0afedb20000, 0x455210, 0x7f8a393b4000, 0xc420096f10
, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1073 +0x138
github.com/couchbase/sync_gateway/base.CouchbaseBucketGoCB.WriteUpdateWithXattr(0xc4202be1b0, 0xc4201caa80, 0x15, 0xc9533b, 0x7, 0xc4201ccfb1, 0x7, 0x0, 0x0, 0x10d3c40, …
.) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/base/bucket_gocb.go:1548 +0x174
github.com/couchbase/sync_gateway/base.(*CouchbaseBucketGoCB).WriteUpdateWithXattr(0xc4202ae640, 0xc42022efd0, 0xa8, 0xc92cb3, 0x5, 0x5bf37eb5, 0xc420499380, 0xc4203b5b30,
0x2, 0xc4202c6600, …) :472 +0xef
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc(0xc42038cce0, 0xc42022efd0, 0xa8, 0x5bf37eb500000001, 0xc420499380, 0xc4201cf770, 0x1, 0xc4201bcb60, 0x
ccae68, 0xc420018080, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1090 +0x523
github.com/couchbase/sync_gateway/db.(*Database).importDoc(0xc42038cce0, 0xc42022efd0, 0xa8, 0x0, 0x0, 0xc420499380, 0x0, 0xb4b080, 0xc42000e448, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:196 +0x2ef
github.com/couchbase/sync_gateway/db.(*Database).ImportDocRaw(0xc42038cce0, 0xc42022efd0, 0xa8, 0xc4201d9ac7, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:51 +0x27f
github.com/couchbase/sync_gateway/db.(*changeCache).DocChangedSynchronous(0xc4201621e0, 0x2, 0x5bf37eb5, 0xc4201d9a1f, 0xa8, 0xac, 0xc4201d9ac7, 0x4, 0x4, 0x1568b0afedb200
00, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:416 +0x1273
github.com/couchbase/sync_gateway/db.(*changeCache).DocChanged(0xc4201621e0, 0x2, 0x5bf37eb5, 0xc4201d9a1f, 0xa8, 0xac, 0xc4201d9ac7, 0x4, 0x4, 0x1568b0afedb20000, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:348 +0x61
github.com/couchbase/sync_gateway/db.(ChangeIndex).DocChanged-fm(0x2, 0x5bf37eb5, 0xc4201d9a1f, 0xa8, 0xac, 0xc4201d9ac7, 0x4, 0x4, 0x1568b0afedb20000, 0x10000, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/database.go:236 +0x4c
github.com/couchbase/sync_gateway/db.(*changeListener).ProcessFeedEvent(0xc4200db6b0, 0x2, 0x5bf37eb5, 0xc4201d9a1f, 0xa8, 0xac, 0xc4201d9ac7, 0x4, 0x4, 0x1568b0afedb20000
, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:118 +0x29d
github.com/couchbase/sync_gateway/db.(*changeListener).ProcessFeedEvent-fm(0x2, 0x5bf37eb5, 0xc4201d9a1f, 0xa8, 0xac, 0xc4201d9ac7, 0x4, 0x4, 0x1568b0afedb20000, 0x10000,
…) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:92 +0x4a
github.com/couchbase/sync_gateway/base.(*DCPReceiver).DataUpdate(0xc4203be120, 0x18f, 0xc4201d9a1f, 0xa8, 0xac, 0x2b, 0xc420316180, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/base/dcp_feed.go:157 +0x1b7
github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).worker.func5(0xc42006b9e0, 0xc420090000, 0xc42044db20, 0xf, 0xc420424e80, 0x3a, 0xc4202302a0, 0xc420013a
80, 0xc4202303f0, 0xc42006b920, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1168 +0x729
created by github.com/couchbase/go-couchbase/cbdatasource.(bucketDataSource).worker
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1220 +0x77a
2018-11-20T09:25:45.599+08:00 Enabling logging: [
]
2018-11-20T09:25:45.599+08:00 ==== Couchbase Sync Gateway/2.0.0(832;2d8a6c0) ====
2018-11-20T09:25:45.599+08:00 requestedSoftFDLimit < currentSoftFdLimit (5000 < 65535) no action needed
2018-11-20T09:25:45.599+08:00 Opening db /kitchen as bucket “kitchen”, pool “default”, server http://127.0.0.1:8091
2018-11-20T09:25:45.599+08:00 GoCBCustomSGTranscoder Opening Couchbase database kitchen on http://127.0.0.1:8091 as user “kitchen”
2018-11-20T09:25:45.649+08:00 Design docs for current SG view version (2.0) found.
2018-11-20T09:25:45.649+08:00 Verifying view availability for bucket kitchen…
2018-11-20T09:25:45.832+08:00 Views ready for bucket kitchen.
2018-11-20T09:25:45.833+08:00 Cache: Initializing changes cache with options {ChannelCacheOptions:{ChannelCacheMinLength:0 ChannelCacheMaxLength:0 ChannelCacheAge:0s} Cach
ePendingSeqMaxWait:5s CachePendingSeqMaxNum:10000 CacheSkippedSeqMaxWait:1h0m0s}2018-11-20T09:25:45.833+08:00 Initializing changes cache for database kitchen with sequence: 25291
2018-11-20T09:25:45.833+08:00 Feed: Starting mutation feed on bucket kitchen due to either channel cache mode or doc tracking (auto-import/bucketshadow)
2018-11-20T09:25:45.833+08:00 Feed: Using DCP feed for bucket: “kitchen” (based on feed_type specified in config file)
2018-11-20T09:25:45.849+08:00 Feed+: Initializing DCP feed based on persisted checkpoints
2018-11-20T09:25:45.872+08:00 Feed+: Initializing DCP feed based on persisted checkpoints
2018-11-20T09:25:45.872+08:00 Feed+: Connecting to new bucket datasource. URLs:[http://127.0.0.1:8091], pool:default, bucket:kitchen
2018-11-20T09:25:45.878+08:00 Using metadata purge interval of 3.00 days for tombstone compaction.
2018-11-20T09:25:45.879+08:00 Reset guest user to config
2018-11-20T09:25:45.879+08:00 Starting admin server on 0.0.0.0:4985
2018-11-20T09:25:45.884+08:00 Starting server on 0.0.0.0:4984 …
_time=2018-11-20T09:25:45.889+08:00 _level=INFO _msg=Using plain authentication for user kitchen
2018-11-20T09:25:45.952+08:00 DCP: Backfill in progress: 0% (57 / 261159)
2018-11-20T09:25:45.957+08:00 Cache: Received #16946 (unused sequence)
2018-11-20T09:25:45.959+08:00 Cache: Received #24684 (unused sequence)
2018-11-20T09:25:45.960+08:00 Cache: Received #13000 (unused sequence)
2018-11-20T09:25:45.960+08:00 Cache: Received #23699 (unused sequence)
2018-11-20T09:25:45.960+08:00 Cache: Received #16518 (unused sequence)
2018-11-20T09:25:45.961+08:00 Cache: Received #16917 (unused sequence)
2018-11-20T09:25:45.961+08:00 Changes+: Notifying that “kitchen” changed (keys="{_sync:user:}") count=2
2018-11-20T09:25:45.961+08:00 Changes+: Notifying that “kitchen” changed (keys="{_sync:user:qiao}") count=3
2018-11-20T09:25:45.961+08:00 Cache: Received #23380 (unused sequence)
2018-11-20T09:25:45.961+08:00 Cache: Received #23709 (unused sequence)
2018-11-20T09:25:45.962+08:00 Cache: Received #24272 (unused sequence)
2018-11-20T09:25:45.962+08:00 Cache: Received #23697 (unused sequence)
2018-11-20T09:25:45.966+08:00 Cache: Received #22281 (unused sequence)
2018-11-20T09:25:45.967+08:00 Import+: Attempting to import doc “LkVqvuU4ylQW0PRrSg0cMHYv0qHJbo6GzgmTPDDlBe0Ngx7MjCnVVRS4WS2s7I7ifsanZtV8IICDiXazAVpmKrHIdN4hXkZOeTBdvMgDCX
YS3sgy3gCKAqt2Vvf3YI9ukQLYjrxEFPFn9gTDKvrQD4ysCTnR8mc6b1cw5U1K”…2018-11-20T09:25:45.991+08:00 CRUD+: Doc LkVqvuU4ylQW0PRrSg0cMHYv0qHJbo6GzgmTPDDlBe0Ngx7MjCnVVRS4WS2s7I7ifsanZtV8IICDiXazAVpmKrHIdN4hXkZOeTBdvMgDCXYS3sgy3gCKAqt2Vvf3YI9ukQ
LYjrxEFPFn9gTDKvrQD4ysCTnR8mc6b1cw5U1K is not an SG write, based on cas. cas:1568b0afedb20000 syncCas:""2018-11-20T09:25:45.991+08:00 Import: Created new rev ID 1-ca9ad22802b66f662ff171f226211d5c
panic: assignment to entry in nil map

goroutine 55 [running]:
github.com/couchbase/sync_gateway/db.(*Database).importDoc.func1(0xc420602000, 0xa, 0x6ca, 0x411faf, 0xc420188908, 0xc420068800)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:187 +0x31f
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func1(0xc420602000, 0x101, 0xc4202b16b7, 0x4, 0x4, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:809 +0xf0
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func3(0xc4202b16b7, 0x4, 0x4, 0x0, 0x0, 0x0, 0x1568b0afedb20000, 0x7f50b3838001, 0x0, 0x0, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1073 +0x138
github.com/couchbase/sync_gateway/base.CouchbaseBucketGoCB.WriteUpdateWithXattr(0xc4202821b0, 0xc42015de80, 0x15, 0xc9533b, 0x7, 0xc4201f4191, 0x7, 0x0, 0x0, 0x10d3c40, …
.) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/base/bucket_gocb.go:1548 +0x174
github.com/couchbase/sync_gateway/base.(*CouchbaseBucketGoCB).WriteUpdateWithXattr(0xc42026e640, 0xc42040c2c0, 0xa8, 0xc92cb3, 0x5, 0x5bf37eb5, 0xc42013a180, 0xc420214060,
0x2, 0xc420168b00, …) :472 +0xef
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc(0xc42027bee0, 0xc42040c2c0, 0xa8, 0x5bf37eb500000001, 0xc42013a180, 0xc42027c140, 0x1, 0xc420272680, 0x
ccae68, 0xc42026b480, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1090 +0x523
github.com/couchbase/sync_gateway/db.(*Database).importDoc(0xc42027bee0, 0xc42040c2c0, 0xa8, 0x0, 0x0, 0xc42013a180, 0xc42001c500, 0x7f50b3838580, 0xf7, 0xf7)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:196 +0x2ef
github.com/couchbase/sync_gateway/db.(*Database).ImportDocRaw(0xc42027bee0, 0xc42040c2c0, 0xa8, 0xc4202b16b7, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/import.go:51 +0x27f
github.com/couchbase/sync_gateway/db.(*changeCache).DocChangedSynchronous(0xc4201625a0, 0x2, 0x5bf37eb5, 0xc4202b160f, 0xa8, 0xac, 0xc4202b16b7, 0x4, 0x4, 0x1568b0afedb200
00, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:416 +0x1273
github.com/couchbase/sync_gateway/db.(*changeCache).DocChanged(0xc4201625a0, 0x2, 0x5bf37eb5, 0xc4202b160f, 0xa8, 0xac, 0xc4202b16b7, 0x4, 0x4, 0x1568b0afedb20000, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:348 +0x61
github.com/couchbase/sync_gateway/db.(ChangeIndex).DocChanged-fm(0x2, 0x5bf37eb5, 0xc4202b160f, 0xa8, 0xac, 0xc4202b16b7, 0x4, 0x4, 0x1568b0afedb20000, 0x10000, …)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/database.go:236 +0x4c
github.com/couchbase/sync_gateway/db.(*changeListener).ProcessFeedEvent(0xc4203c60b0, 0x2, 0x5bf37eb5, 0xc4202b160f, 0xa8, 0xac, 0xc4202b16b7, 0x4, 0x4, 0x1568b0afedb20000
, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:118 +0x29d
github.com/couchbase/sync_gateway/db.(*changeListener).ProcessFeedEvent-fm(0x2, 0x5bf37eb5, 0xc4202b160f, 0xa8, 0xac, 0xc4202b16b7, 0x4, 0x4, 0x1568b0afedb20000, 0x10000,
…) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:92 +0x4a
github.com/couchbase/sync_gateway/base.(*DCPReceiver).DataUpdate(0xc42016bb00, 0x18f, 0xc4202b160f, 0xa8, 0xac, 0x2b, 0xc4201ea900, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/sync_gateway/base/dcp_feed.go:157 +0x1b7
github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).worker.func5(0xc42039e5a0, 0xc420090000, 0xc4201f5780, 0xf, 0xc420018a40, 0x3a, 0xc42036e4e0, 0xc4204821
78, 0xc42036e8a0, 0xc42039e420, …) /home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1168 +0x729
created by github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).worker
/home/couchbase/jenkins/workspace/sgw-unix-build@2/2.0.0/community/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1220 +0x77a

help me.how can I resolve it?

Best Regards


#2

Hi,

You’re probably hitting this issue: https://github.com/couchbase/sync_gateway/issues/3774
This has been fixed in master, but has not yet made its way into a release. The next version of Sync Gateway will include the fix.

For now as a workaround, you should find any documents in Couchbase Server with a ‘null’ body and remove them from the bucket.

If you have N1QL, you can find null documents in a bucket like so:

SELECT meta().id from `sg-bucket` WHERE `sg-bucket` IS NULL;

#3

thanks for you reply.