Actions
Defect #42004
openProblem with upgrading Redmine from 5.1.3 to 6.0.2
Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
Hello.
I've upgraded my Redmine to verison 6.0.2
Now when i go to Projects on my Redmine instance, I get following error in logs:
ActionView::Template::Error (Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`.):
My file configs:
my snippet of /usr/src/redmine/config/application.rb looks like this:
config.active_record.store_full_sti_class = true config.active_record.default_timezone = :local config.active_record.yaml_column_permitted_classes = [ Date, Time, *Set* , Symbol, ActiveSupport::HashWithIndifferentAccess, 1 ActionController::Parameters 2 ]
And in /usr/local/lib/ruby/3.3.0/psych.rb I have:
def self.safe_load yaml, permitted_classes: [], permitted_symbols: [], aliases: *true* , filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false
This would previously help me with aliases/parsing problems in 5.1.3 but does not help in Redmine 6.0.2
Is there anything I could do to make it work?
Thanks.
Updated by Holger Just 4 days ago
- Status changed from New to Needs feedback
Could you please add the full stacktrace which corresponds to the error? That will allow us to pinpoint the specific code location which may be affected by this issue.
Updated by Robert Swansons 4 days ago
Sure
I, [2024-12-17T13:55:42.253360 #1] INFO -- : [841df742-feff-451d-807a-246e4d542f97] Started GET "/" for 10.244.0.0 at 2024-12-17 13:55:42 +0100 I, [2024-12-17T13:55:42.254197 #1] INFO -- : [841df742-feff-451d-807a-246e4d542f97] Processing by WelcomeController#index as HTML I, [2024-12-17T13:55:42.335915 #1] INFO -- : [841df742-feff-451d-807a-246e4d542f97] Current user: bob (id=2069) I, [2024-12-17T13:55:42.486805 #1] INFO -- : [841df742-feff-451d-807a-246e4d542f97] Rendered layout layouts/base.html.erb (Duration: 118.8ms | GC: 13.4ms) I, [2024-12-17T13:55:42.487146 #1] INFO -- : [841df742-feff-451d-807a-246e4d542f97] Completed 200 OK in 233ms (Views: 95.0ms | ActiveRecord: 68.5ms (37 queries, 1 cached) | GC: 13.4ms) I, [2024-12-17T13:55:42.575573 #1] INFO -- : [39dedac9-7f84-4e3f-8073-dea7f8459a2b] Started GET "/assets/jquery/jquery-ui-1.13.1.css" for 10.244.0.0 at 2024-12-17 13:55:42 +0100 F, [2024-12-17T13:55:42.576101 #1] FATAL -- : [39dedac9-7f84-4e3f-8073-dea7f8459a2b] [39dedac9-7f84-4e3f-8073-dea7f8459a2b] ActionController::RoutingError (No route matches [GET] "/assets/jquery/jquery-ui-1.13.1.css"): [39dedac9-7f84-4e3f-8073-dea7f8459a2b] I, [2024-12-17T13:56:58.917679 #1] INFO -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Started GET "/my/page" for 10.244.0.0 at 2024-12-17 13:56:58 +0100 I, [2024-12-17T13:56:58.918359 #1] INFO -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Processing by MyController#page as HTML I, [2024-12-17T13:56:58.927281 #1] INFO -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Current user: bob (id=2069) I, [2024-12-17T13:56:58.979316 #1] INFO -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Rendered layout layouts/base.html.erb (Duration: 48.5ms | GC: 1.3ms) I, [2024-12-17T13:56:58.979558 #1] INFO -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Completed 500 Internal Server Error in 61ms (ActiveRecord: 17.2ms (10 queries, 0 cached) | GC: 1.6ms) F, [2024-12-17T13:56:58.981087 #1] FATAL -- : [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] ActionView::Template::Error (Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`.): [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Causes: [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] Psych::AliasesNotEnabled (Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`.) [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 11: <div id="my-page" class="splitcontent"> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 12: <% @groups.each do |group| %> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 13: <div id="list-<%= group %>" class="block-receiver splitcontent<%= group %>"> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 14: <%= render_blocks(@blocks[group], @user) %> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 15: </div> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 16: <% end %> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] 17: <%= call_hook(:view_my_page_splitcontent, :user => @user) %> [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/setting.rb:111:in `value' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/setting.rb:125:in `[]' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] plugins/localizable/lib/localizable.rb:14:in `localize' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] plugins/localizable/lib/tracker_patch.rb:15:in `name' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/issue_query.rb:163:in `block in initialize_available_filters' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/issue_query.rb:163:in `collect' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/issue_query.rb:163:in `initialize_available_filters' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/query.rb:727:in `available_filters' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/models/query.rb:738:in `add_filter' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] plugins/additionals/lib/additionals/patches/query_patch.rb:49:in `add_filter_with_additionals' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:98:in `render_issuesassignedtome_block' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:64:in `render_block_content' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:35:in `render_block' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:27:in `block in render_blocks' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:26:in `each' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/helpers/my_helper.rb:26:in `render_blocks' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/views/my/page.html.erb:14 [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/views/my/page.html.erb:12:in `each' [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] app/views/my/page.html.erb:12 [de0a6d85-bc09-4e91-8fd0-f044a1f77f89] lib/redmine/sudo_mode.rb:78:in `sudo_mode'
Actions