Skip to content

Instantly share code, notes, and snippets.

View sridevi-15's full-sized avatar

Sridevi sridevi-15

View GitHub Profile
@sridevi-15
sridevi-15 / gist:c113ff8f622318062dbafd16babe83ab
Created July 25, 2019 21:35
tmp trace network error bulk get
This file has been truncated, but you can view the full file.
2019-07-24T19:36:42.942Z [TRC] gocb: Writing request. 192.168.33.11:51138 to 192.168.33.10:11207 OP=0xb5. Opaque=77
2019-07-24T19:36:42.943Z [TRC] gocb: Resolving response OP=0xb5. Opaque=77
2019-07-24T19:36:42.943Z [TRC] gocb: Dispatching response callback. OP=0xb5. Opaque=77
2019-07-24T19:36:42.944Z [TRC] gocb: CCCPPOLL: Received new config
2019-07-24T19:36:42.944Z [TRC] gocb: Ignoring configuration with identical revision number
2019-07-24T19:36:45.444Z [TRC] gocb: Writing request. 192.168.33.11:51138 to 192.168.33.10:11207 OP=0xb5. Opaque=78
2019-07-24T19:36:45.444Z [TRC] gocb: Resolving response OP=0xb5. Opaque=78
2019-07-24T19:36:45.444Z [TRC] gocb: Dispatching response callback. OP=0xb5. Opaque=78
2019-07-24T19:36:45.445Z [TRC] gocb: CCCPPOLL: Received new config
2019-07-24T19:36:45.445Z [TRC] gocb: Ignoring configuration with identical revision number
2019-07-24T19:34:26.025Z [INF] HTTP: #020: POST /db/_user/ (as ADMIN)
2019-07-24T19:34:26.152Z [INF] Access: Computed channels for "seth": !:1
2019-07-24T19:34:26.208Z [INF] Access: Computed roles for "seth":
2019-07-24T19:34:26.286Z [INF] Auth: Saved _sync:user:seth: &{roleImpl:{Name_:seth ExplicitChannels_:shared_channel_0:30,shared_channel_100:30,shared_channel_101:30,shared_channel_102:30,shared_channel_103:30,shared_channel_104:30,shared_channel_105:30,shared_channel_106:30,shared_channel_107:30,shared_channel_108:30,shared_channel_109:30,shared_channel_10:30,shared_channel_110:30,shared_channel_111:30,shared_channel_112:30,shared_channel_113:30,shared_channel_114:30,shared_channel_115:30,shared_channel_116:30,shared_channel_117:30,shared_channel_118:30,shared_channel_119:30,shared_channel_11:30,shared_channel_120:30,shared_channel_121:30,shared_channel_122:30,shared_channel_123:30,shared_channel_124:30,shared_channel_125:30,shared_channel_126:30,shared_channel_127:30,shared_channel_128:30,shared_chann
@sridevi-15
sridevi-15 / bulk500errorgist
Created July 24, 2019 20:34
bulk500errorgist
PLAY [sync_gateways] ***********************************************************
TASK [setup] *******************************************************************
ok: [sg1]
TASK [SYNC GATEWAY | Copy sync gateway config to host] *************************
changed: [sg1]
TASK [Deleting /home/sync_gateway/certs directory] *****************************
skipping: [sg1]
@sridevi-15
sridevi-15 / gocb sgw logs
Created July 24, 2019 19:04
gocb sgw logs
2019-07-24T06:51:47.241Z ==== Couchbase Sync Gateway/2.6.0(117;76ada2b) EE ====
2019-07-24T06:51:47.242Z [INF] Logging: Console to /tmp/sg_trace.log
2019-07-24T06:51:47.242Z [INF] Logging: Files to /home/sync_gateway/logs
2019-07-24T06:51:47.242Z [WRN] Using deprecated config value for "import_docs": "continuous". Use "import_docs": true instead. -- rest.(*DbConfig).AutoImportEnabled() at config.go:426
2019-07-24T06:51:47.242Z [INF] Logging: Console level: trace
2019-07-24T06:51:47.242Z [INF] Logging: Console keys: [* gocb HTTP]
2019-07-24T06:51:47.242Z [INF] Logging: Redaction level: none
2019-07-24T06:51:47.242Z [INF] requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2019-07-24T06:51:47.242Z [INF] Configured process to allow 65535 open file descriptors
2019-07-24T06:51:47.242Z [INF] Logging stats with frequency: 1m0s
@sridevi-15
sridevi-15 / sg_trace
Created July 19, 2019 22:08
sg_trace
2019-07-19T21:45:56.770Z ==== Couchbase Sync Gateway/2.6.0(117;76ada2b) EE ====
2019-07-19T21:45:56.770Z [INF] Logging: Console to /tmp/sg_trace.log
2019-07-19T21:45:56.770Z [INF] Logging: Files to /home/sync_gateway/logs
2019-07-19T21:45:56.770Z [WRN] Using deprecated config value for "import_docs": "continuous". Use "import_docs": true instead. -- rest.(*DbConfig).AutoImportEnabled() at config.go:426
2019-07-19T21:45:56.770Z [INF] Logging: Console level: trace
2019-07-19T21:45:56.770Z [INF] Logging: Console keys: [* gocb HTTP]
2019-07-19T21:45:56.770Z [INF] Logging: Redaction level: none
2019-07-19T21:45:56.770Z [INF] requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2019-07-19T21:45:56.770Z [INF] Configured process to allow 65535 open file descriptors
2019-07-19T21:45:56.770Z [INF] Logging stats with frequency: 1m0s
@sridevi-15
sridevi-15 / gist:74a26cea82944280d54d3516074bdeb2
Last active June 10, 2019 21:54
sg config for invalid config cobalt
{
"interface": ":4984",
"logging": {
"info": {
"rotation": {
"max_age": 30,
"max_size": 1,
"localtime": true
},
"enabled": true
{'origin': 'Server', 'status': 'Picking', 'purchasedetails': [{'item': {'origin': 'Server', 'code': '2800000145453/017', 'suffix': 'ATT', 'namenl': 'JUWELENHOUDER GOUDEN MANNEQUIN', 'barcodediscount': '1083685', 'barcodes': [{'barcode': '1637295', 'key': '1083685'}, {'barcode': '4927811', 'key': '2800000145453'}], 'information': None, 'statistics': None, 'minimumsellingqty': 7497645769195622502, 'namefr': 'PORTE BIJOUX MANNEQUIN OR', 'vat': 21, 'stock': [{'controller': 'lijn', 'stockdatum': '0001-01-01T00: 00: 00', 'artId': None, 'key': None, 'tijdstipstart': '0001-01-01T00: 00: 00', 'quantity': 8344493146427244561, 'db': 'stock', 'stockcreatedby': None, 'store': 'AUV', 'location': ''}], 'status': True, 'db': 'item', 'sellingunit': 'ST', 'preferedsupplier': {'info': None, 'origin': 'Server', 'fax': None, 'code': '017', 'tel': None, 'name': 'DISTRILOGISTIQUE', 'zipcode': None, 'db': 'supplier', 'manager': None, 'representatives': None, 'website': None, 'town': None, 'controller': '', 'key': 'd8ef8025-e1fe-4f2c
This file has been truncated, but you can view the full file.
8] 2019-5-13 05:36:34.683-04:00 Sync 2019-05-13T17:36:34.6838800-04:00 {DBWorker#8} activityLevel=busy: pendingResponseCount=0, eventCount=3
[CouchbaseLite] [18] 2019-5-13 05:36:34.683-04:00 Sync 2019-05-13T17:36:34.6839520-04:00 {DBWorker#8} Sending revision 'Replication2_447' #6-48d85a2985d0e29be677e5826d5fb56e16e0e9cf
[CouchbaseLite] [18] 2019-5-13 05:36:34.684-04:00 Sync 2019-05-13T17:36:34.6840300-04:00 {DBWorker#8} Revision 'Replication2_447' #6-48d85a2985d0e29be677e5826d5fb56e16e0e9cf is obsolete; not sending it
[CouchbaseLite] [18] 2019-5-13 05:36:34.684-04:00 Sync 2019-05-13T17:36:34.6842910-04:00 {DBWorker#8} activityLevel=busy: pendingResponseCount=0, eventCount=3
[CouchbaseLite] [18] 2019-5-13 05:36:34.684-04:00 Sync 2019-05-13T17:36:34.6843430-04:00 {DBWorker#8} Sending revision 'Replication2_521' #6-b88704b3e3ae07176eb90f49112b411100825400
[CouchbaseLite] [18] 2019-5-13 05:36:34.684-04:00 Sync 2019-05-13T17:36:34.6844050-04:00 {DBWorker#8} Revision 'Replication2_521' #6-b88704b3e3ae07176eb90f491
04-12 13:24:55.078 11505-12023/com.couchbase.TestServerApp I/System.out: dictionary in getPredictionQueryresult is {address=yIQsubrUMJHSxhngKvZrYJKvMdITIj, picture=YfdGDLzNCi, guid=2b246231-2949-4d85-9937-e77efc547ae3, longitude=-6.36636919152E13, date_time_added=2019-04-15 16:00:58.134609, email=JRBHbNPncCjaTjKUtdzL, phone=VJGaPLzioQ, company=gpLbKHKGsa, range=[831016025787393931], updates=0, balance=$3,175.30, age=8371593866803815506, eyeColor=dboEbpRoVl, registered=oCaFesoDgmWKmgsMmRAK, latitude=-2.48426657592E13, name={first=oKBeAoTXse, last=pogrFQqCkA}, index=0, about=GTnlZzBBMQfryRuvhBzawhZBsqzzbKzDmMxPVFqiGGgigoueBP, isActive=true, tags=[yVPRSwREBQ, sUmRUZKLkU, BOhhqbGDZK], friends=[{name=XvoliXOefN, id=6957560042561246648}, {name=nCcYPHJgia, id=6304011186520396865}]}
04-12 13:24:55.079 11505-12023/com.couchbase.TestServerApp I/System.out: prediction in getPredictionQueryresult is PredictionFunction[json=[PREDICTION(), EchoModel, {address=yIQsubrUMJHSxhngKvZrYJKvMdITIj, picture=YfdGDLzNCi, longitude=-6
@sridevi-15
sridevi-15 / gist:9da4bf28043c1d2bafc43f5bd6d1108f
Created April 11, 2019 05:41
sgw config for network errors
{
"interface":":4984",
"adminInterface": "0.0.0.0:4985",
"maxIncomingConnections": 0,
"maxCouchbaseConnections": 16,
"maxFileDescriptors": 90000,
"slowServerCallWarningThreshold": 500,
"compressResponses": false,