[chef] Re: knife ec2 server create git error on 10.16.2


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: knife ec2 server create git error on 10.16.2
  • Date: Thu, 8 Nov 2012 07:58:51 -0800


On Thursday, November 8, 2012 at 7:10 AM, Mark Bate wrote:

Hi guys,

A colleague was getting some weird issues booting a new node via knife ec2 server create.
We're using the exact same chef server, repo, run_list, keys & the knife conf only differs in the paths on our local machines.

The run_list we're using basically deploys a rails app using the deploy_revision resource. Everything works fine for me, but he gets:

[2012-11-08T14:33:39+00:00] INFO: deploy_revision[/var/www/wunderapi] cloning repo "> :6wunderkinder/wunderapi.git to /var/www/wunderapi/shared/cached-copy
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com ================================================================================
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com Error executing action `deploy` on resource 'deploy_revision[/var/www/wunderapi]'
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com ================================================================================
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com Mixlib::ShellOut::ShellCommandFailed
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com ------------------------------------
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com Expected process to exit with [0], but received '128'
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com ---- Begin output of git clone --depth 5 "> :6wunderkinder/wunderapi.git /var/www/wunderapi/shared/cached-copy ----
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com STDERR: fatal: could not create work tree dir '/var/www/wunderapi/shared/cached-copy'.: Permission denied
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com ---- End output of git clone --depth 5 "> :6wunderkinder/wunderapi.git /var/www/wunderapi/shared/cached-copy ----
ec2-46-137-139-235.eu-west-1.compute.amazonaws.com Ran git clone --depth 5 "> :6wunderkinder/wunderapi.git /var/www/wunderapi/shared/cached-copy returned 128

The only difference I could find was the chef gem we're using. I was using 10.12.0, while he installed 10.16.2.
I upgraded my version to 10.16.2 & got the same error. We both downgraded again to 10.12.0 & everything worked again…
Any ideas?

Thanks,
Mark
Git is reporting a permissions issue. What are the differences on the permissions on /var/www/wunderapi/shared? Do you have a user/group set on the resource?

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§