Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ArihantRk's full-sized avatar

Arihant ArihantRk

  • Kodiak
  • Bengaluru
View GitHub Profile
@ArihantRk
ArihantRk / SyncGw 1 logs
Created March 30, 2019 19:14
SyncGateway assigning lower seq number
This file has been truncated, but you can view the full file.
2019-03-30T08:34:52.482Z HTTP: #153546: PUT /ptxdata/s447390021046_Location.doc?rev=6434-1908d49e1634cb7e94b87e9a68e19ef2 (ADMIN)
2019-03-30T08:34:52.487Z HTTP+: #153546: --> 201 (4.8 ms)
2019-03-30T08:34:52.491Z HTTP: #153547: GET /ptxdata/s447390021046_LocatedGroupsMap.doc (ADMIN)
2019-03-30T08:34:52.492Z HTTP+: #153547: --> 200 (1.2 ms)
2019-03-30T08:34:52.494Z HTTP: #153548: GET /
2019-03-30T08:34:52.494Z HTTP+: #153548: --> 200 (0.1 ms)
2019-03-30T08:34:52.495Z HTTP: #153549: GET /ptxdata/ (ADMIN)
2019-03-30T08:34:52.496Z HTTP+: #153549: --> 200 (1.0 ms)
2019-03-30T08:34:55.274Z HTTP: #153550: GET /
2019-03-30T08:34:55.275Z HTTP+: #153550: --> 200 (0.1 ms)
Insert Request
curl -XPUT -H -"Content-Type: application/json" -u ftsadmin:ftspassword \
> http://10.2.1.192:8094/api/index/fts-index -d \
> '{
> "type": "fulltext-index",
> "name": "fts-index",
> "sourceType": "couchbase",
> "sourceName": "ptxdata",
> "planParams": {
This file has been truncated, but you can view the full file.
11:00:10.278991 2017-06-13T11:00:10.278+05:30 DCP: DataDelete called with vbucket: 20. key: _sync:rev:cg60_LocationGroup.doc:34:2-b50af305bc85c771cdf8b7ea583b7673
11:00:10.279116 2017-06-13T11:00:10.279+05:30 IndexEntries: Updating stable sequence with map[]
11:00:10.699640 2017-06-13T11:00:10.699+05:30 HTTP: #5241: GET /ptxdata/ (ADMIN)
11:00:10.701438 2017-06-13T11:00:10.701+05:30 HTTP+: #5241: --> 200 (1.8 ms)
11:00:10.703945 2017-06-13T11:00:10.703+05:30 DCP: DataUpdate for pindex 0xc4201182c0 called with vbucket: 520. key: _sync:seq seq: 295086
11:00:10.704033 2017-06-13T11:00:10.704+05:30 IndexEntries: Updating stable sequence with map[]
11:00:10.717290 2017-06-13T11:00:10.717+05:30 HTTP: #5242: GET /ptxdata/ (ADMIN)
11:00:10.719403 2017-06-13T11:00:10.719+05:30 HTTP+: #5242: --> 200 (2.1 ms)
11:00:10.719685 2017-06-13T11:00:10.719+05:30 DCP: DataUpdate for pindex 0xc4201182c0 called with vbucket: 520. key: _sync:seq seq: 295087
11:00:10.719756 2017-06-13T11:00:10.719+05:30 IndexEntri
This file has been truncated, but you can view the full file.
15:48:02.379710 2016-09-14T15:48:02.379+05:30 ==== Couchbase Sync Gateway/1.3.0(274;8c3ee28) ====
15:48:02.379725 2016-09-14T15:48:02.379+05:30 requestedSoftFDLimit < currentSoftFdLimit (5000 < 1048576) no action needed
15:48:02.379761 2016-09-14T15:48:02.379+05:30 Opening db /pttdata as bucket "pttdata", pool "default", server <http://prod-C1-CBS-V1.service.kodiakptt.com:8091>
15:48:02.379828 2016-09-14T15:48:02.379+05:30 Opening Couchbase database pttdata on <http://prod-C1-CBS-V1.service.kodiakptt.com:8091>
15:48:02.380212 2016-09-14T15:48:02.380+05:30 Replicate: Starting replication with parameters {ReplicationId:rep2-1 Source:http://10.2.0.205:4985 SourceDb:pttdata Channels:[] Target:http://10.2.0.185:4985 TargetDb:pttdata ChangesFeedLimit:0 Lifecycle:1 Disabled:false Async:true}
15:48:02.380306 2016-09-14T15:48:02.380+05:30 Replicate: Started continuous replication: &{{{rep2-1 http://10.2.0.205:4985 pttdata [] http://10.2.0.185:4985 pttdata 0 1 false true}} {{0 0} 0 0 0 0 <nil>} 0xc8201fa0c0 0xc8201fa12
@ArihantRk
ArihantRk / sg-replicate.log
Last active September 13, 2016 05:53
sg-replicate-issue.log
2016/09/13 10:22:09 Replicate: [rep2-1] Unexpected notification, ignore
2016/09/13 10:22:09 Replicate: [rep2-1] stateFnCatchingUp, waiting for event
2016/09/13 10:22:09 Replicate: sequenceNumberToString called with: 87 type: string
2016/09/13 10:22:09 Replicate: sequence is a string
2016/09/13 10:22:09 Replicate: sequenceNumberToString called with: 87 type: string
2016/09/13 10:22:09 Replicate: sequence is a string
2016/09/13 10:22:09 Replicate: [rep2-1] changes feed resp: &{200 OK 200 HTTP/1.1 1 1 map[Server:[Couchbase Sync Gateway/1.3.0] Date:[Tue, 13 Sep 2016 04:52:09 GMT] Cache-Control:[private, max-age=0, no-cache, no-store] Content-Type:[application/json]] 0xc82012ac00 -1 [] false map[] 0xc820488a80 <nil>}, err: <nil>
2016/09/13 10:22:09 Replicate: [rep2-1] event: &{FETCH_CHANGES_FEED_SUCCEEDED {[{88 121 [{1-71e4712f0f49e127a6ae64a4ae696b57}] false}] 88}}
2016/09/13 10:22:09 Replicate: [rep2-1] stateFnActiveFetchChangesFeed
This file has been truncated, but you can view the full file.
11:30:36.508593 2016-08-31T11:30:36.508+05:30 HTTP: #001: PUT /ptxdata/9139969 (ADMIN)
11:30:36.508634 2016-08-31T11:30:36.508+05:30 HTTP: #006: PUT /ptxdata/9183259 (ADMIN)
11:30:36.508664 2016-08-31T11:30:36.508+05:30 HTTP: #003: PUT /ptxdata/9177265 (ADMIN)
11:30:36.508756 2016-08-31T11:30:36.508+05:30 HTTP: #007: PUT /ptxdata/9123319 (ADMIN)
11:30:36.508843 2016-08-31T11:30:36.508+05:30 HTTP: #012: PUT /ptxdata/9133975 (ADMIN)
11:30:36.508760 2016-08-31T11:30:36.508+05:30 HTTP: #008: PUT /ptxdata/9156619 (ADMIN)
11:30:36.508847 2016-08-31T11:30:36.508+05:30 HTTP: #011: PUT /ptxdata/9169939 (ADMIN)
11:30:36.508941 2016-08-31T11:30:36.508+05:30 HTTP: #004: PUT /ptxdata/9151291 (ADMIN)
11:30:36.509047 2016-08-31T11:30:36.508+05:30 HTTP: #013: PUT /ptxdata/9171271 (ADMIN)
18:00:25.003914 2016-08-25T18:00:25.003+05:30 Cache+: Pruned 39 old entries from channel "co_32_cg1_loc-CH"
18:00:27.506876 2016-08-25T18:00:27.506+05:30 Cache+: Pruned 6 old entries from channel "co_3_cg1_loc-CH"
18:00:27.507686 2016-08-25T18:00:27.507+05:30 Cache+: Pruned 39 old entries from channel "co_33_cg1_loc-CH"
18:00:27.507868 2016-08-25T18:00:27.507+05:30 Cache+: Pruned 11 old entries from channel "co_32_cg1_loc-CH"
18:00:30.010017 2016-08-25T18:00:30.009+05:30 Cache+: Pruned 11 old entries from channel "co_33_cg1_loc-CH"
18:00:30.011867 2016-08-25T18:00:30.011+05:30 Cache+: Pruned 30 old entries from channel "co_34_cg1_loc-CH"
18:00:30.011985 2016-08-25T18:00:30.011+05:30 Cache+: Pruned 7 old entries from channel "co_3_cg1_loc-CH"
18:00:31.058608 2016-08-25T18:00:31.058+05:30 HTTP: #119796: GET /
18:00:31.058703 2016-08-25T18:00:31.058+05:30 HTTP+: #119796: --> 200 (0.1 ms)
18:00:31.215691 2016-08-25T18:00:31.215+05:30 HTTP: #119797: GET /pttdata/ (ADMIN)
2016/08/18 18:58:48 go-couchbase: call to Do("s1000002327_Location.doc") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 323.950203ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000003468") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 323.118378ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000004089") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 333.624723ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000003141") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 323.285232ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000002828") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 377.082992ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000003032") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 334.26951ms
2016/08/18 18:58:48 go-couchbase: call to Do("_sync:user:1000002394") in github.com/couchbase/go-couchbase.(*Bucket).casNext took 383.805058ms
2016/08/18 18:58:48 g
"server": "http://cbsnode:8091",
"bucket": "ptxdata",
"revs_limit": 5,
"sync": 'function(doc, oldDoc) {
/* Generic document Validations */
/* Rules: [1] */
if ((!doc._deleted) && ((!doc.type) || (!doc.ver))) {
throw ({
forbidden: "missing mandatory attributes 'type' or 'ver'."
@ArihantRk
ArihantRk / sync_gw_seq.log
Last active June 2, 2016 05:05
sync_gateway inserting doc without sequence number
07:41:15.936673 2016-06-01T07:41:15.936-05:00 CRUD: Doc "635" in channels "{PTXServer, blackberry}"
07:41:15.937235 2016-06-01T07:41:15.937-05:00 CRUD: Stored doc "635" / "1-bcfd7008c7aeeac453d6a6a022797248"
07:41:15.938838 2016-06-01T07:41:15.938-05:00 WARNING: Error attempting to post to url http://prod-C1-AMS-V1.service.kodiakptt.com:8080/kodiakams/changesFeed/PTX: Post http://prod-C1-AMS-V1.service.kodiakptt.com:8080/kodiakams/changesFeed/PTX: dial tcp: lookup prod-C1-AMS-V1.service.kodiakptt.com on 10.2.0.125:53: no such host -- %!v(MISSING) -- db.(*Webhook).HandleEvent.func1() at event_handler.go:127
07:41:17.278721 2016-06-01T07:41:17.278-05:00 HTTP: #1795: PUT /ptxdata/611 (ADMIN)
07:41:17.279973 2016-06-01T07:41:17.279-05:00 HTTP: #1795: --> 409 Not imported (1.3 ms)
07:41:17.444529 2016-06-01T07:41:17.444-05:00 HTTP: #1796: PUT /ptxdata/636 (ADMIN)
07:41:17.446306 2016-06-01T07:41:17.446-05:00 CRUD: Doc "636" in channels "{PTXServer, blackberry}"
07:41:17.447177 2016-06-01T07:41:17.447-05