Hey Steve,

It happened when I updated to the new master recently. I had a look  
around google and found it hard to find much on the error itself.  
Seems like it's a rare one. Like I said, It happened on my local  
machine when I left the defaults (OSX Tiger, ruby 1.8.4, rails 2.2.2)  
and my hostmonster account (Linux CentOS, ruby 1.8.4, rails 2.2.2).

This is the error

Processing AccountsController#signup (for 58.104.39.11 at 2009-02-20  
08:34:55) [POST]
   Session ID: 1e41ff872f718a8f9fc18f4ac8a84f72
   Parameters: {"user"=>{"less_value_for_text_input"=>"",  
"password_confirmation"=>"[FILTERED]", "terms_of_service"=>"1",  
"password"=>"[FILTERED]", "login"=>"bugger",  
"email"=>"[email protected]"}, "commit"=>"Sign-up Now",  
"action"=>"signup", "controller"=>"accounts"}


Errno::ECONNREFUSED (Connection refused - connect(2)):
     /usr/lib/ruby/1.8/net/protocol.rb:206:in `initialize'
     /usr/lib/ruby/1.8/net/protocol.rb:206:in `new'
     /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
     /usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
     /usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
     /usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
     /usr/lib/ruby/1.8/net/smtp.rb:392:in `do_start'
     /usr/lib/ruby/1.8/net/smtp.rb:377:in `start'
     /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ 
base.rb:671:in `perform_delivery_smtp'
     /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ 
base.rb:526:in `__send__'
     /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ 
base.rb:526:in `deliver!'
     /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ 
base.rb:392:in `method_missing'
     /vendor/plugins/exception_notification/lib/ 
exception_notifiable.rb:95:in `rescue_action_in_public'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/rescue.rb:130:in `rescue_action_without_handler'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/rescue.rb:61:in `rescue_action'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/rescue.rb:138:in `perform_action_without_caching'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/caching/sql_cache.rb:13:in `perform_action'
     /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ 
connection_adapters/abstract/query_cache.rb:34:in `cache'
     /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ 
query_cache.rb:8:in `cache'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/caching/sql_cache.rb:12:in `perform_action'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/base.rb:524:in `send'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/base.rb:524:in `process_without_filters'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/filters.rb:606:in  
`process_without_session_management_support'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/session_management.rb:134:in `process'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/base.rb:392:in `process'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:183:in `handle_request'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:110:in `dispatch_unlocked'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:123:in `dispatch'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:122:in `synchronize'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:122:in `dispatch'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:132:in `dispatch_cgi'
     /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/ 
action_controller/dispatcher.rb:39:in `dispatch'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
101:in `process_request'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
151:in `with_signal_handler'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
99:in `process_request'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
76:in `process_each_request'
     /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in  
`each_cgi'
     /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:117:in `session'
     /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:104:in  
`each_request'
     /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:36:in `each'
     /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in  
`each_cgi'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
75:in `process_each_request'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
74:in `catch'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
74:in `process_each_request'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
49:in `process!'
     /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/fcgi_handler.rb: 
23:in `process!'
     dispatch.fcgi:26


Not sure where the issue lies. Looks like it's defaulting to smtp  
delivery. Setting ActionMailer::Base.delivery_method = :sendmail on  
local production gives the following

Processing AccountsController#signup (for 127.0.0.1 at 2009-02-21  
02:43:26) [GET]
   Session ID: 9c8009cbd7622502643f650e1b6f939f
   Parameters: {"action"=>"signup", "controller"=>"accounts"}
Rendering template within layouts/plain
Rendering accounts/signup
Completed in 6ms (View: 3, DB: 0) | 200 OK [http://localhost/signup]
postdrop: warning: unable to look up public/pickup: No such file or  
directory
postdrop: warning: unable to look up public/pickup: No such file or  
directory

when I signup because I don't have sendmail on my local machine and  
fixes the problem on my remote host so I thought it couldn't hurt  
adding it to the production.rb as the default uses sendmail anyway????

Jason


On 21/02/2009, at 2:57 AM, Steven Bristol wrote:

>
> On Fri, Feb 20, 2009 at 10:48 AM, Jason Keenan  
> <[email protected]> wrote:
>> Hey there,
>> Just wondering if anyone else has come across a 'Errno::ECONNREFUSED
>> (Connection refused - connect(2)):' error when signing up.
>> Seemed to only happen in production and happened on my local and  
>> remote
>> machine.
>> Fixed it by adding
>> ActionMailer::Base.delivery_method = :sendmail
>> to production.rb
>> Not sure how this goes on windows hosting.
>> Jason :)
>>
>>
>
>
>
> I haven't seen this.
>
> steve
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to