I ma trying to get this upload working, http://mongrel.rubyforge.org/docs/upload_progress.html, ....after starting from the command line, mongrel_rails start -d -p 3001 -S config/mongrel_upload_progress.conf I get this eror in the browser, NameError uninitialized constant UploadProgressRailsController RAILS_ROOT: /usr/opt/tomcat/workspace/upload/config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' generated/routing/recognition.rb:4:in `recognize_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:511:in `recognize!'' /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 /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' generated/routing/recognition.rb:4:in `recognize_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:511:in `recognize!'' /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/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' generated/routing/recognition.rb:4:in `recognize_path'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:511:in `recognize!'' /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 Request Parameters: None Show session dump Fedora Core 6 Mongrel 3.3.14 Mongrel_Upload_progress - .2 Thanks for the help, Jim _________________________________________________________________ Type your favorite song.? Get a customized station.? Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001
On 12/27/06, Jim Douglas <jdz99 at hotmail.com> wrote:> I ma trying to get this upload working, > > http://mongrel.rubyforge.org/docs/upload_progress.html, > > ....after starting from the command line, > > mongrel_rails start -d -p 3001 -S config/mongrel_upload_progress.conf > > I get this eror in the browser, > > NameError > > uninitialized constant UploadProgressRailsController >Is your controller in a file correctly named upload_progress_rails_controller.rb ? This is typically the kind of error we get when the controlller name doesn''t match its filename (check the plural and the CamelName). We never know...
>From: Eugenol <eugenol at gmail.com> >Reply-To: mongrel-users at rubyforge.org >To: mongrel-users at rubyforge.org >Subject: Re: [Mongrel] file upload >Date: Thu, 28 Dec 2006 03:15:36 +0100 > >On 12/27/06, Jim Douglas <jdz99 at hotmail.com> wrote: > > I ma trying to get this upload working, > > > > http://mongrel.rubyforge.org/docs/upload_progress.html, > > > > ....after starting from the command line, > > > > mongrel_rails start -d -p 3001 -S config/mongrel_upload_progress.conf > > > > I get this eror in the browser, > > > > NameError > > > > uninitialized constant UploadProgressRailsController > > > >Is your controller in a file correctly named >upload_progress_rails_controller.rb ? This is typically the kind of >error we get when the controlller name doesn''t match its filename >(check the plural and the CamelName). > >We never know... >_______________________________________________ >Mongrel-users mailing list >Mongrel-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/mongrel-usersIt 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)> 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_1167274520_289444'' #{RAILS_ROOT}/app/controllers/upload_controller.rb:5:in `progress'' /usr/bin/mongrel_rails:18:in `load'' /usr/bin/mongrel_rails:18 ...and when I try to run, ..ruby lib/upload.rg I get this error, fastthread not loaded : fastthread must be required before thread How can I load fastthread? Thanks, Jim _________________________________________________________________ Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
On Thu, 28 Dec 2006 03:02:25 +0000 "Jim Douglas" <jdz99 at hotmail.com> 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.
>From: "Zed A. Shaw" <zedshaw at zedshaw.com> >Reply-To: mongrel-users at rubyforge.org >To: mongrel-users at 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" <jdz99 at hotmail.com> 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 at 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
On Thu, 28 Dec 2006 16:40:28 +0000 "Jim Douglas" <jdz99 at hotmail.com> wrote:> ...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:3001First, make sure you started your drb server before your mongrel server. The upload progress uses the drb server to keep track of things. Second, unless you told mongrel to use 3001 it shouldn''t be. Did you use -p 3001 in the command line or config? Otherwise, listening on 0.0.0.0 is fine, it''s just trying to connect to 0.0.0.0 is bad. Some OS allow it but they really shouldn''t. -- 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.
>From: "Zed A. Shaw" <zedshaw at zedshaw.com> >Reply-To: mongrel-users at rubyforge.org >To: mongrel-users at rubyforge.org >Subject: Re: [Mongrel] file upload >Date: Thu, 28 Dec 2006 09:03:57 -0800 > >On Thu, 28 Dec 2006 16:40:28 +0000 >"Jim Douglas" <jdz99 at hotmail.com> wrote: > > > ...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 > >First, make sure you started your drb server before your mongrel server. >The upload progress uses the drb server to keep track of things. > >Second, unless you told mongrel to use 3001 it shouldn''t be. Did you use >-p 3001 in the command line or config? > >Otherwise, listening on 0.0.0.0 is fine, it''s just trying to connect to >0.0.0.0 is bad. Some OS allow it but they really shouldn''t. > >-- >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 at rubyforge.org >http://rubyforge.org/mailman/listinfo/mongrel-usersI started mongrel on 3001 Is this how I should be starting the dbr server? ruby lib/upload.rb This is the browser output, try { } catch (e) { alert(''RJS error:\n\n'' + e.toString()); alert(''''); throw e } Thanks a lot Zed, Jim _________________________________________________________________ Dave vs. Carl: The Insignificant Championship Series. ?Who will win? http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001