Dneska jsem na jednom stroji (FreeBSD) upgradnu Redmine na verzi 3.4.4 z balickovaciho systemu FreeBSD. Stejna verze mi na jinem stroji bezi, ale tady mi to hazi Internal Error.
Thin bezi normalne:
Writing PID to tmp/pids/thin.pid
Changing process privilege to www:www
Using rack adapter
Thin web server (v1.7.2 codename Bachmanity)
Debugging ON
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
Ale do logu /usr/local/www/redmine/log/production.log to hodi tuhle chybu pro jakykoliv web request:
I, [2018-01-26T14:01:52.419935 #84697] INFO -- : Started GET "/redmine1/login?back_url=http%3A%2F%2Fhosting.codelab.cz%2Fredmine1" for 86.49.16.209 at 2018-01-26 14:01:52 +0100
I, [2018-01-26T14:01:52.421465 #84697] INFO -- : Processing by AccountController#login as HTML
I, [2018-01-26T14:01:52.421605 #84697] INFO -- : Parameters: {"back_url"=>"http://hosting.codelab.cz/redmine1"}
I, [2018-01-26T14:01:52.425144 #84697] INFO -- : Current user: anonymous
I, [2018-01-26T14:01:52.427517 #84697] INFO -- : Rendered account/login.html.erb within layouts/base (1.3ms)
I, [2018-01-26T14:01:52.432503 #84697] INFO -- : Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms)
F, [2018-01-26T14:01:52.435332 #84697] FATAL -- :
ActionView::Template::Error (undefined method `default_users_time_zone' for #<Class:0x000000080c824290>):
11: <%= favicon %>
12: <%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %>
13: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
14: <%= javascript_heads %>
15: <%= heads_for_theme %>
16: <%= call_hook :view_layouts_base_html_head %>
17: <!-- page specific tags -->
app/models/user_preference.rb:44:in `initialize'
app/models/user.rb:949:in `pref'
app/helpers/application_helper.rb:1451:in `javascript_heads'
app/views/layouts/base.html.erb:14:in `_app_views_layouts_base_html_erb___3657875139521072337_17332087020'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Napada vas, v cem muze byt problem a jak ho opravit? (na netu jsem tuhle chybu nenasel)
Pro uplnost, po upgrade jsem spustil tohle
bundle exec rake generate_secret_token
bundle exec rake tmp:cache:clear
bundle exec rake tmp:sessions:clear
bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:plugins:migrate RAILS_ENV=production