プロジェクト

全般

プロフィール

Vote #62970

完了

Error 500 when upload file in document and download module

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Documents_4
対象バージョン:
開始日:
2008/04/03
期日:
進捗率:

0%

予定工数:
category_id:
4
version_id:
1
issue_org_id:
979
author_id:
706
assigned_to_id:
0
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


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

--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリDocuments_4 にセット
  • 対象バージョン0.7_1 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0