[Mongrel] Mongrel upload progress not showing progress on production server

Benjamin Jackson bhjackson at gmail.com
Tue Feb 27 09:40:23 EST 2007


Hi all,

Tried out the mongrel upload progress plugin with Drb and it works
great on my OSX development box, but when putting it into production
(Ubuntu Dapper), uploads complete but the app isn't returning any
values for upload progress, and uploads are not showing up in the
queue when running upload_client.rb. Before anyone asks, yes, I'm
running both the mongrel instances and the upload.rb script.

Below are the relevant log entries and code snippets. Thanks!

data_file.rb:

…

  def progress
    warn 'progress'
    render :update do |page|
      warn 'update'
      @status = Mongrel::Uploads.check(params[:upload_id])
      warn @status.inspect
      page.upload_progress.update(@status[:size], @status[:received]) if @status
    end
  end

…

mongrel.log:

...
progress
update
nil
progress
update
nil
progress
update
nil
…

production.log:

Processing DataFilesController#progress (for 201.17.52.1 at 2007-02-23
22:16:29) [POST]
  Parameters: {"action"=>"progress", "controller"=>"data_files",
"upload_id"=>"1172268962"}
Completed in 0.00706 (141 reqs/sec) | Rendering: 0.00667 (94%) | 200
OK [http://central.incomumdesign.com/files/progress?upload_id=1172268962]


Processing DataFilesController#progress (for 201.17.52.1 at 2007-02-23
22:16:29) [POST]
  Parameters: {"action"=>"progress", "controller"=>"data_files",
"upload_id"=>"1172268962"}
Completed in 0.00854 (117 reqs/sec) | Rendering: 0.00813 (95%) | DB:
0.00000 (0%) | 200 OK
[http://central.incomumdesign.com/files/progress?upload_id=1172268962]


Processing DataFilesController#progress (for 201.17.52.1 at 2007-02-23
22:16:32) [POST]
  Parameters: {"action"=>"progress", "controller"=>"data_files",
"upload_id"=>"1172268962"}
Completed in 0.00670 (149 reqs/sec) | Rendering: 0.00635 (94%) | 200
OK [http://central.incomumdesign.com/files/progress?upload_id=1172268962]


Processing DataFilesController#progress (for 201.17.52.1 at 2007-02-23
22:16:35) [POST]
  Parameters: {"action"=>"progress", "controller"=>"data_files",
"upload_id"=>"1172268962"}
Completed in 0.00759 (131 reqs/sec) | Rendering: 0.00719 (94%) | DB:
0.00000 (0%) | 200 OK
[http://central.incomumdesign.com/files/progress?upload_id=1172268962]


Processing DataFilesController#progress (for 201.17.52.1 at 2007-02-23
22:16:38) [POST]
  Parameters: {"action"=>"progress", "controller"=>"data_files",
"upload_id"=>"1172268962"}
Completed in 0.00802 (124 reqs/sec) | Rendering: 0.00757 (94%) | 200
OK [http://central.incomumdesign.com/files/progress?upload_id=1172268962]


Processing DataFilesController#upload (for 201.17.52.1 at 2007-02-23
22:16:40) [POST]
  Session ID: 23b0c52d05a16439015cb313a05a7660
  Parameters: {"commit"=>"Upload", "xhr"=>"true", "action"=>"upload",
"controller"=>"data_files", "upload_id"=>"1172268962",
"data_file"=>{"description"=>""}, "data"=>#<File:/tmp/CGI12410.0>}
Completed in 0.26787 (3 reqs/sec) | Rendering: 0.00011 (0%) | DB:
0.25820 (96%) | 200 OK
[http://central.incomumdesign.com/files/upload?upload_id=1172268962&xhr=true]


More information about the Mongrel-users mailing list