alphanodes / additionals

Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
https://www.redmine.org/plugins/additionals
GNU General Public License v2.0
131 stars 43 forks source link

500 Error on pages after install #166

Closed canadabri closed 6 months ago

canadabri commented 1 year ago

Hello, I have an offline environment (no internet connectivity) so the plugin may not work for me.

I did get the plugin to install without errors. The Administration pages work (all except Settings). But when I browse to the Home page, or any Project page, I get an Internal Error page (Title of page is Redmine 500 error).

"Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error. "

My Apache default web page works, as does my Tomcat default page (needed for drawio)

I am not sure exactly what to look for to see why this is happening. I do have some other plugins installed also.

The environment is :

Ubuntu 22.04
Redmine 5.0.5.stable
Ruby 3.0.2-p107
Rails 6.1.7.2
Database adapter Mysql2

Extra plugins:

additionals 3.0.9-main
easy_baseline
easy_gantt
easy_gantt_pro
mega_calendar
redmine_agile
redmine_banner
redmine_checklists
redmine_ckeditor
redmine_drawio
redmine_drive
redmine_favorite_projects
redmine_issue_dynamic_edit
redmine_questions
redmine_theme_changer
redmine_tags

I cleared out the production.log file and restarted apache, browsed to the site to re-create the error. Here are the top few lines of my production.log:

W, [2023-06-23T10:32:32.946385 #119608]  WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
W, [2023-06-23T10:32:32.970445 #119608]  WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
W, [2023-06-23T10:32:33.173112 #119608]  WARN -- : Creating scope :visible. Overwriting existing method Principal.visible.
W, [2023-06-23T10:32:33.342422 #119608]  WARN -- : Creating scope :visible. Overwriting existing method AgileQuery.visible.
W, [2023-06-23T10:32:33.430544 #119608]  WARN -- : Creating scope :global_or_on_project. Overwriting existing method DriveEntryQuery.global_or_on_project.
W, [2023-06-23T10:32:33.430671 #119608]  WARN -- : Creating scope :sorted. Overwriting existing method DriveEntryQuery.sorted.
W, [2023-06-23T10:32:33.436178 #119608]  WARN -- : Creating scope :visible. Overwriting existing method FavoriteProjectsQuery.visible.
W, [2023-06-23T10:32:33.588260 #119608]  WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
I, [2023-06-23T10:32:35.493331 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f] Started GET "/" for 192.168.100.20 at 2023-06-23 10:32:35 -0400
I, [2023-06-23T10:32:35.497522 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f] Processing by WelcomeController#index as HTML
I, [2023-06-23T10:32:35.529175 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f]   Current user: redmine (id=5)
I, [2023-06-23T10:32:35.616391 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f]   Rendered plugins/additionals/app/views/welcome/index.html.slim within layouts/base (Duration: 48.2ms | Allocations: 49187)
I, [2023-06-23T10:32:35.616559 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f]   Rendered layout layouts/base.html.erb (Duration: 48.5ms | Allocations: 49246)
I, [2023-06-23T10:32:35.616935 #119652]  INFO -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f] Completed 500 Internal Server Error in 119ms (ActiveRecord: 15.9ms | Allocations: 74731)
F, [2023-06-23T10:32:35.656024 #119652] FATAL -- : [7ef45b78-2c0d-4715-a5c2-d84c0838082f]   
[7ef45b78-2c0d-4715-a5c2-d84c0838082f] SystemStackError (stack level too deep):
[7ef45b78-2c0d-4715-a5c2-d84c0838082f] 

Any ideas on what is happening here? (I can fix the site by uninstalling the additionals plugin)

canadabri commented 1 year ago

Actually, removing the redmine_favorite_projects plugin allowed the site pages to work again. So this is an incompatibility with the redmine_favorite_plugins issue.

tomy-shen commented 11 months ago

Is there any solution? When using redmine, it is difficult to exclude redmineUP or alphanodes plugins.

alexandermeindl commented 6 months ago

See #120 for more information.