>From: "Zed A. Shaw" <[EMAIL PROTECTED]> >Reply-To: mongrel-users@rubyforge.org >To: mongrel-users@rubyforge.org >Subject: Re: [Mongrel] file upload >Date: Thu, 28 Dec 2006 00:22:08 -0800 > >On Thu, 28 Dec 2006 03:02:25 +0000 >"Jim Douglas" <[EMAIL PROTECTED]> wrote: > > It was the controller, so now I get this error, > > > > DRb::DRbConnError in UploadController#progress > > > > druby://0.0.0.0:2999 - #<Errno::ECONNREFUSED: Connection refused - > > connect(2)> > > > >Don't use 0.0.0.0 but instead use 127.0.0.1 for your addresses. I've gotta >update the instructions but we're finding out that only Apple thinks >0.0.0.0 is a valid client connect address. > >-- >Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu >http://www.zedshaw.com/ >http://www.awprofessional.com/title/0321483502 -- The Mongrel Book >http://mongrel.rubyforge.org/ >http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help. >_______________________________________________ >Mongrel-users mailing list >Mongrel-users@rubyforge.org >http://rubyforge.org/mailman/listinfo/mongrel-users
..this is the upload.tb, # lib/upload.rb, the upload drb server require 'rubygems' require 'fastthread' require 'drb' require 'gem_plugin' GemPlugin::Manager.instance.load 'mongrel' => GemPlugin::INCLUDE DRb.start_service 'druby://127.0.0.1:2999', Mongrel::UploadProgress.new DRb.thread.join ...this is the config, # config/mongrel_upload_progress.conf uri "/", :handler => plugin("/handlers/upload", :path_info => '/files/upload', :drb => 'druby://127.0.0.1:2999'), :in_front => true ...when I start mongrel I noticed in the log that mongrel listens on 0.0.0.0:3001 ** Mongrel available at 0.0.0.0:3001 Should Mongrel be listening on 127.0.0.1:3001 also? If so where do you set the confi to do so? ...this is the error I am getting, DRb::DRbConnError in UploadController#progress druby://127.0.0.1:2999 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> RAILS_ROOT: /usr/opt/tomcat/workspace/upload/config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/1.8/drb/drb.rb:736:in `open' /usr/lib/ruby/1.8/drb/drb.rb:729:in `each' /usr/lib/ruby/1.8/drb/drb.rb:729:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing' /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend' /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing' #{RAILS_ROOT}/app/controllers/upload_controller.rb:6:in `__bind_1167323541_460888' #{RAILS_ROOT}/app/controllers/upload_controller.rb:5:in `progress' /usr/bin/mongrel_rails:18:in `load' /usr/bin/mongrel_rails:18 /usr/lib/ruby/1.8/drb/drb.rb:736:in `open' /usr/lib/ruby/1.8/drb/drb.rb:729:in `each' /usr/lib/ruby/1.8/drb/drb.rb:729:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing' /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend' /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/object/extending.rb:44:in `[]' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/object/extending.rb:44:in `instance_exec' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:378:in `initialize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:687:in `new' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:687:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:253:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:78:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:618:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:271:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:127:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243 /usr/lib/ruby/1.8/drb/drb.rb:736:in `open' /usr/lib/ruby/1.8/drb/drb.rb:729:in `each' /usr/lib/ruby/1.8/drb/drb.rb:729:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new' /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing' /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend' /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing' #{RAILS_ROOT}/app/controllers/upload_controller.rb:6:in `__bind_1167323541_460888' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/object/extending.rb:44:in `[]' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/object/extending.rb:44:in `instance_exec' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:378:in `initialize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:687:in `new' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:687:in `render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:253:in `render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render' #{RAILS_ROOT}/app/controllers/upload_controller.rb:5:in `progress' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:78:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:618:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:617:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel.rb:720:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:271:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/configurator.rb:270:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:127:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243 /usr/bin/mongrel_rails:18:in `load' /usr/bin/mongrel_rails:18 Thanks, Jim _________________________________________________________________ Experience the magic of the holidays. Talk to Santa on Messenger. http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://imagine-windowslive.com/minisites/santabot/default.aspx?locale=en-us _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users