Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-- Logs begin at Wed 2015-05-27 17:14:21 , end at Wed 2015-05-27 17:38:00 . --
May 27 17:27:55 ip-172-31-11-177.ec2.internal systemd[1]: Starting sync_gw_node...
May 27 17:27:55 ip-172-31-11-177.ec2.internal docker[1392]: Error response from daemon: no such id: sync_gw
May 27 17:27:55 ip-172-31-11-177.ec2.internal docker[1392]: time="2015-05-27T17:27:55Z" level=fatal msg="Error: failed to kill one or more containers"
May 27 17:27:55 ip-172-31-11-177.ec2.internal docker[1405]: Error response from daemon: no such id: sync_gw
May 27 17:27:55 ip-172-31-11-177.ec2.internal docker[1405]: time="2015-05-27T17:27:55Z" level=fatal msg="Error: failed to remove one or more containers"
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: latest: Pulling from couchbase/sync-gateway
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 6941bfcbbfca: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 41459f052977: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: fd44297e2ddb: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 9b04c9e73688: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 666f2109857d: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 3cedda6c9458: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 6faa0cef71e9: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: f5fee151a704: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 1e28bae7712f: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 70d85e3394ea: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: af6068922507: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 5b8cc0c690b5: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 9cae98cd85aa: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: ee87af35b2a2: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 38f73a2d5e6f: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 93601a1f1f99: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 914078b4af63: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Pulling fs layer
May 27 17:27:59 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Layer already being pulled by another client. Waiting.
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 1e28bae7712f: Verifying Checksum
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 1e28bae7712f: Download complete
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: af6068922507: Verifying Checksum
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: af6068922507: Download complete
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 5b8cc0c690b5: Verifying Checksum
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 5b8cc0c690b5: Download complete
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 70d85e3394ea: Verifying Checksum
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: 70d85e3394ea: Download complete
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: f5fee151a704: Verifying Checksum
May 27 17:28:00 ip-172-31-11-177.ec2.internal docker[1414]: f5fee151a704: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Verifying Checksum
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 666f2109857d: Verifying Checksum
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 666f2109857d: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 9b04c9e73688: Verifying Checksum
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 9b04c9e73688: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: fd44297e2ddb: Verifying Checksum
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: fd44297e2ddb: Download complete
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 914078b4af63: Verifying Checksum
May 27 17:28:01 ip-172-31-11-177.ec2.internal docker[1414]: 914078b4af63: Download complete
May 27 17:28:02 ip-172-31-11-177.ec2.internal docker[1414]: 6941bfcbbfca: Verifying Checksum
May 27 17:28:02 ip-172-31-11-177.ec2.internal docker[1414]: 6941bfcbbfca: Download complete
May 27 17:28:02 ip-172-31-11-177.ec2.internal docker[1414]: 6941bfcbbfca: Pull complete
May 27 17:28:06 ip-172-31-11-177.ec2.internal docker[1414]: 6faa0cef71e9: Verifying Checksum
May 27 17:28:06 ip-172-31-11-177.ec2.internal docker[1414]: 6faa0cef71e9: Download complete
May 27 17:28:10 ip-172-31-11-177.ec2.internal docker[1414]: 38f73a2d5e6f: Verifying Checksum
May 27 17:28:10 ip-172-31-11-177.ec2.internal docker[1414]: 38f73a2d5e6f: Download complete
May 27 17:28:12 ip-172-31-11-177.ec2.internal docker[1414]: 93601a1f1f99: Verifying Checksum
May 27 17:28:12 ip-172-31-11-177.ec2.internal docker[1414]: 93601a1f1f99: Download complete
May 27 17:28:13 ip-172-31-11-177.ec2.internal docker[1414]: 9cae98cd85aa: Verifying Checksum
May 27 17:28:13 ip-172-31-11-177.ec2.internal docker[1414]: 9cae98cd85aa: Download complete
May 27 17:28:20 ip-172-31-11-177.ec2.internal docker[1414]: ee87af35b2a2: Verifying Checksum
May 27 17:28:20 ip-172-31-11-177.ec2.internal docker[1414]: ee87af35b2a2: Download complete
May 27 17:28:25 ip-172-31-11-177.ec2.internal docker[1414]: 41459f052977: Verifying Checksum
May 27 17:28:25 ip-172-31-11-177.ec2.internal docker[1414]: 41459f052977: Download complete
May 27 17:28:40 ip-172-31-11-177.ec2.internal docker[1414]: 3cedda6c9458: Verifying Checksum
May 27 17:28:40 ip-172-31-11-177.ec2.internal docker[1414]: 3cedda6c9458: Download complete
May 27 17:28:42 ip-172-31-11-177.ec2.internal docker[1414]: 41459f052977: Pull complete
May 27 17:28:43 ip-172-31-11-177.ec2.internal docker[1414]: fd44297e2ddb: Pull complete
May 27 17:28:44 ip-172-31-11-177.ec2.internal docker[1414]: 9b04c9e73688: Pull complete
May 27 17:28:45 ip-172-31-11-177.ec2.internal docker[1414]: 666f2109857d: Pull complete
May 27 17:29:09 ip-172-31-11-177.ec2.internal docker[1414]: 3cedda6c9458: Pull complete
May 27 17:29:15 ip-172-31-11-177.ec2.internal docker[1414]: 6faa0cef71e9: Pull complete
May 27 17:29:19 ip-172-31-11-177.ec2.internal docker[1414]: f5fee151a704: Pull complete
May 27 17:29:23 ip-172-31-11-177.ec2.internal docker[1414]: 1e28bae7712f: Pull complete
May 27 17:29:27 ip-172-31-11-177.ec2.internal docker[1414]: 70d85e3394ea: Pull complete
May 27 17:29:31 ip-172-31-11-177.ec2.internal docker[1414]: af6068922507: Pull complete
May 27 17:29:35 ip-172-31-11-177.ec2.internal docker[1414]: 5b8cc0c690b5: Pull complete
May 27 17:29:46 ip-172-31-11-177.ec2.internal docker[1414]: 9cae98cd85aa: Pull complete
May 27 17:30:01 ip-172-31-11-177.ec2.internal docker[1414]: ee87af35b2a2: Pull complete
May 27 17:30:07 ip-172-31-11-177.ec2.internal docker[1414]: 38f73a2d5e6f: Pull complete
May 27 17:30:17 ip-172-31-11-177.ec2.internal docker[1414]: 93601a1f1f99: Pull complete
May 27 17:30:23 ip-172-31-11-177.ec2.internal docker[1414]: 914078b4af63: Pull complete
May 27 17:30:27 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Pull complete
May 27 17:30:27 ip-172-31-11-177.ec2.internal docker[1414]: 532dbd94ffa2: Already exists
May 27 17:30:27 ip-172-31-11-177.ec2.internal docker[1414]: Digest: sha256:11aff2f0ae5fb60583346b462680704069a0e20f6f8e7d4c9c11316188532e70
May 27 17:30:27 ip-172-31-11-177.ec2.internal docker[1414]: Status: Downloaded newer image for couchbase/sync-gateway:latest
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 0.8.6: Pulling from tleyden5iwx/couchbase-cluster-go
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: e9e06b06e14c: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: a82efea989f9: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 37bea4ee0c81: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 07f8e8c5e660: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 8e4809a4c84f: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: fc8201a3602a: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 5aa68218a770: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 072cc032d637: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: b5b74fd347bc: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: c12d13e17a81: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 1dfb5deb26cb: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 0183612def18: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: 5f44d629f9f1: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: ce654fef75ea: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: ce654fef75ea: Already exists
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: Digest: sha256:221c7d29cfefe73820eadaa82d5769d817099d890c28a98ee5092b8ffe5e0b23
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1615]: Status: Image is up to date for tleyden5iwx/couchbase-cluster-go:0.8.6
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Update-Wrapper: skipping update
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 remainingargs: [wait-until-running], target: couchbase-cluster
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Invoking target: couchbase-cluster with args: [wait-until-running]
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Connect to etcd on localhost
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 WaitUntilClusterRunning
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Couchbase node ip: 172.31.11.177
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Verifying REST service at http://172.31.11.177:8091/ to be up
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 Found liveNodeIp: 172.31.11.177
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 CheckNumNodesClusterHealthy()
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 GetClusterNodes() called with: 172.31.11.177
May 27 17:30:31 ip-172-31-11-177.ec2.internal docker[1623]: 2015/05/27 17:30:31 All cluster nodes appear to be healthy
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Update-Wrapper: skipping update
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 remainingargs: [rewrite --destination /home/core/.sync-gw-config.json], target: sync-gw-config
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Invoking target: sync-gw-config with args: [rewrite --destination /home/core/.sync-gw-config.json]
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 args: map[--etcd-servers:<nil> --help:false rewrite:true --destination:/home/core/.sync-gw-config.json]. err: <nil>
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Connect to etcd on localhost
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 FetchSyncGwConfig()
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Connect to etcd on localhost
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Couchbase node ip: 172.31.50.21
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Verifying REST service at http://172.31.50.21:8091/ to be up
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 LiveNodeIp: 172.31.50.21
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: 2015/05/27 17:30:32 Sync GW config file: {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "log": [
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "*"
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: ],
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "facebook": { "register": true },
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "databases": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "grocery-sync": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "server":"172.31.50.21:8091",
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "bucket": "grocery-sync",
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "users": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "GUEST": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "disabled": false,
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "admin_channels": [
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "*"
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: ]
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: },
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "todos": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "server":"172.31.50.21:8091",
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "users": {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "GUEST": {"disabled": true}
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: },
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: "sync": `
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: function(doc, oldDoc) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: // NOTE this function is the same across the iOS, Android, and PhoneGap versions.
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (doc.type == "task") {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (!doc.list_id) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: throw({forbidden : "items must have a list_id"})
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: channel("list-"+doc.list_id);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: } else if (doc.type == "list") {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: channel("list-"+doc._id);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (!doc.owner) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: throw({forbidden : "list must have an owner"})
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (oldDoc) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: var oldOwnerName = oldDoc.owner.substring(oldDoc.owner.indexOf(":")+1);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: requireUser(oldOwnerName)
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: var ownerName = doc.owner.substring(doc.owner.indexOf(":")+1);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: access(ownerName, "list-"+doc._id);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (Array.isArray(doc.members)) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: var memberNames = [];
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: for (var i = doc.members.length - 1; i >= 0; i--) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: memberNames.push(doc.members[i].substring(doc.members[i].indexOf(":")+1))
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: };
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: access(memberNames, "list-"+doc._id);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: } else if (doc.type == "profile") {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: channel("profiles");
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: var user = doc._id.substring(doc._id.indexOf(":")+1);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: if (user !== doc.user_id) {
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: throw({forbidden : "profile user_id must match docid"})
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: requireUser(user);
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: access(user, "profiles"); // TODO this should use roles
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: `
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1649]: }
May 27 17:30:32 ip-172-31-11-177.ec2.internal systemd[1]: Started sync_gw_node.
May 27 17:30:32 ip-172-31-11-177.ec2.internal bash[1671]: 17:30:32.496219 FATAL: Error reading config file sync_gateway: open sync_gateway: no such file or directory -- rest.ParseCommandLine() at config.go:294
May 27 17:30:32 ip-172-31-11-177.ec2.internal systemd[1]: sync_gw_node@1.service: main process exited, code=exited, status=1/FAILURE
May 27 17:30:32 ip-172-31-11-177.ec2.internal docker[1725]: sync_gw
May 27 17:30:32 ip-172-31-11-177.ec2.internal systemd[1]: Unit sync_gw_node@1.service entered failed state.
May 27 17:30:32 ip-172-31-11-177.ec2.internal systemd[1]: sync_gw_node@1.service failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment