Smtp email notifications Net::ReadTimeout problem (version:6.2.4)
Created by: nebel256
I think the similar problem was already opened with Issue #5596 (closed) a few days ago in this comment: https://github.com/gitlabhq/gitlabhq/issues/5596#issuecomment-28453262. Gitlab doesn't send email notification on new user registration.
On my server: OS: Ubuntu 12.04 Gitlab version: 6.2.4
run 'sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production'
is OK.
In log/sidekiq.log:
2013-11-21T06:31:01Z 6812 TID-ot00ikuq8 Sidekiq::Extensions::DelayedMailer JID-d82608ae21ce3acc893e02a4 INFO: start
2013-11-21T06:32:01Z 6812 TID-ot00ikuq8 Sidekiq::Extensions::DelayedMailer JID-d82608ae21ce3acc893e02a4 INFO: fail: 60.079 sec
2013-11-21T06:32:01Z 6812 TID-ot00ikuq8 WARN: {"retry"=>true, "queue"=>"default", "class"=>"Sidekiq::Extensions::DelayedMailer", "args"=>["---\n- !ruby/class 'Notify'\n- :new_user_email\n- - 25\n - Pry9Y$
2013-11-21T06:32:01Z 6812 TID-ot00ikuq8 WARN: Net::ReadTimeout
In log/production.log:
Sent mail to [email protected] (60073ms)
Rendered notify/new_user_email.html.haml within layouts/notify (0.5ms)
Rendered notify/new_user_email.text.erb (0.2ms)
In initializers/smtp_settings.rb:
if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 465,
user_name: "[email protected]",
password: "password",
domain: "gitlab.domain.com",
authentication: :plain,
enable_starttls_auto: true
}