gitlab5.0 不发送email问题

来源:互联网 发布:单页淘宝客网站源码 编辑:程序博客网 时间:2024/09/21 09:21

当使用service gitlab restart 重新启动服务后,email不再发送。记得刚安装完gitlab5.0后一切正常。

系统中sendmail早已经安装,并且功能正常。

查看production.log,发现没有发送email的记录。

那么重新检查一下系统吧。

sudo -scd /home/git/gitlabsudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
发现错误:

Checking Sidekiq ...Running? ... no  Try fixing it:  sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production  For more information see:  doc/install/installation.md in section "Install Init Script"  see log/sidekiq.log for possible errors  Please fix the error above and rerun the checks.Checking Sidekiq ... Finished

运行建议的命令:

sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production

再次检查,没有问题了。

而且email也发送成功。


原创粉丝点击