Gitlab test email from rb console working but not confirmation emails

There are no logs for this so it’s very hard to troubleshoot. I tried enabling logs in production.rb but sidekiq.log isn’t showing anything.

Emails from console are working but not from the web site. Thanks

Here is my gitlab.rb:

external_url ‘http://scm.myurl.net/
gitlab_rails[‘gitlab_email_from’] = ‘my@email.com’
gitlab_rails[‘gitlab_email_reply_to’] = ‘git@email.com’
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.dynect.net
gitlab_rails[‘smtp_port’] = 25
gitlab_rails[‘smtp_user_name’] = “my@email.com
gitlab_rails[‘smtp_password’] = “password”
gitlab_rails[‘smtp_domain’] = “smtp.dynect.net
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = true

gitlab_rails[‘backup_path’] = ‘/var/opt/gitlab/backups/repo-meta’

gitlab_rails[‘gitlab_restricted_visibility_levels’] = [ “public” ]

2 Likes

I have the exact same error. Can we get a followup on this?

1 Like

In a truly strange turn of events, today I got an email that one of my team members had added me to a project. I still have not ever received a confirmation email of any kind.

1 Like

I am also having issues with this.

I can send an email using “gitlab-rails console production”, and I have no idea where to find log information on triggered notifications.

SIMPLY being able to look somewhere and see “Notification email triggered by new branch push” or something would be tremendously useful for debugging these kinds of issues.

If there IS somewhere to look for that, please share that information random kind stranger(s).

I have a project in gitlab-ce 9.1.3 that my user is set to ‘Watch’, notify on own activity is also selected, for Global. When I push a new branch, it doesn’t appear to generate a notification email.

edit: “solved” see followup comment

So I figured out what I was missing on my end; might be helpful to others.

Each project has various sub-options for ‘Services’ and one of those is “Emails on push”:

https://gitlab-ce.host/[user|group]/[repo]/services/emails_on_push/edit

:slight_smile::slight_smile::slight_smile::slight_smile:

I’ve the exact same problem as the original post describes. Since I’ve updated to Gitlab CE 9.3.1, all forms of mails from Gitlab are no longer sent and end up with the error “Net::OpenTimeout: execution expired” in Monitoring -> Background Jobs in the category “Dead”. Sending a test mail over the GitLab Rails console works fine and I can connect with Telnet to my SMTP server.

Any help would be very much appreciated.
Environment:

System information
System:         Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-83-generic x86_64)
Current User:   git
Using RVM:      no
Ruby Version:   2.3.3p222
Gem Version:    2.6.6
Bundler Version:1.13.7
Rake Version:   10.5.0
Redis Version:  3.2.5
Git Version:    2.13.0
Sidekiq Version:5.0.0
Go Version:     unknown

GitLab information
Version:        9.3.1
Revision:       b2dd17b
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     postgresql
URL:            https://x.xxx.x
HTTP Clone URL: https://x.xxx.x/some-group/some-project.git
SSH Clone URL:  git@x.xxx.x:some-group/some-project.git
Using LDAP:     no
Using Omniauth: yes
Omniauth Providers: bitbucket

GitLab Shell
Version:        5.0.5
Repository storage paths:
- default:      /var/opt/gitlab/git-data/repositories
Hooks:          /opt/gitlab/embedded/service/gitlab-shell/hooks
Git:            /opt/gitlab/embedded/bin/git

In a truly strange turn of events, today I got an email that one of my team members had added me to a project. I still have not ever received a confirmation email of any kind.

Updating to newest Gitlab CE Version 9.3.3 fixed the problem for me.