Forum: Rails France Comprendre les messages d'erreurs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6686a248170f3c5b2e01e608c94917c7?d=identicon&s=25 Angelo (Guest)
on 2009-04-07 10:50
(Received via mailing list)
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:in `rbuf_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:in `readline'
    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:in `do_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:in `do_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:in `start'
    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:in `__send__'
    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:in `method_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:in `send'
    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:in `call_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:in
`perform_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:in
`perform_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:in `perform_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:in `cache'
    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:in `send'
    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:in
`process_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:in `process'
    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:in `dispatch'
    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:in `dispatch'
    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:in `synchronize'
    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:in `process_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:in `process_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:in `initialize'
    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:in `run'
    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:in `new'
    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:in `run'
    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:in `run'
    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:in `run'
    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:in `load'
    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:in `load'
    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:in `require'
    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:in `new_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:in `gem_original_require'
    C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
    script/server:3
2fd0206c71a1b22a9cc6293f38537461?d=identicon&s=25 Cyril Mougel (shingara)
on 2009-04-07 11:41
(Received via mailing list)
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:in `new'
>     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: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:in `gem_original_require'
>     C:/Prog/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>     script/server:3
A tout hasard, mauvaise configuration STMP ? ca plante sur l'envoi d'un
email.

--
Cyril Mougel
http://blog.shingara.fr
6686a248170f3c5b2e01e608c94917c7?d=identicon&s=25 Angelo (Guest)
on 2009-04-07 11:47
(Received via mailing list)
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
}
5d3f7d8e534a892e3029a3f3b9761de5?d=identicon&s=25 Joël AZÉMAR (Guest)
on 2009-04-07 21:27
(Received via mailing list)
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/acti...
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 <fabrice20000@voila.fr>
6686a248170f3c5b2e01e608c94917c7?d=identicon&s=25 Angelo (Guest)
on 2009-04-10 15:18
(Received via mailing list)
Merci
This topic is locked and can not be replied to.