-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
Description
it seems that even though we installed ruby 1.9.2 as part of the recipe, it is not being used as default when bundle is run. Bundler is still using 1.8 version on the system which give you a syntax error for the Gemfile
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/gitlab/recipes/default.rb:241:in `from_file'
execute("gitlab-bundle-rake") do
cwd "/var/gitlab/gitlab"
retry_delay 2
cookbook_name "gitlab"
backup 5
command " bundle exec rake gitlab:app:setup RAILS_ENV=production"
retries 0
user "gitlab"
group "gitlab"
recipe_name "default"
action "run"
returns 0
not_if { #code block }
end
[2012-11-18T03:59:53-05:00] ERROR: Running exception handlers
[2012-11-18T03:59:53-05:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2012-11-18T03:59:53-05:00] ERROR: Exception handlers complete
[2012-11-18T03:59:53-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2012-11-18T03:59:53-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[gitlab-bundle-rake] (gitlab::default line 241) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '4'
---- Begin output of bundle exec rake gitlab:app:setup RAILS_ENV=production ----
STDOUT: Gemfile syntax error:
/var/gitlab/gitlab/Gemfile:67: syntax error, unexpected ':', expecting $end
gem "github-markup", "~> 0.7.4", require: 'github/markup'
^
STDERR: