Vote #62970
完了Error 500 when upload file in document and download module
0%
説明
I have this error with 0.7 stable branch :
NoMethodError (undefined method description=' for #<Attachment:0xb6f848bc>):method_missing'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:200:in
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in send'attributes='
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in each'attributes='
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1926:in initialize'new'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:571:in
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:571:in create'attach_files'
/app/controllers/application.rb:173:in
/app/controllers/application.rb:170:in each_value'attach_files'
/app/controllers/application.rb:170:in
/app/controllers/projects_controller.rb:199:in add_file'send'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in perform_action_without_filters'call_filters'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in perform_action_without_benchmark'perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
/usr/lib/ruby/1.8/benchmark.rb:293:in measure'perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in perform_action_without_caching'perform_action'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in cache'cache'
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in perform_action'send'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in process_without_filters'process_without_session_management_support'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in process'process'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in handle_request'dispatch'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in dispatch_cgi'dispatch'
/var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:101:in process_request'with_signal_handler'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:149:in
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:99:in process_request'process_each_request'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:77:in
/usr/lib/ruby/1.8/fcgi.rb:612:in each_cgi'each'
/usr/lib/ruby/1.8/fcgi.rb:609:in
/usr/lib/ruby/1.8/fcgi.rb:609:in each_cgi'process_each_request'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:76:in
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:50:in process!'process!'
/var/lib/gems/1.8/gems/rails-2.0.2/lib/fcgi_handler.rb:24:in
/public/dispatch.fcgi:24
Iam from a 0.6 to 0.7 and i have made the db upgrade.
journals
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.
--------------------------------------------------------------------------------
I think you didn't migrate your database. See [[RedmineUpgrade]] and reopen this ticket if needed.
--------------------------------------------------------------------------------
I have re-launch the db migration : rake db:migrate RAILS_ENV="production"
And i still have the bug .
--------------------------------------------------------------------------------
bq. I have re-launch the db migration : rake db:migrate RAILS_ENV="production"
Did you restart your webserver and fcgi processes after migrating?
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------