SMTP and HTTP clone not working on Gitlab 9 / Apache2.4 / Ubuntu 16.10

Hi there,

I am running Gitlab 9 on a virtual host in Apache2.4.
There are two issues I am running in to. The first one is that mail is not sending when i have configured SMTP. And the second issue is that I cannot seem to clone from a repository using HTTP.

My gitlab is setup under a subdomain, with a self signed certificate.

Here is the Virtual Host confgiguration:

<VirtualHost *:80>
    ServerAdmin webmaster@-.nl
    Servername gitlab.-.nl
    ServerAlias www.gitlab.-.nl

    ServerSignature Off
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>

<VirtualHost *:443>
  ServerName gitlab.-.nl
  ServerAlias www.gitlab.-.nl
  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
  ServerSignature Off

  ProxyPreserveHost On

  <Location />
Order allow,deny
Allow from all
Require all granted

ProxyPassReverse http://127.0.0.1:8080
ProxyPassReverse http://gitlab.-.nl/
  </Location>

  RewriteEngine on
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]

  SSLEngine on
  SSLCertificateFile      /etc/apache2/ssl/*.-.nl.crt
  SSLCertificateKeyFile   /etc/apache2/ssl/*.-.nl.key
</VirtualHost>

My /etc/gitlab/gitlab.rb contains the following active configuration lines:

external_url 'http://gitlab.-.nl'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.-.email"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "webmaster@-.nl"
gitlab_rails['smtp_password'] = "!"
gitlab_rails['smtp_domain'] = "smtp.-.email"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_ssl'] = true
web_server['external_users'] = ['www-data']
nginx['enable'] = false

Logging concerning email: (Execution Expired)

==> /var/log/gitlab/sidekiq/current <==
2017-03-23_09:58:33.56849 2017-03-23T09:58:33.567Z 11561 TID-otsnrquz8 ActionMailer::DeliveryJob JID-2965f79cf1a1eddf976e8bf8 INFO: fail: 30.055 sec
2017-03-23_09:58:33.56852 2017-03-23T09:58:33.567Z 11561 TID-otsnrquz8 WARN: {"context":"Job raised exception","job":{"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::DeliveryJob","queue":"mailers","args":[{"job_class":"ActionMailer::DeliveryJob","job_id":"79f51de1-048b-4407-abb8-bb04267d9994","queue_name":"mailers","arguments":["DeviseMailer","reset_password_instructions","deliver_now",{"_aj_globalid":"gid://gitlab/User/2"},"ssdbBrNW5E4YbYMtsxet",{"_aj_symbol_keys":[]}],"locale":"en"}],"retry":3,"jid":"2965f79cf1a1eddf976e8bf8","created_at":1490262929.7783866,"enqueued_at":1490263083.510459,"error_message":"execution expired","error_class":"Net::OpenTimeout","failed_at":1490262960.0462484,"retry_count":2,"retried_at":1490263113.5671945},"jobstr":"{\"class\":\"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper\",\"wrapped\":\"ActionMailer::DeliveryJob\",\"queue\":\"mailers\",\"args\":[{\"job_class\":\"ActionMailer::DeliveryJob\",\"job_id\":\"79f51de1-048b-4407-abb8-bb04267d9994\",\"queue_name\":\"mailers\",\"arguments\":[\"DeviseMailer\",\"reset_password_instructions\",\"deliver_now\",{\"_aj_globalid\":\"gid://gitlab/User/2\"},\"ssdbBrNW5E4YbYMtsxet\",{\"_aj_symbol_keys\":[]}],\"locale\":\"en\"}],\"retry\":3,\"jid\":\"2965f79cf1a1eddf976e8bf8\",\"created_at\":1490262929.7783866,\"enqueued_at\":1490263083.510459,\"error_message\":\"execution expired\",\"error_class\":\"Net::OpenTimeout\",\"failed_at\":1490262960.0462484,\"retry_count\":1,\"retried_at\":1490263018.7805402}"}

Do you guys have any ideas what might be wrong?

Awaiting help :slight_smile:

Floris