Project

General

Profile

Settings menu - Redmine 500 error

Added by Chau Khoa over 9 years ago

Hi all,

After i fixed an error on my Redmine [[http://www.redmine.org/boards/2/topics/43657]], it runs well but I cannot access Settings menu anymore.

When I go to "Administration" -> "Settings":

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

And this is log file:

Started GET "/redmine/settings" for my_ip_address at 2014-09-03 14:00:03 +0200
Processing by SettingsController#index as HTML
  Current user: ckhoa (id=418)
  Rendered settings/_general.html.erb (4.5ms)
  Rendered settings/_display.html.erb (4.6ms)
  Rendered settings/_authentication.html.erb (3.7ms)
  Rendered settings/_projects.html.erb (7.4ms)
  Rendered settings/_issues.html.erb (3.6ms)
  Rendered common/_tabs.html.erb (27.1ms)
  Rendered settings/edit.html.erb within layouts/admin (27.5ms)
Completed 500 Internal Server Error in 32.9ms

ActionView::Template::Error (undefined method `create' for Psych::Visitors::YAMLTree:Class):
    13: 
    14: <p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
    15: 
    16: <p><%= setting_multiselect :non_working_week_days, (1..7).map {|d| [day_name(d), d.to_s]}, :inline => true %></p>
    17: 
    18: <p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
    19: 
  app/models/setting.rb:101:in `value='
  app/models/setting.rb:246:in `find_or_default'
  app/models/setting.rb:108:in `[]'
  app/models/setting.rb:137:in `non_working_week_days'
  app/helpers/settings_helper.rb:44:in `setting_multiselect'
  app/views/settings/_issues.html.erb:16:in `block in _app_views_settings__issues_html_erb__1170783090966928148_58289340'
  app/views/settings/_issues.html.erb:1:in `_app_views_settings__issues_html_erb__1170783090966928148_58289340'
  app/views/common/_tabs.html.erb:24:in `block in _app_views_common__tabs_html_erb___1312536173536177414_57343760'
  app/views/common/_tabs.html.erb:23:in `each'
  app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___1312536173536177414_57343760'
  app/helpers/application_helper.rb:272:in `render_tabs'
  app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb___496881618610697126_57282240'
  app/controllers/settings_controller.rb:28:in `index'

Other information:

$ gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23.2
  - RUBY VERSION: 1.9.3 (2014-05-14 patchlevel 547) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.9.1
     - /home/DIR/my_username/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

$ gem list


*** LOCAL GEMS ***

actionmailer (3.2.17)
actionpack (3.2.17)
activemodel (3.2.17)
activerecord (3.2.17)
activeresource (3.2.17)
activesupport (3.2.17)
arel (3.0.3)
bigdecimal (1.1.0)
builder (3.0.0)
bundler (1.6.5, 1.3.0)
canonix (0.1.1)
capybara (2.1.0)
childprocess (0.5.1)
coderay (1.1.0)
database_cleaner (1.2.0)
diff-lcs (1.2.5)
docile (1.1.5)
erubis (2.7.0)
fastercsv (1.5.5)
ffi (1.9.3)
hashie (3.3.1)
hike (1.2.3)
hodel_3000_compliant_logger (0.1.1)
hoe (3.12.0)
hoe-bundler (1.2.0)
hoe-debugging (1.1.1)
hoe-gemspec (1.0.0)
hoe-git (1.6.0)
i18n (0.6.9)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.8.1, 1.5.5)
libxml-ruby (2.7.0 x86-mingw32)
macaddr (1.7.1)
mail (2.5.4)
metaclass (0.0.4)
mime-types (1.25.1)
mini_portile (0.5.2)
minitest (5.4.1, 2.5.1)
mocha (1.0.0)
multi_json (1.9.0)
mysql2 (0.3.15)
net-ldap (0.3.1)
nokogiri (1.6.1 ruby x86-mingw32)
oink (0.10.1)
omniauth (1.2.2)
omniauth-saml (1.0.0)
omniauth-shibboleth (1.1.2)
polyglot (0.3.4)
psych (2.0.4)
racc (1.4.12)
rack (1.4.5)
rack-cache (1.2)
rack-openid (1.4.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.17)
railties (3.2.17)
rake (10.1.1, 0.9.2.2)
rdoc (3.12.2, 3.9.5)
rexical (1.0.5)
rspec (3.0.0)
rspec-core (3.0.4)
rspec-expectations (3.0.4)
rspec-mocks (3.0.4)
rspec-support (3.0.4)
ruby-openid (2.3.0)
ruby-saml (0.8.1)
rubyzip (1.1.0)
sass (3.4.2)
selenium-webdriver (2.40.0)
shibboleth-rails (0.7.3)
shoulda (3.3.2)
shoulda-context (1.0.2)
shoulda-matchers (1.4.1)
simplecov (0.9.0)
simplecov-html (0.8.0)
sprockets (2.2.2)
systemu (2.6.4)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.39)
uuid (2.3.7)
websocket (1.0.7)
xpath (2.0.0)
yamler (0.1.0)
yard (0.8.7.3)

My server is RHEL 6, Apache version Apache/2.2.15

I tried to run command

$ rake generate_secret_token

/usr/local/lib/ruby/gems/1.9.1/gems/psych-2.0.4/lib/psych.rb:220: warning: already initialized constant VERSION
/usr/local/lib/ruby/gems/1.9.1/gems/psych-2.0.4/lib/psych.rb:223: warning: already initialized constant LIBYAML_VERSION

$ rake tmp:clear RAILS_ENV=production

/usr/local/lib/ruby/gems/1.9.1/gems/psych-2.0.4/lib/psych.rb:220: warning: already initialized constant VERSION
/usr/local/lib/ruby/gems/1.9.1/gems/psych-2.0.4/lib/psych.rb:223: warning: already initialized constant LIBYAML_VERSION

I also set folder /tmp (included files and sub-folders) and /files to 777, it still doesn't work.

Do you have any ideas to fix this error?

Thanks in advance,

Kind regards,

Khoa.