rosenfeld / gitorious-cookbooks

Cookbooks collection for being used by Gitorious and chef-solo
71 stars 11 forks source link

error: cannot open .git/FETCH_HEAD: Permission denied #7

Open iversant opened 13 years ago

iversant commented 13 years ago

[Wed, 27 Jul 2011 21:17:55 -0700] ERROR: git[/var/www/gitorious](gitorious::default line 58) has had an error [Wed, 27 Jul 2011 21:17:55 -0700] ERROR: Running exception handlers [Wed, 27 Jul 2011 21:17:55 -0700] ERROR: Exception handlers complete [Wed, 27 Jul 2011 21:17:55 -0700] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out [Wed, 27 Jul 2011 21:17:55 -0700] FATAL: Chef::Exceptions::ShellCommandFailed: git[/var/www/gitorious](gitorious::default line 58) had an error: Expected process to exit 0, but it exited with 255 ---- Begin output of git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca ---- STDOUT: STDERR: error: cannot open .git/FETCH_HEAD: Permission denied ---- End output of git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca ---- Ran git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca returned 255

less chef-stacktrace.out Generated at Wed Jul 27 21:32:21 -0700 2011 Chef::Exceptions::ShellCommandFailed: git[/var/www/gitorious](gitorious::default line 58) had an error: Expected process to exit 0, but it exited with 255 ---- Begin output of git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca ---- STDOUT: STDERR: error: cannot open .git/FETCH_HEAD: Permission denied ---- End output of git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca ---- Ran git fetch origin && git fetch origin --tags && git reset --hard 143643b091e6ac7ce6d6ed811467f4bbb65126ca returned 255 /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/shell_out.rb:207:in invalid!' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/shell_out.rb:193:inerror!' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/shell_out.rb:36:in shell_out!' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/git.rb:135:infetch_updates' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/git.rb:64:in action_sync' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource.rb:417:insend' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource.rb:417:in run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/runner.rb:45:inrun_action' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/runner.rb:78:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/runner.rb:78:ineach' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/runner.rb:78:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection.rb:94:inexecute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/runner.rb:76:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/client.rb:312:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/client.rb:160:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/application/solo.rb:192:inrun_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/application/solo.rb:183:in loop' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/application/solo.rb:183:inrun_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/application.rb:66:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/chef-solo:25 /usr/bin/chef-solo:19:inload' /usr/bin/chef-solo:19

rosenfeld commented 13 years ago

Strange issue, since the git cloning code is written by Chef itself... Try to "rm -rf /var/www/gitorious" and let Chef try cloning it again...