Server error when trying to reset password.

Skip to first unread message

Guillermo Contrerras

May 3, 2015, 3:55:16 PM5/3/15
This in in Ubunut 14.04 LTS with custom domain and a self generated SSL Cerrtificate. If you are using a commercial SSL Certificagte you will not have this problem.

When you try to reset a password you get a Sever Error page.

If you look into the log(/var/www/gitorious/app/log/production.log) you will find:

OpenSSL::SSL::SSLError (hostname "localhost" does not match the server certificate):
app/controllers/admin/users_controller.rb:91:in `reset_password'
app/middlewares/dolt_cache_middleware.rb:24:in `call'
app/middlewares/dolt_auth_middleware.rb:26:in `call'

In order to fix this sudo nano the environment configuration file (/var/www/gitorious/app/config/environment.rb) and this to the end of it:

# Turn off auto TLS for e-mail
ActionMailer::Base.smtp_settings[:enable_starttls_auto] = false

Then restart gitorious with the following command:

sudo gitoriousctl restart gitorious-web


Reply all
Reply to author
0 new messages