{"action":"opened","issue":{"url":"https://api.github.com/repos/joyent/node-manta/issues/261","repository_url":"https://api.github.com/repos/joyent/node-manta","labels_url":"https://api.github.com/repos/joyent/node-manta/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node-manta/issues/261/comments","events_url":"https://api.github.com/repos/joyent/node-manta/issues/261/events","html_url":"https://github.com/joyent/node-manta/issues/261","id":162981634,"number":261,"title":"\"mrm: AssertionError: undefined (object) is required\" when getting \"socket hang up\" during a long `mrm -r`","user":{"login":"trentm","id":46866,"avatar_url":"https://avatars.githubusercontent.com/u/46866?v=3","gravatar_id":"","url":"https://api.github.com/users/trentm","html_url":"https://github.com/trentm","followers_url":"https://api.github.com/users/trentm/followers","following_url":"https://api.github.com/users/trentm/following{/other_user}","gists_url":"https://api.github.com/users/trentm/gists{/gist_id}","starred_url":"https://api.github.com/users/trentm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentm/subscriptions","organizations_url":"https://api.github.com/users/trentm/orgs","repos_url":"https://api.github.com/users/trentm/repos","events_url":"https://api.github.com/users/trentm/events{/privacy}","received_events_url":"https://api.github.com/users/trentm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-29T17:25:39Z","updated_at":"2016-06-29T17:25:39Z","closed_at":null,"body":"I've seen this a few times on `mrm -r` of a dir with many entries. E.g.:\r\n\r\n```\r\n$ mrm -rv /trent.mick/jobs/2c799de7-bdea-e8c7-cc16-8b65850081e2\r\n...\r\n{\"name\":\"mrm\",\"hostname\":\"danger0.local\",\"pid\":645,\"component\":\"MantaClient\",\"level\":10,\"err\":{\"message\":\"socket hang up\",\"name\":\"Error\",\"stack\":\"Error: socket hang up\\n    at SecurePair.error (tls.js:1011:23)\\n    at EncryptedStream.CryptoStream._done (tls.js:703:22)\\n    at CleartextStream.read [as _read] (tls.js:499:24)\\n    at CleartextStream.Readable.read (_stream_readable.js:341:10)\\n    at EncryptedStream.onCryptoStreamFinish (tls.js:304:47)\\n    at EncryptedStream.g (events.js:180:16)\\n    at EncryptedStream.emit (events.js:117:20)\\n    at finishMaybe (_stream_writable.js:360:12)\\n    at endWritable (_stream_writable.js:367:3)\\n    at EncryptedStream.Writable.end (_stream_writable.js:345:5)\",\"code\":\"ECONNRESET\"},\"msg\":\"Request failed\",\"time\":\"2016-06-29T16:44:27.176Z\",\"src\":{\"file\":\"/Users/trentm/joy/node-manta/node_modules/restify-clients/lib/HttpClient.js\",\"line\":230,\"func\":\"onError\"},\"v\":0}\r\nmrm: AssertionError: undefined (object) is required\r\n```\r\n\r\nwhere that Bunyan log line is:\r\n\r\n```\r\n[2016-06-29T16:44:27.176Z] TRACE: mrm/MantaClient/645 on danger0.local (/Users/trentm/joy/node-manta/node_modules/restify-clients/lib/HttpClient.js:230 in onError): Request failed (err.code=ECONNRESET)\r\n    Error: socket hang up\r\n        at SecurePair.error (tls.js:1011:23)\r\n        at EncryptedStream.CryptoStream._done (tls.js:703:22)\r\n        at CleartextStream.read [as _read] (tls.js:499:24)\r\n        at CleartextStream.Readable.read (_stream_readable.js:341:10)\r\n        at EncryptedStream.onCryptoStreamFinish (tls.js:304:47)\r\n        at EncryptedStream.g (events.js:180:16)\r\n        at EncryptedStream.emit (events.js:117:20)\r\n        at finishMaybe (_stream_writable.js:360:12)\r\n        at endWritable (_stream_writable.js:367:3)\r\n        at EncryptedStream.Writable.end (_stream_writable.js:345:5)\r\n```\r\n\r\nThe code path hitting that assertion should be corrected. I'm not sure if that is getting in the way of retries."}}
{"actor":{"display_login":"trentm"}}