bundle not found in cron

Hello everyone!

I have recently found a strange gitlab behaviour with a cron job.

I am still on the version 7.14 The cron job for the user gitlab_ci looks like this: 0 * * * * /bin/bash -l -c 'cd /home/gitlab_ci/gitlab-ci && RAILS_ENV=production bundle exec rake schedule_builds --silent'

This job sends an email every hour with whatever the output of the command is. There are a couple of questions I have about it.

  • I get emails with error: /bin/bash: bundle: command not found, what could be the cause? When setting the full path for bundle I start getting errors about ruby: /usr/bin/env: ruby: No such file or directory
  • Is this cron job at all needed? Can it be that it is there since the old versions of gitlab that I had on the machine? What exactly should it do?
Assignee Loading
Time tracking Loading