Project

General

Profile

Defect #30851

Updated by Holger Just about 5 years ago

Hi, 

 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: 

 <pre> 
 production: 
   adapter: mysql2 
   database: redmine 
   host: localhost 
   username: redmine 
   password: "redmine"  
   encoding: utf8 
 </pre> 

 


 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 

 <pre> 
 Started GET "/settings" for 10.11.0.254 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| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p> 
     5: 
     6: <p><%= setting_select :default_language, lang_options_for_select(false) %></p> 
     7: 
     8: <p><%= setting_check_box :force_default_language_for_anonymous %></p> 
     9: 

 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' 
 </pre> 

 


 I have also started the webrick server: 

 <pre> 
 [redmine-4.0.1]# bundle exec rails server webrick -e production 
 </pre> 

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

 <pre> 
 http://redmine-test.trondent.net:3000/stylesheets/application.css -> /images/true.png 
 10.11.0.254 - - [20/Feb/2019:12:41:16 CST] "GET /settings HTTP/1.1" 500 648 
 http://redmine-test.trondent.net:3000/admin/info -> /settings 
 </pre> 

 Please advise? 

 netops@trondent.com 

 Thank you so much for your time in advance.. 

Back