7.4.2->7.4.3 upgrade requires cron dir
CentOS 6, x64. It failed on the initial gitlab-ctl reconfigure
.
Looks like the job was looking for crontab
- which my system didn't have. A simple yum install cronie
fixed this - perhaps it should be added to the list of prerequisites .
(I know, usually assumed to exist, but this was a reasonably fresh minimal installation)
Recipe: gitlab::cron
* cron[gitlab-ci schedule builds] action delete
================================================================================
Error executing action `delete` on resource 'cron[gitlab-ci schedule builds]'
================================================================================
Errno::ENOENT
-------------
No such file or directory - crontab
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/gitlab/recipes/cron.rb
18: cron 'gitlab-ci schedule builds' do
19: minute node['gitlab']['gitlab-ci']['schedule_builds_minute']
20: command '/opt/gitlab/bin/gitlab-ci-rake schedule_builds'
21: action node['gitlab']['gitlab-ci']['enable'] ? :create : :delete
22: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/cron.rb:18:in `from_file'
cron("gitlab-ci schedule builds") do
action [:delete]
retries 0
retry_delay 2
guard_interpreter :default
minute "0"
hour "*"
day "*"
month "*"
weekday "*"
command "/opt/gitlab/bin/gitlab-ci-rake schedule_builds"
user "root"
cookbook_name :gitlab
recipe_name "cron"
end
Recipe: gitlab::database_migrations
* bash[migrate gitlab-rails database] action run
- execute "bash" "/tmp/chef-script20141112-8280-2m8lma"
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
- execute /opt/gitlab/bin/gitlab-rake cache:clear
Running handlers:
[2014-11-12T15:35:26-08:00] ERROR: Running exception handlers
Running handlers complete
[2014-11-12T15:35:26-08:00] ERROR: Exception handlers complete
[2014-11-12T15:35:26-08:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 7 resources updated in 38.253000449 seconds
[2014-11-12T15:35:26-08:00] ERROR: cron[gitlab-ci schedule builds] (gitlab::cron line 18) had an error: Errno::ENOENT: No such file or directory - crontab
[2014-11-12T15:35:27-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)