- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Could not create directory '/nonexistent/.ssh'. (may be red herring)
- Date: Fri, 6 Jul 2012 15:02:27 -0700
On Friday, July 6, 2012 at 2:38 PM, Denis Haskin wrote:
>
I've been using the application cookbook just fine for a while for
>
deployments of my rails app to AWS. I deploy from a github private repo,
>
using a deploy key at github (and have the private key for it in the app
>
data bag).
>
>
I'm trying to do the first deploy of a major overhaul of my project; it's
>
in a new github repo. I've copied over all of my chef-repo files, created a
>
new deploy key at github (see note below), updated the data bag on the chef
>
server with the changes.
>
>
However, when I try to deploy I get the error below. Suggestions on what
>
I'm doing wrong, how to fix?
>
>
[Fri, 06 Jul 2012 21:29:00 +0000] ERROR: deploy_revision[zmx_app]
>
(application::rails line 155) has had an error
>
[Fri, 06 Jul 2012 21:29:00 +0000] ERROR: deploy_revision[zmx_app]
>
(/var/chef/cache/cookbooks/application/recipes/rails.rb:155:in `from_file')
>
had an error:
>
deploy_revision[zmx_app] (application::rails line 155) had an error:
>
Chef::Exceptions::ShellCommandFailed: Expected process to exit with [0],
>
but received '128'
>
---- Begin output of git ls-remote
>
>
>
(mailto:
):zmxmusic/zmx2.git
>
master ----
>
STDOUT:
Did you rule this out?
>
>
STDERR: Could not create directory '/nonexistent/.ssh'.
>
Failed to add the host to the list of known hosts
>
(/nonexistent/.ssh/known_hosts).
Looks like SSH is configured to keep a known_hosts file, and failed when
trying to update it. If you create the requisite directory, does it work?
--
Dan DeLeo
Archive powered by MHonArc 2.6.16.