プロジェクト

全般

プロフィール

Vote #74843

未完了

Error when deleting project

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

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Administration_8
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
8
version_id:
0
issue_org_id:
15951
author_id:
94158
assigned_to_id:
0
comments:
6
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
77
ステータス-->[Needs feedback]

説明

When I tried to delete project in Administratoion/Projects after confirmation I received an error Redmine 500 error.
In /var/www/redmine/log/production.log there are the following:

Started DELETE "/projects/x01" for 192.168.204.49 at Fri Jan 24 11:22:43 +0400 2014
Processing by ProjectsController#destroy as HTML
Parameters: {"authenticity_token"=>"/D91RCipYv10ilE/09o4HOJ8NytS8c3rlIdObYFcu8M=", "id"=>"x01"}
Current user: rifle (id=1)
Rendered projects/destroy.html.erb within layouts/base (6.8ms)
Completed 200 OK in 44.3ms (Views: 32.5ms | ActiveRecord: 4.0ms)
Started DELETE "/projects/x01" for 192.168.204.49 at Fri Jan 24 11:22:45 +0400 2014
Processing by ProjectsController#destroy as HTML
Parameters: {"commit"=>"Delete", "utf8"=>"✓", "confirm"=>"1", "authenticity_token"=>"/D91RCipYv10ilE/09o4HOJ8NytS8c3rlIdObYFcu8M=", "id"=>"x01"}
Current user: rifle (id=1)
Completed 500 Internal Server Error in 482.0ms

NoMethodError (undefined method children' for nil:NilClass):
app/models/issue.rb:165:in
create_or_update'
app/models/issue.rb:1371:in recalculate_attributes_for'
app/models/issue.rb:1334:in
update_parent_attributes'
app/models/issue.rb:179:in destroy'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:455:in
destroy_descendants'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:453:in destroy_descendants'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:426:in
in_tenacious_transaction'
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:443:in destroy_descendants'
app/models/issue.rb:179:in
destroy'
app/controllers/projects_controller.rb:236:in `destroy'

Unfortunately I can't find the solurion in the internet. Redmine version 2.4.2


journals

Really the latest 2.4.2 or a checkout from our trunk?
You can check this via Administration > Info.

It points to the awesome_nested_set's which where modified in the current trunk.
--------------------------------------------------------------------------------
Daniel Felix wrote:
> Really the latest 2.4.2 or a checkout from our trunk?
> You can check this via Administration > Info.
>
> It points to the awesome_nested_set's which where modified in the current trunk.

Yes!
Environment:
Redmine version 2.4.2.stable
Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter MySQL
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
redmine_better_gantt_chart 0.9.0
redmine_rt_custom_field 0.1.1
--------------------------------------------------------------------------------
Addition:

I can delete all projects except the only one.
--------------------------------------------------------------------------------
I don't see any call to @#children@ at @app/models/issue.rb:165:in `create_or_update'@. Could you try without plugins?
--------------------------------------------------------------------------------
Hi, Jean-Phileppe!

I can't delete plugins.

The commands:

rake redmine:plugins:migrate NAME=redmine_better_gantt_chart VERSION=0 RAILS_ENV=production
rake redmine:plugins:migrate NAME=redmine_rt_custom_field VERSION=0 RAILS_ENV=production

procced without any error, but both plugins still avialible on the Administration/Plugins...

Regards,
Andrey

--------------------------------------------------------------------------------
I have the same issue in version 2.4.3 (also in 2.4.2) running on a debian linux.

any solution?
--------------------------------------------------------------------------------

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

いいね!0
いいね!0