Hi,
I am trying to clone from github, I created a new cookbook and added this to
the recipe -
git “/home/test/” do
repository "git@github.com: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
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git ls-remote
git@github.com: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
git@github.com:dubizzle/django.git master ----
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
git@github.com: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.
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, aamir.unix@gmail.com 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 "git@github.com: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
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git ls-remote
git@github.com: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
git@github.com:dubizzle/django.git master ----
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
git@github.com: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.
Hi Avishai,
This is a private node , I have added the id_rsa.pub to github.
On Mon, Feb 21, 2011 at 10:54 AM, Avishai Ish-Shalom
avishai@fewbytes.comwrote:
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, aamir.unix@gmail.com 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 "git@github.com: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
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git
ls-remote
git@github.com: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
git@github.com:dubizzle/django.git master ----
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
git@github.com: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.
Hi
I tried like this -
git "/home/test/" do
remote "git@github.com:testdb/test.git"
reference "master"
ssh_key node[:deploy_key]
action :sync
end
and when I run chef-client it gives this error -
[Tue, 22 Feb 2011 03:31:33 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Tue, 22 Feb 2011 03:31:36 -0800] ERROR: Running exception handlers
[Tue, 22 Feb 2011 03:31:36 -0800] ERROR: Exception handlers complete
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:144:in
method_missing': undefined method
ssh_key' for Chef::Resource::Git
(NoMethodError)
Any tips guys?
On Mon, Feb 21, 2011 at 12:26 PM, Aamir Hassan aamir.unix@gmail.com wrote:
Hi Avishai,
This is a private node , I have added the id_rsa.pub to github.
On Mon, Feb 21, 2011 at 10:54 AM, Avishai Ish-Shalom <avishai@fewbytes.com
wrote:
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, aamir.unix@gmail.com 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 "git@github.com: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
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git
ls-remote
git@github.com: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
git@github.com:dubizzle/django.git master ----
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
git@github.com: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.
The proper attribute name is 'ssh_wrapper'. This should actually be a shell
wrapper script (not the actual key) that git will use to invoke ssh. There
is a great example of generating one of these wrapper scrips via a template
resource (and then using it in the deploy resource) in the application
cookbook:
https://github.com/opscode/cookbooks/blob/master/application/recipes/rails.rb#L87
https://github.com/opscode/cookbooks/blob/master/application/recipes/rails.rb#L171
Seth
--
Opscode, Inc.
Seth Chisamore, Technical Evangelist
T: (404) 348-0505 E: schisamo@opscode.com
Twitter, IRC, Github: schisamo
On Tue, Feb 22, 2011 at 6:53 AM, Aamir Hassan aamir.unix@gmail.com wrote:
Hi
I tried like this -
git "/home/test/" do
remote "git@github.com:testdb/test.git"
reference "master"
ssh_key node[:deploy_key]
action :sync
end
and when I run chef-client it gives this error -
[Tue, 22 Feb 2011 03:31:33 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Tue, 22 Feb 2011 03:31:36 -0800] ERROR: Running exception handlers
[Tue, 22 Feb 2011 03:31:36 -0800] ERROR: Exception handlers complete
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:144:in
method_missing': undefined method
ssh_key' for Chef::Resource::Git
(NoMethodError)
Any tips guys?
On Mon, Feb 21, 2011 at 12:26 PM, Aamir Hassan aamir.unix@gmail.comwrote:
Hi Avishai,
This is a private node , I have added the id_rsa.pub to github.
On Mon, Feb 21, 2011 at 10:54 AM, Avishai Ish-Shalom <
avishai@fewbytes.com> wrote:
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, aamir.unix@gmail.com 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 "git@github.com: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
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:29 -0800] DEBUG: Executing git ls-remote
git@github.com:dubizzle/django.git master
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: ---- Begin output of git
ls-remote
git@github.com: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
git@github.com:dubizzle/django.git master ----
[Sun, 20 Feb 2011 21:57:32 -0800] DEBUG: Ran git ls-remote
git@github.com: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.