Defect #30851

Updated by Holger Just over 5 years ago


 I've setup a brand new redmine 4.0.1 plateform and everything's running fine but the "Settings" sub menu from "Administration" menu. 
 When I click on it, I've got an internal error (redmine error 500) 

 When I go back to my previous version redmine 3.4.5, I can access the Settings page, no problem. 

 Here is my configuration : 

 Centos 7 operating system 
 [redmine-4.0.1]# bundler -v 
 The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`. 
 Bundler version 2.0.1 

 [redmine-4.0.1]# passenger -v 
 Phusion Passenger 6.0.1 

 [redmine-4.0.1]# ruby -v 
 ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux] 

 [redmine-4.0.1]# rails -v 
 Rails 5.2.2 

 Here's my database.yml 

 Using seperate mysql server for redmine database: 

   adapter: mysql2 
   database: redmine 
   host: localhost 
   username: redmine 
   password: "redmine"  
   encoding: utf8 


 This is error on the browsers: 

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

 This is the exact error each time I click on Administration, Settings page in the production.log 

 Started GET "/settings" for at 2019-02-20 12:26:56 -0600 
 Processing by SettingsController#index as HTML 
   Current user: aqureshi (id=79) 
   Rendering settings/edit.html.erb within layouts/admin 
   Rendered settings/_general.html.erb (117.3ms) 
   Rendered settings/_display.html.erb (1691.3ms) 
   Rendered common/_tabs.html.erb (1820.0ms) 
   Rendered settings/edit.html.erb within layouts/admin (1820.8ms) 
 Completed 500 Internal Server Error in 1884ms (ActiveRecord: 39.0ms) 

 *ActionView::Template::Error (Invalid argument @ apply2files - /web/servers/redmine-4.0.1/tmp/cache*/.i18n%2Flanguages_options%2F4.0.1.stable20190220-19164-oswowk): 
     3: <div class="box tabular settings"> 
     4: <p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [,]}, :blank => :label_default, :label => :label_theme %></p> 
     6: <p><%= setting_select :default_language, lang_options_for_select(false) %></p> 
     8: <p><%= setting_check_box :force_default_language_for_anonymous %></p> 

 lib/redmine/i18n.rb:125:in `languages_options' 
 app/helpers/application_helper.rb:1232:in `lang_options_for_select' 
 app/views/settings/_display.html.erb:6:in `block in _app_views_settings__display_html_erb__340993510091443663_70326203883240' 
 app/views/settings/_display.html.erb:1:in `_app_views_settings__display_html_erb__340993510091443663_70326203883240' 
 app/views/common/_tabs.html.erb:17:in `block in _app_views_common__tabs_html_erb__2649452778657733169_70326203643820' 
 app/views/common/_tabs.html.erb:16:in `each' 
 app/views/common/_tabs.html.erb:16:in `_app_views_common__tabs_html_erb__2649452778657733169_70326203643820' 
 app/helpers/application_helper.rb:386:in `render_tabs' 
 app/views/settings/edit.html.erb:5:in `_app_views_settings_edit_html_erb__3986788488367518628_70326203621180' 
 app/controllers/settings_controller.rb:31:in `index' 
 lib/redmine/sudo_mode.rb:63:in `sudo_mode' 


 I have also started the webrick server: 

 [redmine-4.0.1]# bundle exec rails server webrick -e production 

 When I click on Settings, I get this in the webrick server conosle: 

 <pre> -> /images/true.png - - [20/Feb/2019:12:41:16 CST] "GET /settings HTTP/1.1" 500 648 -> /settings 

 Please advise? 

 Thank you so much for your time in advance..