Skip to content

Instantly share code, notes, and snippets.

@raghusarangapani
Last active June 29, 2017 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raghusarangapani/1299886e5ab6ecd6a3b6bd281bbd383d to your computer and use it in GitHub Desktop.
Save raghusarangapani/1299886e5ab6ecd6a3b6bd281bbd383d to your computer and use it in GitHub Desktop.
SG packet capture 8092 port
interface: eth1 (192.168.33.0/255.255.255.0)
filter: ( port 8092 ) and ((ip || ip6) || (vlan && (ip || ip6)))
#################
T 192.168.33.22:34860 -> 192.168.33.21:8092 [AP]
DELETE /data-bucket/_design/sync_gateway HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34860 [AP]
HTTP/1.1 404 Object Not Found.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:43 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 41.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34860 [AP]
{"error":"not_found","reason":"missing"}
#####
T 192.168.33.22:59728 -> 192.168.33.25:8092 [AP]
PUT /data-bucket/_design/sync_housekeeping HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 1963.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"all_bits":{"map":"function (doc, meta) {\n emit(meta.id, null); }"},"all_docs":{"map":"function (doc, meta) {\n var sync = doc._sync;\n if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n return;\n if ((sync.flags \u0026 1) || sync.deleted)\n return;\n var channels = sync.channels;\n var channelNames = [];\n for (ch in channels) {\n \tif (channels[ch] == null)\n \t\tchannelNames.push(ch);\n }\n emit(meta.id, {r:sync.rev, s:sync.sequence, c:channelNames}); }"},"import":{"map":"function (doc, meta) {\n\t\t\t\t\t var sync = doc._sync;\n if(meta.id.substring(0,6) != \"_sync:\") {\n var exists = (sync !== undefined);\n emit([exists, meta.id], null); } }"},"old_revs":{"map":"function (doc, meta) {\n if (meta.id.substring(0,10) == \"_sync:rev:\")\n\t emit(\"\",null); }"},"principals":{"map":"function (doc, meta) {\n\t\t\t\t\t\t\t var prefix = meta.id.substring(0,11);\n\t\t\t\t\t\t\t var isUser = (prefix == \"_sync:user:\");\n\t\t\t\t\t\t\t if (isUser || prefix == \"_sync:role:\")\n\t\t\t emit(meta.id.substring(11), isUser); }"},"sessions":{"map":"function (doc, meta) {\n \tvar prefix = meta.id.substring(0,14);\n \tif (prefix == \"_sync:session:\")\n \t\temit(doc.username, meta.id);}"},"tombstones":{"map":"function (doc, meta) {\n \tvar sync = meta.xattrs._sync;\n \tif (sync !== undefined \u0026\u0026 sync.tombstoned_at !== undefined)\n \t\temit(sync.tombstoned_at, meta.id);}"}},"index_xattr_on_deleted_docs":true}
##
T 192.168.33.25:8092 -> 192.168.33.22:59728 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.25:8092/data-bucket/_design/sync_housekeeping.
Date: Thu, 29 Jun 2017 21:12:43 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 45.
Cache-Control: must-revalidate.
.
###
T 192.168.33.25:8092 -> 192.168.33.22:59728 [AP]
{"ok":true,"id":"_design/sync_housekeeping"}
####
T 192.168.33.22:59730 -> 192.168.33.25:8092 [AP]
PUT /data-bucket/_design/sync_gateway_channels HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 1255.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"channels":{"map":"function (doc, meta) {\n\t var sync = doc._sync;\n\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t return;\n\t\t\t\t\t\tvar sequence = sync.sequence;\n\t if (sequence === undefined)\n\t return;\n\t var value = {rev:sync.rev};\n\t if (sync.flags) {\n\t \tvalue.flags = sync.flags\n\t } else if (sync.deleted) {\n\t \tvalue.flags = 1 // channels.Deleted\n\t }\n\t if (true) // EnableStarChannelLog\n\t\t\t\t\t\t\temit([\"*\", sequence], value);\n\t\t\t\t\t\tvar channels = sync.channels;\n\t\t\t\t\t\tif (channels) {\n\t\t\t\t\t\t\tfor (var name in channels) {\n\t\t\t\t\t\t\t\tremoved = channels[name];\n\t\t\t\t\t\t\t\tif (!removed)\n\t\t\t\t\t\t\t\t\temit([name, sequence], value);\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tvar flags = removed.del ? 3 : 2; // channels.Removed/Deleted\n\t\t\t\t\t\t\t\t\temit([name, removed.seq], {rev:removed.rev, flags: flags});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}"}},"index_xattr_on_deleted_docs":true}
##
T 192.168.33.25:8092 -> 192.168.33.22:59730 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.25:8092/data-bucket/_design/sync_gateway_channels.
Date: Thu, 29 Jun 2017 21:12:43 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 49.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59730 [AP]
{"ok":true,"id":"_design/sync_gateway_channels"}
##
T 192.168.33.22:34860 -> 192.168.33.21:8092 [AP]
PUT /data-bucket/_design/sync_gateway_access HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 491.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"access":{"map":"function (doc, meta) {\n\t var sync = doc._sync;\n\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t return;\n\t var access = sync.access;\n\t if (access) {\n\t for (var name in access) {\n\t emit(name, access[name]);\n\t }\n\t }\n\t }"}}}
##
T 192.168.33.21:8092 -> 192.168.33.22:34860 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.21:8092/data-bucket/_design/sync_gateway_access.
Date: Thu, 29 Jun 2017 21:12:43 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 47.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34860 [AP]
{"ok":true,"id":"_design/sync_gateway_access"}
#####
T 192.168.33.22:44430 -> 192.168.33.24:8092 [AP]
PUT /data-bucket/_design/sync_gateway_access_vbseq HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 1057.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"access_vbseq":{"map":"function (doc, meta) {\n\t\t var sync = doc._sync;\n\t\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t\t return;\n\t\t var access = sync.access;\n\t\t if (access) {\n\t\t for (var name in access) {\n\t\t \t// Build a timed set based on vb and vbseq of this revision\n\t\t \tvar value = {};\n\t\t \tfor (var channel in access[name]) {\n\t\t \t\tvar timedSetWithVbucket = {};\n\t\t\t\t timedSetWithVbucket[\"vb\"] = parseInt(meta.vb, 10);\n\t\t\t\t timedSetWithVbucket[\"seq\"] = parseInt(meta.seq, 10);\n\t\t\t\t value[channel] = timedSetWithVbucket;\n\t\t\t }\n\t\t emit(name, value)\n\t\t }\n\n\t\t }\n\t\t }"}}}
##
T 192.168.33.24:8092 -> 192.168.33.22:44430 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.24:8092/data-bucket/_design/sync_gateway_access_vbseq.
Date: Thu, 29 Jun 2017 21:12:43 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 53.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44430 [AP]
{"ok":true,"id":"_design/sync_gateway_access_vbseq"}
#####
T 192.168.33.22:44432 -> 192.168.33.24:8092 [AP]
PUT /data-bucket/_design/sync_gateway_role_access HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 501.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"role_access":{"map":"function (doc, meta) {\n\t var sync = doc._sync;\n\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t return;\n\t var access = sync.role_access;\n\t if (access) {\n\t for (var name in access) {\n\t emit(name, access[name]);\n\t }\n\t }\n\t }"}}}
##
T 192.168.33.24:8092 -> 192.168.33.22:44432 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.24:8092/data-bucket/_design/sync_gateway_role_access.
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 52.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44432 [AP]
{"ok":true,"id":"_design/sync_gateway_role_access"}
#####
T 192.168.33.22:44434 -> 192.168.33.24:8092 [AP]
PUT /data-bucket/_design/sync_gateway_role_access_vbseq HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 1061.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"role_access_vbseq":{"map":"function (doc, meta) {\n\t\t var sync = doc._sync;\n\t\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t\t return;\n\t\t var access = sync.role_access;\n\t\t if (access) {\n\t\t for (var name in access) {\n\t\t \t// Build a timed set based on vb and vbseq of this revision\n\t\t \tvar value = {};\n\t\t \tfor (var role in access[name]) {\n\t\t \t\tvar timedSetWithVbucket = {};\n\t\t\t\t timedSetWithVbucket[\"vb\"] = parseInt(meta.vb, 10);\n\t\t\t\t timedSetWithVbucket[\"seq\"] = parseInt(meta.seq, 10);\n\t\t\t\t value[role] = timedSetWithVbucket;\n\t\t\t }\n\t\t emit(name, value)\n\t\t }\n\n\t\t }\n\t\t }"}}}
##
T 192.168.33.24:8092 -> 192.168.33.22:44434 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.24:8092/data-bucket/_design/sync_gateway_role_access_vbseq.
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 58.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44434 [AP]
{"ok":true,"id":"_design/sync_gateway_role_access_vbseq"}
#####
T 192.168.33.22:44438 -> 192.168.33.24:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22role%3AScientist%22&stale=false HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44438 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44438 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.24:8092 -> 192.168.33.22:44438 [AP]
1.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44438 [AP]
0.
.
######
T 192.168.33.22:34890 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22role%3AResearcher%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
0.
.
#####
T 192.168.33.22:59752 -> 192.168.33.25:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22seth%22&stale=false HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
1.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
0.
.
##
T 192.168.33.22:34890 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_role_access/_view/role_access?key=%22seth%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
0.
.
#####
T 192.168.33.22:44450 -> 192.168.33.24:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22raghu%22&stale=false HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44450 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44450 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.24:8092 -> 192.168.33.22:44450 [AP]
1.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44450 [AP]
0.
.
##
T 192.168.33.22:34890 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_role_access/_view/role_access?key=%22raghu%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
###
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:44 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34890 [AP]
0.
.
######
T 192.168.33.22:34898 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_housekeeping/_view/principals?stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34898 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34898 [AP]
10b.
{"total_rows":4,"rows":[.
{"id":"_sync:user:raghu","key":"raghu","value":true},.
{"id":"_sync:role:Researcher","key":"Researcher","value":false},.
{"id":"_sync:role:Scientist","key":"Scientist","value":false},.
{"id":"_sync:user:seth","key":"seth","value":true}.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34898 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34898 [AP]
0.
.
###
T 192.168.33.22:59752 -> 192.168.33.25:8092 [AP]
GET /data-bucket/_design/sync_housekeeping/_view/principals?stale=false HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
10b.
{"total_rows":4,"rows":[.
{"id":"_sync:user:raghu","key":"raghu","value":true},.
{"id":"_sync:role:Researcher","key":"Researcher","value":false},.
{"id":"_sync:role:Scientist","key":"Scientist","value":false},.
{"id":"_sync:user:seth","key":"seth","value":true}.
].
}.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
1.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59752 [AP]
0.
.
######
T 192.168.33.22:59760 -> 192.168.33.25:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22role%3AScientist%22&stale=false HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59760 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59760 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.25:8092 -> 192.168.33.22:59760 [AP]
1.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59760 [AP]
0.
.
######
T 192.168.33.22:34902 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22role%3AResearcher%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
0.
.
#####
T 192.168.33.22:59764 -> 192.168.33.25:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22seth%22&stale=false HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
1.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
0.
.
##
T 192.168.33.22:34902 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_role_access/_view/role_access?key=%22seth%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
#
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
#
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34902 [AP]
0.
.
#####
T 192.168.33.22:34906 -> 192.168.33.21:8092 [AP]
GET /data-bucket/_design/sync_gateway_access/_view/access?key=%22raghu%22&stale=false HTTP/1.1.
Host: 192.168.33.21:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34906 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34906 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.21:8092 -> 192.168.33.22:34906 [AP]
1.
.
##
T 192.168.33.21:8092 -> 192.168.33.22:34906 [AP]
0.
.
##
T 192.168.33.22:59764 -> 192.168.33.25:8092 [AP]
GET /data-bucket/_design/sync_gateway_role_access/_view/role_access?key=%22raghu%22&stale=false HTTP/1.1.
Host: 192.168.33.25:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:45 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
1e.
{"total_rows":0,"rows":[.
].
}.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
1.
.
##
T 192.168.33.25:8092 -> 192.168.33.22:59764 [AP]
0.
.
#####
T 192.168.33.22:44464 -> 192.168.33.24:8092 [AP]
PUT /data-bucket/_design/test_views HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Content-Length: 2465.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"views":{"filtered":{"map":"function(doc,meta) {\n\t\t var sync = doc._sync;\n\t\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t\t return;\n\t\t if ((sync.flags \u0026 1) || sync.deleted)\n\t\t return;\n\t\t var channels = [];\n\t\t var channelMap = sync.channels;\n\t\t\t\t\t\t\tif (channelMap) {\n\t\t\t\t\t\t\t\tfor (var name in channelMap) {\n\t\t\t\t\t\t\t\t\tremoved = channelMap[name];\n\t\t\t\t\t\t\t\t\tif (!removed)\n\t\t\t\t\t\t\t\t\t\tchannels.push(name);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t delete doc._sync;\n\t\t meta.rev = sync.rev;\n\t\t meta.channels = channels;\n\n\t\t var _emit = emit;\n\t\t (function(){\n\t\t\t var emit = function(key,value) {\n\t\t\t \t_emit(key,[channels, value]);\n\t\t\t };\n\t\t\t\t\t\t\t\t(function(doc, meta) {emit(meta._id, doc.channels);}) (doc, meta);\n\t\t\t\t\t\t\t}());\n\t\t\t\t\t\t\tdoc._sync = sync;\n\t\t\t\t\t\t}"},"filtered_more":{"map":"function(doc,meta) {\n\t\t var sync = doc._sync;\n\t\t if (sync === undefined || meta.id.substring(0,6) == \"_sync:\")\n\t\t return;\n\t\t if ((sync.flags \u0026 1) || sync.deleted)\n\t\t return;\n\t\t var channels = [];\n\t\t var channelMap = sync.channels;\n\t\t\t\t\t\t\tif (channelMap) {\n\t\t\t\t\t\t\t\tfor (var name in channelMap) {\n\t\t\t\t\t\t\t\t\tremoved = channelMap[name];\n\t\t\t\t\t\t\t\t\tif (!removed)\n\t\t\t\t\t\t\t\t\t\tchannels.push(name);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t delete doc._sync;\n\t\t meta.rev = sync.rev;\n\t\t meta.channels = channels;\n\n\t\t var _emit = emit;\n\t\t (function(){\n\t\t\t var emit = function(key,value) {\n\t\t\t \t_emit(key,[channels, value]);\n\t\t\t };\n\t\t\t\t\t\t\t\t(function(doc, meta) { if (doc.channels.indexOf(\"Create\") != -1 || doc.channels.indexOf(\"Edit\") != -1) {emit(meta._id, doc.channels);}}) (doc, meta);\n\t\t\t\t\t\t\t}());\n\t\t\t\t\t\t\tdoc._sync = sync;\n\t\t\t\t\t\t}"}}}
##
T 192.168.33.24:8092 -> 192.168.33.22:44464 [AP]
HTTP/1.1 201 Created.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Location: http://192.168.33.24:8092/data-bucket/_design/test_views.
Date: Thu, 29 Jun 2017 21:12:58 GMT.
Content-Type: text/plain;charset=utf-8.
Content-Length: 38.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44464 [AP]
{"ok":true,"id":"_design/test_views"}
#####
T 192.168.33.22:44466 -> 192.168.33.24:8092 [AP]
GET /data-bucket/_design/test_views/_view/filtered?stale=false HTTP/1.1.
Host: 192.168.33.24:8092.
User-Agent: Go-http-client/1.1.
Authorization: Basic ZGF0YS1idWNrZXQ6cGFzc3dvcmQ=.
Accept-Encoding: gzip.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44466 [AP]
HTTP/1.1 200 OK.
Transfer-Encoding: chunked.
Server: MochiWeb/1.0 (Any of you quaids got a smint?).
Date: Thu, 29 Jun 2017 21:12:59 GMT.
Content-Type: text/plain;charset=utf-8.
Cache-Control: must-revalidate.
.
##
T 192.168.33.24:8092 -> 192.168.33.22:44466 [AP]
10db.
{"total_rows":133,"rows":[.
{"id":"create_doc_10","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_15","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_2","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_20","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_21","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_24","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_3","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_32","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_33","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_37","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_38","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_39","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_43","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_46","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_47","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_48","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_50","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_55","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_61","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_64","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_65","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_7","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_72","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_76","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_77","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_79","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_8","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_82","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_83","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_87","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_88","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_89","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_9","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_90","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_91","key":null,"value":[["Create"],["Create"]]},.
{"id":"create_doc_94","key":null,"value":[["Create"],["Create"]]},.
{"id":"download_doc_10","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_14","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_15","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_2","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_21","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_24","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_25","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_32","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_36","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_37","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_39","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_43","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_46","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_48","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_49","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_50","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_51","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_55","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_6","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_60","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_61","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_64","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_7","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_72","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_73","key":null,"value":[["Download"],["Download"]]}.
##
T 192.168.33.24:8092 -> 192.168.33.22:44466 [AP]
10fd.
,.
{"id":"download_doc_77","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_79","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_82","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_86","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_87","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_89","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_9","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_91","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_94","key":null,"value":[["Download"],["Download"]]},.
{"id":"download_doc_95","key":null,"value":[["Download"],["Download"]]},.
{"id":"edit_doc_1","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_10","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_15","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_20","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_21","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_24","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_32","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_33","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_37","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_39","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_4","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_43","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_46","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_48","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_5","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_50","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_55","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_61","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_64","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_65","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_72","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_76","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_77","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_79","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_82","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_83","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_87","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_88","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_89","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_90","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_91","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"edit_doc_94","key":null,"value":[["Edit"],["Edit"]]},.
{"id":"upload_doc_0","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_10","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_14","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_15","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_21","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_24","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_32","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_37","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_39","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_4","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_42","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_43","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_46","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_48","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_5","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_50","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_51","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_55","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_61","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_64","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_72","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_77","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_78","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_79","key":null,"value":[["Upload"],["Upload"]]}.
##
T 192.168.33.24:8092 -> 192.168.33.22:44466 [AP]
261.
,.
{"id":"upload_doc_82","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_87","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_89","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_91","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_94","key":null,"value":[["Upload"],["Upload"]]},.
{"id":"upload_doc_95","key":null,"value":[["Upload"],["Upload"]]}.
],.
"errors":[.
{"from":"192.168.33.25:8092","reason":"{<<\"unknown_error\">>,<<\"view_undefined\">>}"},.
{"from":"192.168.33.21:8092","reason":"{<<\"unknown_error\">>,<<\"view_undefined\">>}"}.
].
}.
##
T 192.168.33.24:8092 -> 192.168.33.22:44466 [AP]
1.
.
0.
.
##exit
269 received, 0 dropped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment