- From: <
>
- To:
- Subject: [chef] cloning from github
- Date: Sun, 20 Feb 2011 22:09:25 -0800 (PST)
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.
- [chef] cloning from github, aamir.unix, 02/20/2011
Archive powered by MHonArc 2.6.16.