[chef-dev] Re: Accessing Github private repository from chef-solo


Chronological Thread 
  • From: Jesse Campbell < >
  • To:
  • Cc:
  • Subject: [chef-dev] Re: Accessing Github private repository from chef-solo
  • Date: Mon, 7 May 2012 08:12:23 -0400

This is more of a chef, rather than chef-dev list question, and you'll
get better replies there.

you could try referencing it without the '.git' part at the end?
so it would be: 
:argaric/jorum_rails
also, which branch are you referencing, master?

I haven't used the rails/git application cookbook before, so i'm not
entirely familiar with the deploy bags and their correct layout (and
the new versions will deprecate the data bags, so I'm not all that
intent on learning them either)

-Jesse

On Mon, May 7, 2012 at 2:50 AM,  
< >
 wrote:
> When running the command  rvmsudo chef-solo -l debug -L /tmp/chef-solo.log 
> -c
> /etc/chef/solo.rb -j /etc/chef/node.json > /tmp/chef_solo.log 2>&1
> I get the following error:
>
> [Fri, 04 May 2012 14:45:43 +0100] DEBUG: Processing
> deploy_revision[jorum_rails]
>  on vm-jorum.ds.man.ac.uk
> [Fri, 04 May 2012 14:45:43 +0100] INFO: Processing 
> deploy_revision[jorum_rails]
> action deploy (application::rails line 165)
> [Fri, 04 May 2012 14:45:43 +0100] DEBUG: deploy_revision[jorum_rails] 
> resolving
> remote reference
> [Fri, 04 May 2012 14:45:43 +0100] DEBUG: deploy_revision[jorum_rails] sh(git
> ls-
> remote 
>  :argaric/jorum_rails.git
>  HEAD)
> [Fri, 04 May 2012 14:45:45 +0100] ERROR: deploy_revision[jorum_rails]
> (applicati
> on::rails line 165) has had an error
> [Fri, 04 May 2012 14:45:45 +0100] ERROR: deploy_revision[jorum_rails]
> (/etc/chef
> /cookbooks/application/recipes/rails.rb:165:in `from_file') had an error:
> deploy_revision[jorum_rails] (application::rails line 165) had an error:
> Chef::E
> xceptions::ShellCommandFailed: Expected process to exit with [0], but 
> received
> '
> 128'
> ---- Begin output of git ls-remote 
>  :argaric/jorum_rails.git
>  HEAD
> -
> ---
> STDOUT:
> STDERR: ERROR: Repository not found.
> fatal: The remote end hung up unexpectedly
> ---- End output of git ls-remote 
>  :argaric/jorum_rails.git
>  HEAD
> ---
> -
> Ran git ls-remote 
>  :argaric/jorum_rails.git
>  HEAD returned 128
>
> I can ssh to the github server
>
> rvmsudo ssh -T 
> 
> Hi argaric! You've successfully authenticated, but GitHub does not provide
> shell access.
>
> Also when I run this command it appears to work:
>
> rvmsudo git ls-remote 
>  :argaric/jorum_rails.git
>  HEAD
> c9db02c04da61a5b4621bf98519e79c2d1961801        HEAD
>
> I have the Key for root in the following locations:
>
> /etc/chef/data_bags/apps/jorum_rails.json:141:    "deploy_key" : "-----BEGIN
> RSA PRIVATE KEY----- ...
>
> /etc/chef/data_bags/keys/jorum.json:3:  "key": "-----BEGIN RSA PRIVATE 
> KEY-----
>
> I have added the public key to the private Github repository
>  :argaric/jorum_rails.git
>
> Any ideas?
>
> Ben



Archive powered by MHonArc 2.6.16.

§