{"id":451,"date":"2014-12-29T00:06:18","date_gmt":"2014-12-29T00:06:18","guid":{"rendered":"http:\/\/blogs.nd.edu\/devops\/?p=451"},"modified":"2014-12-29T00:06:18","modified_gmt":"2014-12-29T00:06:18","slug":"capistrano-upload-fails-with-no-error","status":"publish","type":"post","link":"https:\/\/sites.nd.edu\/devops\/2014\/12\/29\/capistrano-upload-fails-with-no-error\/","title":{"rendered":"Capistrano upload fails with no error"},"content":{"rendered":"<p>There are a few reasons the <strong>upload!<\/strong> method of capistrano might fail on you, but you usually see some kind of an error, such as a read-only file system error on the logged-in user. \u00a0I just had a very mysterious failure with no error text whatsoever, even in verbose mode.<\/p>\n<p>Turns out the issue was <strong>STDOUT output from my remote .bashrc file.<\/strong> \u00a0I was setting some things in my remote host&#8217;s bashrc, and had it echoing debug messages (ie &#8220;started ssh agent&#8221;, and, most cleverly, &#8220;hi from bashrc!&#8221;). \u00a0Almost every other capistrano command had no problem with this, but upload! would just sit there and hang, not receiving the server response it expects.<\/p>\n<p>I removed the echo statements, and everything went back to normal. \u00a0So&#8230; maybe don&#8217;t do that. \u00a0Hopefully this helps somebody, someday.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a few reasons the upload! method of capistrano might fail on you, but you usually see some kind of an error, such as a read-only file system error on the logged-in user. \u00a0I just had a very mysterious &hellip; <a href=\"https:\/\/sites.nd.edu\/devops\/2014\/12\/29\/capistrano-upload-fails-with-no-error\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1550,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/users\/1550"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":1,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/posts\/451\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.nd.edu\/devops\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}