GitLab (and CI) server are spamming administrators via crond
Created by: iwonbigbro
Emails are being sent because a crontask is producing gratuitous output, which is not being redirected to a log file. I have manually specified that this be redirected to /dev/null on several occaisions, but the redirection is removed when the cron is reinstated by the gitlab-ctl reconfigure command.
Here is an example email.
Subject: Cron <root@gitlab> /opt/gitlab/bin/gitlab-ci-rake schedule_builds
Done
Here is the crontab for root:
[root@gitlab ~]# crontab -l
# Chef Name: gitlab-ci schedule builds
0 * * * * /opt/gitlab/bin/gitlab-ci-rake schedule_builds