Can't access Redmine after deleting an empty group
Added by Christoph Franz over 5 years ago
Hi there,
i cleaned up my redmine and deleted an empty group. After that I'm getting the following text:
Page not found The page you were trying to access doesn't exist or has been removed. Back
Inside the logs it says:
Processing by MyController#page as HTML Current user: username (id=123) Rendered issues/_list_simple.html.erb (0.1ms) Rendered my/blocks/_issuesassignedtome.html.erb (21.2ms) Rendered issues/_list_simple.html.erb (0.1ms) Rendered my/blocks/_issuesreportedbyme.html.erb (5.5ms) Rendered my/page.html.erb within layouts/base (28.2ms) Completed 500 Internal Server Error in 44ms (ActiveRecord: 6.2ms) ActiveRecord::RecordNotFound (Couldn't find Group with 'id'=6 [WHERE `users`.`type` IN ('Group', 'GroupBuiltin', 'GroupAnonymous', 'GroupNonMember')]): lib/redmine/menu_manager.rb:446:in `call' lib/redmine/menu_manager.rb:446:in `allowed?' lib/redmine/menu_manager.rb:164:in `block in menu_items_for' lib/redmine/menu_manager.rb:163:in `each' lib/redmine/menu_manager.rb:163:in `menu_items_for' lib/redmine/menu_manager.rb:90:in `render_menu' lib/redmine/menu_manager.rb:80:in `render_main_menu' app/views/layouts/base.html.erb:45:in `_app_views_layouts_base_html_erb__4524485701052734591_56102060'
He is not able to find the group with ID 6. Is it able to add this group manually again? Any hints?
thx for your help!!
Replies (1)
RE: Can't access Redmine after deleting an empty group - Added by Christoph Franz over 5 years ago
Got it:
INSERT INTO users (id, lastname, admin, status, created_on, updated_on, type) VALUES (6,"GROUP NAME",0,1,"2015-03-30 10:29:30","2015-03-30 10:29:30","Group");