[chef] Re: Git "nonexistent/.ssh" issue


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: Git "nonexistent/.ssh" issue
  • Date: Fri, 7 Jun 2013 17:40:09 -0700

The problem isn't on the server end, at least not at first, the problem is your client can't cache the ssh host key of the server. You need to resolve that for it to communicate with the server, or your client will consider it untrusted.

On Friday, June 7, 2013, Liam Kirsher wrote:
Okay, so I've abandoned using Mercurial and converted repo to Git.
I'm using git from within the Application cookbook, which uses scm.

Looks like it fails because it can't create the file and dir for the user it is running as (presumably root).
Any idea how to fix that?

I'm getting my deploy_key from a data bag.  Just to confirm -- the deploy_key is the ascii representation of the key, not a file path, right?


Mixlib::ShellOut::ShellCommandFailed

------------------------------------

Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote :lkirsher/server-git.git');" target="_blank"> :lkirsher/server-git.git master ----
STDOUT:
STDERR: Could not create directory '/nonexistent/.ssh'.
Failed to add the host to the list of known hosts (/nonexistent/.ssh/known_hosts).
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
---- End output of git ls-remote :lkirsher/server-git.git');" target="_blank"> :lkirsher/server-git.git master ----
Ran git ls-remote :lkirsher/server-git.git');" target="_blank"> :lkirsher/server-git.git master returned 128


-- 
Liam Kirsher
PGP: http://liam.numenet.com/pgp/


--
--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS




Archive powered by MHonArc 2.6.16.

§