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-copyec2-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::ShellCommandFailedec2-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 deniedec2-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 128The 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
Archive powered by MHonArc 2.6.16.