Content
Sent mail & 500 internal server error
Added by Chris Ker over 10 years ago
I’m in front of a wall with 500 internal server error when creating a new user as I validate the form through “Create and continue” button.
In the console the following message is displayed :
Sent mail to email@domain.ext (37.1ms)
Completed 500 Internal Server Error in 223.7ms
SocketError (getaddrinfo: Name or service not known):
app/controllers/users_controllers.rb:138:in `create’
My configuration.yml is as follow:
- default:
email_delivery_method: :smtp
default:
email_delivery_method: :smtp
smtp_address: smtp.domain.ext
smtp_port: 25
smtp_domain: domain.ext
smtp_user_name: email@domain.ext
smtp_password: 0*****
smtp_enable_starttls_auto: true
smtp_authentication: plain
- development:
email_delivery_method: :smtp
Actually I can’t find where the problem is occuring. After many tests on various conf, I would be pleased to get the solution here.
Thanks
Replies (2)
Can you provide any information about your installation?
I cannot find “app/controllers/users_controllers.rb” in mine, so I am suspicious of that. I have “app/controllers/users_controller.rb” in my path.
I now have successfully completed my installation so I might help you as far as I can. At this very step, the error was returned because:
- some configuration.yml syntax errors (keep an acurate eye on the configuration.yml.example after personal write option testing)
- smtp.dommain.ext DNS rule was not created properly (<=> smtp.domain: ∅)
- ssl was not set in my DNS (<=> smtp_enable_starttls_auto: ∅)
So I presume the users_controller.rb wasn’t able to render what it was made for.
In all case the app/controllers/… components are searchable with ls command in the following path directories:
var/www/
with vhosts vhosts/my.project.ext/httpdocs/app
or without vhosts /my.project.name/httpd/app
Good luck