Defect #979

Error 500 when upload file in document and download module

Added by Laradji nacer over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2008-04-03
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Documents
Target version:0.7
Resolution:Invalid Affected version:

Description

I have this error with 0.7 stable branch :

NoMethodError (undefined method `description=' for #<Attachment:0xb6f848bc>):
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:200:in `method_missing'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in `send'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in `attributes='
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in `each'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in `attributes='
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1926:in `initialize'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:571:in `new'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:571:in `create'
/app/controllers/application.rb:173:in `attach_files'
/app/controllers/application.rb:170:in `each_value'
/app/controllers/application.rb:170:in `attach_files'
/app/controllers/projects_controller.rb:199:in `add_file'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:101:in `process_request'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:149:in `with_signal_handler'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:99:in `process_request'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:77:in `process_each_request'
/usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi'
/usr/lib/ruby/1.8/fcgi.rb:609:in `each'
/usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:76:in `process_each_request'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:50:in `process!'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:24:in `process!'
/public/dispatch.fcgi:24

Iam from a 0.6 to 0.7 and i have made the db upgrade.

History

#1 Updated by Laradji nacer over 9 years ago

This bug can be product after i have select the file to upload and clicked to the add button.

The webserver have the write right on all the folder of redmine.

And i am running with ruby fcgid.

#2 Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

I think you didn't migrate your database. See RedmineUpgrade and reopen this ticket if needed.

#3 Updated by Laradji nacer over 9 years ago

I have re-launch the db migration : rake db:migrate RAILS_ENV="production"

And i still have the bug .

#4 Updated by Eric Davis over 9 years ago

I have re-launch the db migration : rake db:migrate RAILS_ENV="production"

Did you restart your webserver and fcgi processes after migrating?

#5 Updated by Laradji nacer over 9 years ago

Seem to work now after a full stop of apache and start ,i was thinking i've restarted the apache server.

I don't understand.

So its resolv :)

Thank jplang

Also available in: Atom PDF