Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5636

Closed
Open
Created Nov 21, 2013 by Administrator@rootOwner

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
  }
Assignee
Assign to
Time tracking