部署 Gitlab 部署后发不了邮件

zernel · 2013年04月01日 · 最后由 zhenbeiju 回复于 2013年06月08日 · 8153 次阅读

Gitlab 部署好后在后台的 Sidekiq 中看到以下错误,Notify 不能用,发不了邮件通知,Google 无果...求助 @Saito

可以看一下 new_ssh_key_email 这个玩意是不是还在.. 我没碰到过这个问题。

#1 楼 @Saito 那个方法还在,不过应该不是它的问题,因为这边报了很多个错误,全部都是类似的,这只是其中一个,应该是sidekiq的配置问题

Gitlab 不停的发邮件 你们两个人的帖子挨着就产生了喜感

@Zernel 我也来水一个 Orz

我也碰到这个问题了 hoho 求解 求解

好像是 sendmail 没装.. sudo apt-get install sendmail 我装了还是没反应

2013-06-08T03:27:27Z 1383 TID-oufi912i8 Sidekiq::Extensions::DelayedMailer JID-e1fd28264d3292b3e91398b2 INFO: start sh: 1: /usr/sbin/sendmail: not found 2013-06-08T03:27:27Z 1383 TID-oufi912i8 Sidekiq::Extensions::DelayedMailer JID-e1fd28264d3292b3e91398b2 INFO: fail: 0.053 sec 2013-06-08T03:27:27Z 1383 TID-oufi912i8 WARN: {"retry"=>true, "queue"=>"default", "class"=>"Sidekiq::Extensions::DelayedMailer", "args"=>["---\n- !ruby/class 'Notify'\n- :project_access_granted_email\n- - 3\n"], "at"=>1370656699.0111356, "jid"=>"e1fd28264d3292b3e91398b2", "error_message"=>"Broken pipe", "error_class"=>"Errno::EPIPE", "failed_at"=>"2013-06-08T01:58:26Z", "retry_count"=>8, "retried_at"=>2013-06-08 03:27:27 UTC} 2013-06-08T03:27:27Z 1383 TID-oufi912i8 WARN: Broken pipe 2013-06-08T03:27:27Z 1383 TID-oufi912i8 WARN: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:62:in write' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:62:inputs' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:62:in block in call' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:61:inpopen' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:61:in call' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/network/delivery_methods/sendmail.rb:57:indeliver!' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/message.rb:2033:in do_delivery' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/message.rb:229:inblock in deliver' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:415:in block in deliver_mail' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:inblock in instrument' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in instrument' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:ininstrument' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:413:in deliver_mail' /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/mail-2.5.3/lib/mail/message.rb:229:indeliver'

需要 登录 后方可回复, 如果你还没有账号请 注册新账号