Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

No funciona la recuperación de contraseña #284

Open
mgavilanes opened this issue Mar 13, 2017 · 2 comments
Open

No funciona la recuperación de contraseña #284

mgavilanes opened this issue Mar 13, 2017 · 2 comments

Comments

@mgavilanes
Copy link

captura de pantalla 2017-03-13 a las 12 24 16

Mensaje de error al solicitar una contraseña nueva para un administrador.

@dcabo
Copy link
Member

dcabo commented Mar 13, 2017

El error salta al intentar mandar el correo:

2017-03-13T11:41:41.799422+00:00 app[web.1]: Sent mail to [email protected] (9.8ms)
2017-03-13T11:41:41.799640+00:00 app[web.1]: Completed 500 Internal Server Error in 36ms
2017-03-13T11:41:41.805350+00:00 app[web.1]: 
2017-03-13T11:41:41.805352+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2017-03-13T11:41:41.805353+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:541:in `initialize'
2017-03-13T11:41:41.805353+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:541:in `open'
2017-03-13T11:41:41.805354+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:541:in `tcp_socket'
2017-03-13T11:41:41.805354+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:551:in `block in do_start'
2017-03-13T11:41:41.805355+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
2017-03-13T11:41:41.805356+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:550:in `do_start'
2017-03-13T11:41:41.805356+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:520:in `start'
2017-03-13T11:41:41.805357+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
2017-03-13T11:41:41.805358+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:2129:in `do_delivery'
2017-03-13T11:41:41.805359+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:232:in `block in deliver'

Así que debe de ser un tema de configuración de Heroku. No sé si esto funcionó en algún momento. ¿Llegamos a configurar un add-on para el correo?

@dcabo
Copy link
Member

dcabo commented Mar 13, 2017

Como solución temporal para este caso particular he hecho:

$ heroku run rails console --app quienmanda
> User.where(email: '[email protected]')
> u = User.find(12)
> u.password='...'
> u.save

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants