[Solved] Error 500 in try edit roles.

Added by Black Elf 6 months ago

Good afternoon !

Installed a clean system, there are no plugins.

I get error 500 when I try to edit roles. Please help fix it !

http://site/roles/4/edit

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.
Back

Details:

Ubuntu 20.04.4
environment:
Redmine version 4.2.3.stable
Ruby version 2.7.0-p0 (2019-12-25) [x86_64-linux-gnu]
Rails version 5.2.6
environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
mailer delivery smtp
SCM:
Git 2.25.1
Filesystem
Redmine plugins:
no plugin installed

Log:

Started GET "/roles/4/edit" for .*..* at 2022-02-21 11:07:58 +0000
Processing by RolesController#edit as HTML
Parameters: {"id"=>"4"}
Current user: admin (id=1)
Rendering roles/edit.html.erb within layouts/admin
Rendered roles/_form.html.erb (8.2ms)
Rendered roles/edit.html.erb within layouts/admin (8.6ms)
Completed 500 Internal Server Error in 21ms (ActiveRecord: 10.0ms)

ActionView::Template::Error (Tried to load unspecified class: ActiveSupport::HashWithIndifferentAccess):
87: <%= hidden_field_tag ​​"role[permissions_all_trackers][#{permission}]", '0', :id => nil %>
88: <%= check_box_tag "role[permissions_all_trackers][#{permission}]",
89: '1',
90: @role.permissions_all_trackers?(permission),
91: :class => "#{permission}_shown",
92: :data => {:disables => ".#{permission}_tracker"} %>
93: </td>

app/models/role.rb:233:in `permissions_all_trackers'
app/models/role.rb:242:in `permissions_all_trackers?'
app/views/roles/_form.html.erb:90:in `block in app_views_roles_form_html_erb__2190100752668259971_83800'
app/views/roles/_form.html.erb:85:in `each'
app/views/roles/_form.html.erb:85:in `_app_views_roles__form_html_erb__2190100752668259971_83800'
app/views/roles/edit.html.erb:4:in `block in app_views_roles_edit_html_erb_504772593695344251_83780'
app/helpers/application_helper.rb:1459:in `labelled_form_for'
app/views/roles/edit.html.erb:3:in `_app_views_roles_edit_html_erb__504772593695344251_83780'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Replies (3)

RE: Error 500 in try edit roles. - Added by Liane Hampe 6 months ago

Hi Black Elf,

At first glance nothing special in your installation. Could you please send your Gemfile.lock? It is in the route directory of your Redmine instance. Maybe it will reveal something what could explain your problem.

Best Regards,
Liane

RE: Error 500 in try edit roles. - Added by Black Elf 6 months ago

Liane Hampe wrote:

Hi Black Elf,

At first glance nothing special in your installation. Could you please send your Gemfile.lock? It is in the route directory of your Redmine instance. Maybe it will reveal something what could explain your problem.

Best Regards,
Liane

The problem was solved by removing gem psych v.4 and install v.3

RE: [Solved] Error 500 in try edit roles. - Added by Liane Hampe 6 months ago

Great! That confirmes my suspicion that a gem could be the reason for your error message. :)

(1-3/3)