Loriowar / redmine_issues_tree

Provides a tree view of the Redmine issues list
GNU General Public License v3.0
115 stars 72 forks source link

View all issues with 404 error #62

Closed lnh089 closed 5 years ago

lnh089 commented 6 years ago

Hello,when I have installed this plugin and click projects- view all issues,it show 404 error as below: image

Loriowar commented 6 years ago

Look at #30. This feature was implemented in c9cef2149ec6ae1718fdcc2e0f4f5ae1c0a0ceab. But only for Redmine 3.x. Which version of Redmine you have?

lnh089 commented 6 years ago

Hello, Loriowar,My redmine environment as below,I will update it to 3.4.2 version in the future, Environment: Redmine version 3.3.2.stable Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux] Rails version 4.2.7.1 Environment production Database adapter Mysql2 SCM: Subversion 1.7.14 Git 1.8.3.1 Filesystem
Redmine plugins: redmine_custom_workflows 0.1.6 redmine_favorite_projects 2.0.3 redmine_issues_tree 0.0.10

Now I have installed plugin with 0.0.10 version,but click projects-view all issues,it still appear 404 error. And have another issue, how to remove this plugin? I found when I remove it ,the redmine cannot to work,show error as below: image Note: When I remove this plugin and restart redmine,error appear,but after a half-hour,redmine is work normal,so I don't know if this problem is caused by this plugin.

Loriowar commented 6 years ago

Interesting. For pure Redmine 3.3 plugin works as expected. So, I can suppose what this can be a plugin incompatibility. What about error after plugin deletion: may you show logs of a last error? This will be very helpfully for debug and fix. Finally, about Redmine 3.4. Support of this version still is in development. Look at #60 for details.

lnh089 commented 6 years ago

When I click Projects-View all issues,show 404 error,and production.log show below info: Started GET "/issues" for 192.168.16.33 at 2017-12-01 16:13:25 +0800 Processing by IssuesController#index as HTML Current user: admin (id=1) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_issues_index_header_tags.html.haml (0.8ms) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_link_to_tree_view.html.haml (0.2ms) Rendered plugins/redmine_issues_tree/app/views/issues/index.html.erb within layouts/base (4.0ms) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.1ms) Completed 404 Not Found in 65ms (Views: 10.8ms | ActiveRecord: 18.7ms) [root@localhost redmine]#

Loriowar commented 6 years ago

Thanks, but I mean log of 500 error which appear after plugin removing.

lnh089 commented 6 years ago

Loriowar,log of 500 error info as below,I try to stop nginx and restart it ,the same error appear: the system if Passenger is running as root. 2017/12/04 16:13:27 [emerg] 12670#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2017/12/04 16:13:27 [emerg] 12670#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2017/12/04 16:13:27 [emerg] 12670#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2017/12/04 16:13:27 [emerg] 12670#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2017/12/04 16:13:27 [emerg] 12670#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 2017/12/04 16:13:27 [emerg] 12670#0: still could not bind()

[ 2017-12-04 16:13:29.6353 11194/7fe275a4e700 age/Cor/CoreMain.cpp:585 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown) [ 2017-12-04 16:13:29.6355 11194/7fe27b704880 age/Cor/CoreMain.cpp:989 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected... [ 2017-12-04 16:13:29.6357 11194/7fe27b704880 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 11323, application /opt/redmine/public [ 2017-12-04 16:13:29.6367 11194/7fe2751cc700 Ser/Server.h:817 ]: [ServerThr.2] Freed 128 spare client objects [ 2017-12-04 16:13:29.6368 11194/7fe2751cc700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished [ 2017-12-04 16:13:29.6375 11194/7fe275a4e700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects [ 2017-12-04 16:13:29.6375 11194/7fe275a4e700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished [ 2017-12-04 16:13:29.6377 11194/7fe24f7fe700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects [ 2017-12-04 16:13:29.6377 11194/7fe24f7fe700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished [ 2017-12-04 16:13:29.6385 11194/7fe27494a700 Ser/Server.h:817 ]: [ServerThr.3] Freed 128 spare client objects [ 2017-12-04 16:13:29.6385 11194/7fe27494a700 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished

[ 2017-12-04 16:13:29.6396 11204/7f9040887700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown) [ 2017-12-04 16:13:29.6403 11194/7fe24ffff700 Ser/Server.h:817 ]: [ServerThr.4] Freed 128 spare client objects [ 2017-12-04 16:13:29.6403 11194/7fe24ffff700 Ser/Server.h:464 ]: [ServerThr.4] Shutdown finished [ 2017-12-04 16:13:29.6403 11204/7f90460d7880 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected... [ 2017-12-04 16:13:29.6405 11204/7f9040887700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished [ 2017-12-04 16:13:29.6406 11204/7f9033fff700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects [ 2017-12-04 16:13:29.6406 11204/7f9033fff700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished [ 2017-12-04 16:13:29.6413 11194/7fe27b704880 age/Cor/CoreMain.cpp:907 ]: Checking whether to disconnect long-running connections for process 11323, application /opt/redmine/public [ 2017-12-04 16:13:29.6421 11204/7f90460d7880 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished

[ 2017-12-04 16:13:29.6456 11194/7fe275a4e700 age/Cor/CoreMain.cpp:585 ]: Signal received. Gracefully shutting down... (send signal 1 more time(s) to force shutdown) [ 2017-12-04 16:13:30.0117 11194/7fe27b704880 age/Cor/CoreMain.cpp:1055 ]: Passenger core shutdown finished [ 2017-12-04 16:13:30.0852 12682/7fac33b78880 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog... [ 2017-12-04 16:13:30.0997 12685/7f815c43f880 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core... [ 2017-12-04 16:13:30.1001 12685/7f815c43f880 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode. [ 2017-12-04 16:13:30.1069 12685/7f815c43f880 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 12685 [ 2017-12-04 16:13:30.1242 12699/7fa5e8ac0880 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter... [ 2017-12-04 16:13:30.1273 12699/7fa5e8ac0880 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 12699 App 12717 stdout: App 12717 stderr: /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/shared_helpers.rb:107:in rescue in filesystem_access' App 12717 stderr: : There was an error while trying to write to/opt/redmine/Gemfile.lock. It is likely that you need to grant write permissions for that path. (Bundler::PermissionError) App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/shared_helpers.rb:105:infilesystem_access' App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/definition.rb:319:in lock' App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/runtime.rb:130:inlock' App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/runtime.rb:58:in setup' App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler.rb:99:insetup' App 12717 stderr: from /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/setup.rb:20:in <top (required)>' App 12717 stderr: from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' App 12717 stderr: from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' App 12717 stdout: [ 2017-12-04 16:13:33.6667 12685/7f81540e7700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine: An error occurred while starting up the preloader. Error ID: 769094dc Error details saved to: /tmp/passenger-error-xs0AzX.html Message from application: Bundler::PermissionError (Bundler::PermissionError) /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/shared_helpers.rb:107:inrescue in filesystem_access' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/shared_helpers.rb:105:in filesystem_access' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/definition.rb:319:inlock' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/runtime.rb:130:in lock' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/runtime.rb:58:insetup' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler.rb:99:in setup' /usr/local/rvm/gems/ruby-2.3.1/gems/bundler-1.13.7/lib/bundler/setup.rb:20:in<top (required)>' /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in activate_gem' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:297:inblock in run_load_path_setup_code' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:435:in running_bundler' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:296:inrun_load_path_setup_code' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/helper-scripts/rack-preloader.rb:100:in preload_app' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/helper-scripts/rack-preloader.rb:156:in' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/helper-scripts/rack-preloader.rb:30:in <module:PhusionPassenger>' /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.1.1/src/helper-scripts/rack-preloader.rb:29:in

'

[ 2017-12-04 16:13:33.6848 12685/7f8156789700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 769094dc. Please see earlier logs for details about the error. [ 2017-12-04 16:13:34.0162 12685/7f815700b700 age/Cor/SecurityUpdateChecker.h:352 ]: A security update is available for your version (5.1.1) of Passenger, we strongly recommend upgrading to version 5.1.12. [ 2017-12-04 16:13:34.0163 12685/7f815700b700 age/Cor/SecurityUpdateChecker.h:357 ]: Additional information:

  • [Fixed in 5.1.6] [CVE-2017-7529] Specially crafted requests potentially trigger sensitive information leak via Nginx range module.
  • [Fixed in 5.1.11] [URGENT] Users with write access to an application can view arbitrary files on the system if Passenger is running as root. [root@localhost opt]#
Loriowar commented 6 years ago

Thanks for log message. Looks like you forget run bundle after removing of the plugin. But if you say what passenger run by root, then this is a strange error. But anyway, source code of plugin is not involved in this error. And this is problem of local installation. What about 404: I will check works of tree view for all projects in pure Redmine 3.3 and report if something goes wrong.

dreampet commented 6 years ago

I have the same problem, here is the log and redmine info:

Started GET "/projects/t300_mcu/issues" for 192.168.1.162 at 2018-01-15 13:35:48 +0800 Processing by IssuesController#index as HTML Parameters: {"project_id"=>"t300_mcu"} Current user: xiehang (id=5) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_issues_index_header_tags.html.haml (1.8ms) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_link_to_tree_view.html.haml (1.1ms) Rendered plugins/redmine_issues_tree/app/views/issues/index.html.erb within layouts/base (15.7ms) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.6ms) Rendered plugins/advanced_roadmap/app/views/hooks/_stylesheet.html.erb (0.1ms) Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.1ms) Rendered plugins/redmine_editor_preview_tab/app/views/redmine_editor_preview_tab/_redmine_editor_preview_tab_partial.html.erb (0.1ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.2ms) Rendered plugins/additionals/app/views/additionals/_html_head.html.slim (9.2ms) Rendered plugins/redmine_banner/app/views/banner/_project_body_bottom.html.erb (0.1ms) Rendered plugins/additionals/app/views/additionals/_content.html.slim (0.1ms) Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.1ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (1.5ms) Rendered plugins/additionals/app/views/additionals/_body_bottom.html.slim (0.1ms) Completed 404 Not Found in 171ms (Views: 38.8ms | ActiveRecord: 52.2ms)

and this is the normal log before update the plugin to latest version:

Started GET "/projects/t300_mcu/issues" for 192.168.1.162 at 2018-01-15 13:53:14 +0800 Processing by IssuesController#index as HTML Parameters: {"project_id"=>"t300_mcu"} Current user: xiehang (id=5) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_issues_index_header_tags.html.haml (0.4ms) Rendered plugins/redmine_issues_tree/app/views/issues_trees/_link_to_tree_view.html.haml (0.3ms) Rendered queries/_filters.html.erb (4.9ms) Rendered queries/_columns.html.erb (1.1ms) Rendered issues/_list.html.erb (8.1ms) Rendered plugins/advanced_roadmap/app/views/hooks/_milestones.html.erb (0.8ms) Rendered plugins/additionals/app/views/additionals/_global_sidebar.html.slim (0.1ms) Rendered issues/_sidebar.html.erb (3.8ms) Rendered plugins/redmine_issues_tree/app/views/issues/index.html.erb within layouts/base (26.3ms) Rendered plugins/advanced_roadmap/app/views/hooks/_stylesheet.html.erb (0.1ms) Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (1.4ms) Rendered plugins/redmine_editor_preview_tab/app/views/redmine_editor_preview_tab/_redmine_editor_preview_tab_partial.html.erb (0.1ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.3ms) Rendered plugins/additionals/app/views/additionals/_html_head.html.slim (10.7ms) Rendered plugins/redmine_banner/app/views/banner/_project_body_bottom.html.erb (0.3ms) Rendered plugins/additionals/app/views/additionals/_content.html.slim (0.2ms) Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.8ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (1.7ms) Rendered plugins/additionals/app/views/additionals/_body_bottom.html.slim (0.1ms) Completed 200 OK in 139ms (Views: 56.6ms | ActiveRecord: 54.1ms)

redmine info:

Environment: Redmine version 3.3.6.stable Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux] Rails version 4.2.7.1 Environment production Database adapter Mysql2 SCM: Mercurial 2.8.2 Cvs 1.12.13 Git 2.13.0 Filesystem
Redmine plugins: additionals 2.0.8 advanced_roadmap 0.10.2 clipboard_image_paste 1.12 gantt_on_issue_tree 1.0 redmine_banner 0.1.2 redmine_base_deface 0.0.1 redmine_checklists 3.1.5 redmine_code_review 0.8.0 redmine_customize_core_fields 1.0.0 redmine_editor_preview_tab 0.1.5 redmine_issue_badge 0.0.6 redmine_issues_tree 0.0.9 redmine_login_audit 0.3.1 redmine_remote_revision_url 0.3.1 redmine_revision_branches 0.3.2 redmine_show_issue_assignee_avatar 0.0.1 redmine_smile_togglesidebar 1.0.4

Loriowar commented 6 years ago

@dreampet I can't reproduce your error on local pure installation without other plugins on Redmine 3.3. Hence, there is two potential source of problem:

Loriowar commented 5 years ago

No responce for a long time. Closed.