{"action":"created","issue":{"url":"https://api.github.com/repos/matschaffer/knife-solo/issues/459","labels_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/459/comments","events_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/459/events","html_url":"https://github.com/matschaffer/knife-solo/issues/459","id":109691789,"number":459,"title":"knife solo ","user":{"login":"rajanshah","id":1548345,"avatar_url":"https://avatars.githubusercontent.com/u/1548345?v=3","gravatar_id":"","url":"https://api.github.com/users/rajanshah","html_url":"https://github.com/rajanshah","followers_url":"https://api.github.com/users/rajanshah/followers","following_url":"https://api.github.com/users/rajanshah/following{/other_user}","gists_url":"https://api.github.com/users/rajanshah/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanshah/subscriptions","organizations_url":"https://api.github.com/users/rajanshah/orgs","repos_url":"https://api.github.com/users/rajanshah/repos","events_url":"https://api.github.com/users/rajanshah/events{/privacy}","received_events_url":"https://api.github.com/users/rajanshah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-04T17:07:03Z","updated_at":"2015-10-09T01:17:37Z","closed_at":null,"body":"I have long running knife solo script (20-30 minutes), which performs following installation on AWS instance.\r\n\r\nERROR: Errno::ECONNRESET: Connection reset by peer - recvfrom(2)\r\n\r\n1. command:\r\nknife solo bootstrap ubuntu@<ip_address> nodes/<installation>.json\r\n\r\n2. recipe:\r\nThe underlying recipe installs necessary python infrastructure from scratch\r\n\r\na. numpy\r\nb. pandas\r\nc. scipy\r\nd. matplotlib\r\n\r\n3. target machine\r\n\r\nOn target machine cc1/cc1plus is running at > 90% CPU - runs for roughly 20+ minutes\r\n\r\n PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND\r\n27230 ubuntu    20   0  633540 584520   9440 R 98.5 57.5   0:45.89 cc1plus\r\n\r\nIt always results into connection reset issue, after re-running it completes successfully.\r\n\r\nI see that in one of the thread suggestion was to \"use proxy settings\". I am not sure, whether it applies here as I am running these scripts from northeast US and my AWS instance is running in US. East as well.\r\n\r\nI would appreciate any recommendation on alternative approach/settings to avoid such issue."},"comment":{"url":"https://api.github.com/repos/matschaffer/knife-solo/issues/comments/146730393","html_url":"https://github.com/matschaffer/knife-solo/issues/459#issuecomment-146730393","issue_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/459","id":146730393,"user":{"login":"matschaffer","id":690,"avatar_url":"https://avatars.githubusercontent.com/u/690?v=3","gravatar_id":"","url":"https://api.github.com/users/matschaffer","html_url":"https://github.com/matschaffer","followers_url":"https://api.github.com/users/matschaffer/followers","following_url":"https://api.github.com/users/matschaffer/following{/other_user}","gists_url":"https://api.github.com/users/matschaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/matschaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matschaffer/subscriptions","organizations_url":"https://api.github.com/users/matschaffer/orgs","repos_url":"https://api.github.com/users/matschaffer/repos","events_url":"https://api.github.com/users/matschaffer/events{/privacy}","received_events_url":"https://api.github.com/users/matschaffer/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T01:17:37Z","updated_at":"2015-10-09T01:17:37Z","body":"Should be fine to increase, though it may not solve the problem.\r\n\r\nThe python scientific stack should have fairly recent versions available in package repos for major OSes.\r\n\r\nOr if you need your own you can build them once and package using a tool like https://github.com/jordansissel/fpm\r\n\r\nIf you can install via a pre-compiled package the provisioning should be a lot faster which may avoid the need to keep SSH open & idle.\r\n\r\nFinally, if that's not an option, you may want to investigate the server's sshd settings (e.g., that TCPKeepAlive is turned on, and ClientAlive* aren't set too short). And finally any firewall settings between you and the server (since one commenter talks about it [here](http://unix.stackexchange.com/questions/150402/what-is-the-default-idle-timeout-for-openssh#comment244737_150406))."}}