Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

problema con el exception notifier en producción #30

Open
etagwerker opened this issue Oct 24, 2011 · 3 comments
Open

problema con el exception notifier en producción #30

etagwerker opened this issue Oct 24, 2011 · 3 comments
Assignees

Comments

@etagwerker
Copy link

estoy viendo esto en los logs:

Started GET "/projects/favicon.ico" for 186.19.144.55 at 2011-10-24 19:15:43 +0000
Processing by ProjectsController#show as
Parameters: {"id"=>"favicon"}
Completed 404 Not Found in 371ms
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_request.text.erb (11.6ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.5ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_session.text.erb (0.8ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.0ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_environment.text.erb (84.1ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.2ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (6.2ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.0ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p180/gems/exception_notification-2.5.2/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (124.7ms)

Sent mail to [email protected] (215ms)

Errno::ECONNREFUSED (Connection refused - connect(2)):

Es raro. Parece que envía el error, pero me confunde el ECONNREFUSED, que parece estar relacionado con la base de datos.

  • E
@ghost ghost assigned maxidr Oct 24, 2011
@maxidr
Copy link
Member

maxidr commented Oct 25, 2011

Configuraron el smtp?

Para configurar el SMTP se debe crear el archivo conf/initializer/setup_mail.rb con lo siguiente:

ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => "errors.congresointeractivo",
:password => "xxxxxxx",
:authentication => "plain",
:enable_starttls_auto => true
}

O será que no puede abrir puerto contra el SMTP de gmail?

@etagwerker
Copy link
Author

Este es un tema. No está configurado en initializers.

Pero no me parece bien que subamos a ese archivo info de user name y password (porque es un proyecto abierto y cualquiera podría usar esos datos para spamear, no?)

¿Qué te parece, @maxidr? ¿Cómo lo podríamos solucionar?

@maxidr
Copy link
Member

maxidr commented Aug 6, 2012

Completamente de acuerdo. Me parece que lo mas lógico es usar variables de entorno así no queda "pegado" al código.

ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => ENV['NOTIFIER_USER_NAME'],
:password => ENV['NOTIFIER_PASSWORD'],
:authentication => "plain",
:enable_starttls_auto => true
}

Te parece?

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

No branches or pull requests

2 participants