[chef] Re: cloning from github


Chronological Thread 
  • From: Avishai Ish-Shalom < >
  • To:
  • Subject: [chef] Re: cloning from github
  • Date: Mon, 21 Feb 2011 08:54:35 +0200
  • Organization: FewBytes Technologies

Is the private on the chef-client node? is it stored as the default key
(id_rsa)?

If not, you probably need an ssh-git wrapper script.

Regards,
Avishai


On 02/21/2011 08:09 AM, 

 wrote:
> Hi,
>
> I am trying to clone from github, I created a new cookbook and added this to
> the recipe -
>
> git "/home/test/" do
>   repository 
> " :testdb/testfile.git"
>   reference "master"
>   action :sync
> end
>
> I have a question, Should I use "sync" or "checkout" to clone? and I have 
> added
> the public_keys of the virtual machine I m testing to github, I tested by
> giving a git clone from the node and it works.
>
> This is the error that pops up -
> ---------------------------------------------------------------------------------------------------------------------------------------------
> /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/git.rb:159:in
> `remote_resolve_reference':  returned 128, expected 0 (RuntimeError)
> ---- Begin output of  ----
> STDOUT: 
> STDERR: Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
> ---- End output of  ----
>
> Could not access the remote Git repository. If this is a private repository,
> please verify that the deploy key for your application has been added to 
> your
> remote Git account.
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>
> This is what shows in debug -
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> [Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Processing 
> git[/home/dubizzle/django/]
> on ubuntu.localdomain
> [Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: git[/home/dubizzle/django/] 
> revision:
> [Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
>  :dubizzle/django.git
>  master
> [Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
>  :dubizzle/django.git
>  master
> [Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git ls-remote
>  :dubizzle/django.git
>  master ----
> [Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: STDOUT:
> [Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: STDERR: Permission denied
> (publickey).^M
> fatal: The remote end hung up unexpectedly
> [Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- End output of git ls-remote
>  :dubizzle/django.git
>  master ----
> [Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
>  :dubizzle/django.git
>  master returned 128
> [Sun, 20 Feb 2011 21:57:32 -0800] ERROR: git[/home/dubizzle/django/]
> (/var/chef/cache/cookbooks/files/recipes/default.rb:10:in `from_file') had 
> an
> error:
>  returned 128, expected 0
> ---- Begin output of  ----
> STDOUT:
> STDERR: Permission denied (publickey).^M
> fatal: The remote end hung up unexpectedly
> ---- End output of  ----
>
> Could not access the remote Git repository. If this is a private repository,
> please verify that the deploy key for your application has been added to 
> your
> remote Git account.
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Please do correct me if I am doing any steps wrong here.
>
> Thanks in advance.
begin:vcard
fn:Avishai Ish-Shalom
n:Ish-Shalom;Avishai
org:FewBytes technologies
adr:;;7 Jabotinsky St.;Ramat-Gan;;52520;Israel
email;internet:
 
title:IT Consultant
tel;work:+972-3-5444-230 
tel;fax:+972-3-5444-720 
tel;cell:+972-54-4466499
note:skype: avishaiish
x-mozilla-html:TRUE
url:http://www.fewbytes.com/
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

§