Project

General

Profile

Administrator get error 404 [solved]

Added by Eugene Parfenov over 9 years ago

sh: svn: команда не найдена
sh: darcs: команда не найдена
sh: hg: команда не найдена
sh: bzr: команда не найдена
Environment:
  Redmine version                2.6.3.stable
  Ruby version                   2.1.6-p336 (2015-04-13) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.7.1
  Filesystem                     
Redmine plugins:
  redmine_apijs                  5.1.0
  redmine_embedded_video         0.0.3.1
  redmine_importer               1.0
  redmine_slack                  0.1
  redmine_tagging                0.1.2

Operating system:                CentOS release 6.6 (Final)
Database:                        mysql  Ver 15.1 Distrib 5.5.42-MariaDB, for Linux (x86_64) using readline 5.1
Frontend:                        nginx version: nginx/1.7.10
Backend:                         thin 1.6.3 codename Protein Powder

Exist one project "projects/m3c".
If user have administrator rights then he will receive error "404 page not found", but the regular user have no problems.

Cut from production.log:

Started GET "/projects/m3c" for 127.0.0.1 at 2015-04-28 13:32:06 +0900
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"m3c"}
  Current user: igro (id=72)
  Rendered projects/_members_box.html.erb (15.4ms)
  Rendered projects/_sidebar.html.erb (1.4ms)
  Rendered projects/show.html.erb within layouts/base (34.7ms)
Completed 500 Internal Server Error in 129.1ms

ActionController::RoutingError (No route matches {:project_id=>#<Project id: 36, name: some_confidential_info, homepage: "", is_public: true, parent_id: nil, created_on: "2013-07-12 06:08:27", updated_on: "2015-04-15 01:08:20", identifier: "m3c", status: 1, lft: 37, rgt: 42, inherit_members: false>, :controller=>"importer"}):
  lib/redmine/menu_manager.rb:150:in `render_single_menu_node'
  lib/redmine/menu_manager.rb:102:in `render_menu_node'
  lib/redmine/menu_manager.rb:91:in `block in render_menu'
  lib/redmine/menu_manager.rb:168:in `block in menu_items_for'
  lib/redmine/menu_manager.rb:165:in `each'
  lib/redmine/menu_manager.rb:165: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___3365921152869512720_70203357634460'
  app/controllers/projects_controller.rb:163:in `show'

Same error when trying to edit project settings:

Started GET "/admin" for 127.0.0.1 at 2015-04-28 13:33:35 +0900
Processing by AdminController#index as HTML
  Current user: igro (id=72)
  Rendered admin/_menu.html.erb (7.3ms)
  Rendered admin/index.html.erb within layouts/admin (11.3ms)
  Rendered layouts/base.html.erb (17.3ms)
Completed 200 OK in 42.2ms (Views: 35.5ms | ActiveRecord: 0.8ms)
Started GET "/admin/projects" for 127.0.0.1 at 2015-04-28 13:33:37 +0900
Processing by AdminController#projects as HTML
  Current user: igro (id=72)
  Rendered admin/projects.html.erb within layouts/admin (45.1ms)
  Rendered admin/_menu.html.erb (6.8ms)
  Rendered layouts/base.html.erb (17.3ms)
Completed 200 OK in 106.9ms (Views: 99.0ms | ActiveRecord: 0.9ms)
Started GET "/projects/m3c/settings" for 127.0.0.1 at 2015-04-28 13:33:44 +0900
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"m3c"}
  Current user: igro (id=72)
  Rendered projects/_form.html.erb (34.9ms)
  Rendered projects/_edit.html.erb (41.5ms)
  Rendered projects/settings/_modules.html.erb (5.6ms)
  Rendered projects/settings/_members.html.erb (164.8ms)
  Rendered projects/settings/_versions.html.erb (29.4ms)
  Rendered projects/settings/_issue_categories.html.erb (3.6ms)
  Rendered projects/settings/_wiki.html.erb (3.8ms)
  Rendered projects/settings/_repositories.html.erb (5.1ms)
  Rendered projects/settings/_activities.html.erb (12.8ms)
  Rendered plugins/redmine_tagging/app/views/tagging/_tagtab.erb (27.0ms)
  Rendered common/_tabs.html.erb (323.4ms)
  Rendered projects/settings.html.erb within layouts/base (327.3ms)
Completed 500 Internal Server Error in 371.8ms

ActionController::RoutingError (No route matches {:project_id=>#<Project id: 36, name: some_confidential_info, homepage: "", is_public: true, parent_id: nil, created_on: "2013-07-12 06:08:27", updated_on: "2015-04-15 01:08:20", identifier: "m3c", status: 1, lft: 37, rgt: 42, inherit_members: false>, :controller=>"importer"}):
  lib/redmine/menu_manager.rb:150:in `render_single_menu_node'
  lib/redmine/menu_manager.rb:102:in `render_menu_node'
  lib/redmine/menu_manager.rb:91:in `block in render_menu'
  lib/redmine/menu_manager.rb:168:in `block in menu_items_for'
  lib/redmine/menu_manager.rb:165:in `each'
  lib/redmine/menu_manager.rb:165: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__2041865557480979752_69971802725240'

Don't know what to do.


Replies (2)

RE: Administrator get error 404 - Added by Martin Denizet (redmine.org team member) over 9 years ago

Hello Eugene,

From your log, I understand that the problem is caused by the "redmine_importer" plugin.
Make sure you have a version compatible with your version of Redmine.
You could also choose to disable it.

Cheers,

RE: Administrator get error 404 - Added by Eugene Parfenov over 9 years ago

Ooooh! Thank a lot =)
Now everything work fine.

    (1-2/2)