Project

General

Profile

Error when upgrade from 3.4.5 to 4.0.4

Added by Nils Jungebluth over 4 years ago

Hi,

I just tried upgrading our redmine 3.4.5 to 4.0.4 and as soon as I tried to run

bundle exec rake generate_secret_token

or
bundle exec rake db:migrate RAILS_ENV=production 

I get:
bundle exec rake generate_secret_token                                                
rake aborted!                                                                                            
NameError: uninitialized constant ActionView::Template::Handlers::Erubis                                 
/var/srv/redmine-4.0.4/config/application.rb:5:in `<top (required)>'                                     
/var/srv/redmine-4.0.4/Rakefile:5:in `require'                                                           
/var/srv/redmine-4.0.4/Rakefile:5:in `<top (required)>'                                                  
/usr/local/bin/bundle:23:in `load'                                                                       
/usr/local/bin/bundle:23:in `<main>'                                                                     
(See full trace by running task with --trace)

I only have redhopper plugin installed.

It's running on debian 8 with ruby 2.4.4 (also tried 2.6.3).
Application root /var/srv/redmine-4.0.4
Environment production
Database adapter mysql

bundle env                                                                                               
## Environment                                                                                           

```                                                                                                      
Bundler       2.0.2                                                                                      
  Platforms   ruby, x86_64-linux                                                                         
Ruby          2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]                                        
  Full Path   /usr/local/bin/ruby                                                                        
  Config Dir  /usr/local/etc                                                                             
RubyGems      3.0.3                                                                                      
  Gem Home    /usr/local/lib/ruby/gems/2.6.0                                                             
  Gem Path    /home/nils/.gem/ruby/2.6.0:/usr/local/lib/ruby/gems/2.6.0                                  
  User Path   /home/nils/.gem/ruby/2.6.0                                                                 
  Bin Dir     /usr/local/bin

------
Using rake 12.3.3
Using concurrent-ruby 1.1.5
Using i18n 0.7.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.8.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.3
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.4.0
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.3
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Using actionpack-xml_parser 2.0.1
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using acts_as_list 0.9.19
Using public_suffix 3.1.1
Using addressable 2.6.0
Using bundler 2.0.2
Using css_parser 1.7.0
Using tilt 2.0.9
Using haml 4.0.7
Using htmlentities 4.3.4
Using mysql2 0.5.2
Using net-ldap 0.16.1
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Using rbpdf-font 1.19.1
Using rbpdf 1.19.8
Using redcarpet 3.4.0
Using request_store 1.0.5
Using rmagick 2.16.0
Using roadie 3.5.0
Using roadie-rails 1.3.0
Using rouge 3.3.0

Any idea?