Project

General

Profile

Fresh 4.0.3 install fails on Ubuntu 18.04, ruby 2.5.x & 2.6.x

Added by Ben Blanco over 5 years ago

Hi,

I'm having issues trying to install fresh redmine v4.0.3

Following the Install documentation, all goes fine until I get to:

$ bundle exec rake generate_secret_token
rake aborted!
NameError: undefined method `tag_options' for module `ActionView::Helpers::TagHelper'
Did you mean?  with_options
/home/deploy/redmine/config/application.rb:5:in `<top (required)>'
/home/deploy/redmine/Rakefile:5:in `require'
/home/deploy/redmine/Rakefile:5:in `<top (required)>'
/home/deploy/.rbenv/versions/2.5.5/bin/bundle:23:in `load'
/home/deploy/.rbenv/versions/2.5.5/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)

I have tested with 4.0.0, 4.0.2, gives same error

I also tried with redmine v3.4.10, and don't have this issue/problem (with ruby 2.5.5)

So I've searched forum, as well as generic rails/ruby error on the Internet, but found nothing tangible/useful towards a resolution.

Thanks in advance for any insight/suggestion/help!

Also, if more logs or info would be useful, please let me know & I'll provide it asap.


Replies (1)

RE: Fresh 4.0.3 install fails on Ubuntu 18.04, ruby 2.5.x & 2.6.x - Added by Leon C over 5 years ago

Have you tried running "bundle exec rake generate_secret_token" and other commands as sudo?

Do all ruby stuff as sudo.

Is redmine dir owned by web server user and group (www-data:www-data on ubuntu)?

I successfully installed 4.0.3 on 18.04 LTS using following guide:
https://linuxize.com/post/how-to-install-and-configure-redmine-on-ubuntu-18-04/

(I skipped the https bits since this is test on local network).

    (1-1/1)