Comprendre les messages d'erreurs


#1

Bonjour à tous et désolé pour ce titre peu explicite (j’ai pas eu
beaucoup d’inspiration)
J’ai une application faite en ruby développé par eclipse
Normalement je n’ai rien à changer dans le code mais lors du
déploiement, je rencontre un problème. Dans un fichier log, j’ai un
tas d’erreur qui apparaissent mais je ne comprend pas vraiment la
cause
Si vous pouviez m’aider

Je vous met le contenu du fichier log (c’est un peu long)

C:/Prog/Ruby/lib/ruby/1.8/timeout.rb:60:in rbuf_fill' C:/Prog/Ruby/lib/ruby/1.8/net/protocol.rb:132:inrbuf_fill’
C:/Prog/Ruby/lib/ruby/1.8/net/protocol.rb:116:in readuntil' C:/Prog/Ruby/lib/ruby/1.8/net/protocol.rb:126:inreadline’
C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:663:in recv_response' C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:395:indo_start’
C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:685:in critical' C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:395:indo_start’
C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:377:in start' C:/Prog/Ruby/lib/ruby/1.8/net/smtp.rb:315:instart’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/
action_mailer/base.rb:586:in perform_delivery_smtp' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/ action_mailer/base.rb:469:insend
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/
action_mailer/base.rb:469:in deliver!' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/ action_mailer/base.rb:352:inmethod_missing’
/app/controllers/login_controller.rb:70:in sign_up' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:1158:insend’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:1158:in perform_action_without_filters' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:697:incall_filters’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/filters.rb:689:in perform_action_without_benchmark' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/benchmarking.rb:68:inperform_action_without_rescue’
C:/Prog/Ruby/lib/ruby/1.8/benchmark.rb:293:in measure' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/benchmarking.rb:68:inperform_action_without_rescue’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/rescue.rb:199:in perform_action_without_caching' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:678:inperform_action’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:33:in
cache' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/query_cache.rb:8:incache’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/caching.rb:677:in perform_action' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:insend’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/base.rb:524:in process_without_filters' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:inprocess_without_session_management_support’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/session_management.rb:123:in process' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:inprocess’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:171:in handle_request' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:indispatch’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/dispatcher.rb:126:in dispatch_cgi' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:indispatch’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
bin/…/lib/mongrel/rails.rb:76:in process' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ bin/../lib/mongrel/rails.rb:74:insynchronize’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
bin/…/lib/mongrel/rails.rb:74:in process' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:159:inprocess_client’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel.rb:158:in each' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:158:inprocess_client’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel.rb:285:in run' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:285:ininitialize’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel.rb:285:in new' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:285:inrun’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel.rb:268:in initialize' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:268:innew’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel.rb:268:in run' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel/configurator.rb:282:inrun’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
lib/mongrel/configurator.rb:281:in each' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel/configurator.rb:281:inrun’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
bin/mongrel_rails:128:in run' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel/command.rb:212:inrun’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
bin/mongrel_rails:281
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:489:in load' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:489:inload’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in new_constants_in' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:489:inload’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
servers/mongrel.rb:64
C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in gem_original_require' C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:inrequire’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in require' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:innew_constants_in’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in require' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ server.rb:39 C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:ingem_original_require’
C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require’
script/server:3


#2

Angelo wrote:

C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/

action_controller/benchmarking.rb:68:in
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
bin/…/lib/mongrel/rails.rb:76:in process' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/ lib/mongrel.rb:268:innew’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
active_support/dependencies.rb:489:in load' C:/Prog/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:inrequire’
C:/Prog/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/
server.rb:39
C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in gem_original_require' C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:inrequire’
script/server:3
A tout hasard, mauvaise configuration STMP ? ca plante sur l’envoi d’un
email.


Cyril M.
http://blog.shingara.fr


#3

Merci pour ta réponse,
Je pensais aussi à ça mais je voulais une confirmation
Pourtant je me suis renseigné sur la confirmation SMTP et pour d’autre
application ils utilisent bien celle que j’ai indiqué

Dans le doute, pourriez vous me confirmé que ce bout de code est
correct (syntaxiquement)
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => ‘monsmtp’, # j’ai changé pour des raisons de
confidentialité
:port => ‘25’,
:user_name => ‘monmail’,
:password => ‘password’,
:authentication => :login
}


#4

ActionMailer::Base.smtp_settings = {
:address => ‘smtp.yourserver.com’, # default: localhost
:port => ‘25’, # default: 25
:user_name => ‘user’,
:password => ‘pass’,
:authentication => :plain # :plain, :login or
:cram_md5
}

http://api.rubyonrails.org/files/vendor/rails/actionmailer/README.html
Sinon j’avais posté une autre conf pour les serveurs pop qui requière
une
authentification ici :
http://www.railsfrance.org/node/1621

2009/4/7 Angelo removed_email_address@domain.invalid


#5

Merci