Project

General

Profile

Actions

Defect #30851

open

Redmine 4.0.1 Internnal error 500 on accessing the settings page

Added by net ops almost 6 years ago. Updated over 5 years ago.

Status:
Reopened
Priority:
Normal
Assignee:
-
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

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:

production:
  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 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'

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:

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

Please advise?

Thank you so much for your time in advance..


Files

redmine.jpg (53 KB) redmine.jpg net ops, 2019-06-25 23:52
Actions

Also available in: Atom PDF