DMSF 1.5.7 to Redmine 3.3 installation problem

Added by Petr Pavlov about 1 year ago

Environment:
Ubuntu 16.04 LTS
Redmine version 3.3.0.stable
Ruby version 2.3.0-p0 (2015-12-25) [x86_64-linux]
Rails version 4.2.6
Environment production
Database adapter Mysql2
SCM:
Git 2.7.4
Filesystem

Redmine plugins:
no plugin installed

Hello! I just wanna to view and touch possibilities of dmsf in my virtual machine. But i can't go throught 4th step of installation guide (https://github.com/danmunn/redmine_dmsf/blob/master/README.md):

user@ubuntu:/var/www/redmine/plugins/redmine_dmsf-1.5.7$ bundle exec rake redmine:plugins:migrate RAILS_ENV="production" 

/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/rubygems_integration.rb:336:in `block (2 levels) in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
        from /home/user/.rvm/gems/ruby-2.3.0@rails4/bin/rake:22:in `<main>'
        from /home/user/.rvm/gems/ruby-2.3.0@rails4/bin/ruby_executable_hooks:15:in `eval'
        from /home/user/.rvm/gems/ruby-2.3.0@rails4/bin/ruby_executable_hooks:15:in `<main>'

Okay, added gem 'rake' into Gemfile (was i wrong?) ,then:
user@ubuntu:/var/www/redmine/plugins/redmine_dmsf-1.5.7$ bundle exec rake redmine:plugins:migrate RAILS_ENV="production" --trace
(in /opt/redmine-3.3.0)
rake aborted!
LoadError: cannot load such file -- rails/all
/opt/redmine-3.3.0/config/application.rb:3:in `require'
/opt/redmine-3.3.0/config/application.rb:3:in `<top (required)>'
/opt/redmine-3.3.0/Rakefile:5:in `require'
/opt/redmine-3.3.0/Rakefile:5:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/rake_module.rb:28:in `load'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:686:in `raw_load_rakefile'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:96:in `block in load_rakefile'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:95:in `load_rakefile'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:79:in `block in run'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/lib/rake/application.rb:77:in `run'
/home/user/.rvm/gems/ruby-2.3.0@rails4/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.3.0@rails4/bin/rake:23:in `load'
/home/user/.rvm/gems/ruby-2.3.0@rails4/bin/rake:23:in `<main>'
/home/user/.rvm/gems/ruby-2.3.0@rails4/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-2.3.0@rails4/bin/ruby_executable_hooks:15:in `<main>'

Also, then i put redmine_dmsf-1.5.7 into /opt/redmine-3.3.0/plugins, redmine has crashed with passenger error:

Bundler:<wbr>:<wbr>PermissionError (Bundler:<wbr>:<wbr>PermissionError)
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/shared_helpers.rb:<wbr>107:<wbr>in `rescue in filesystem_access&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/shared_helpers.rb:<wbr>105:<wbr>in `filesystem_access&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/definition.rb:<wbr>321:<wbr>in `lock&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/runtime.rb:<wbr>130:<wbr>in `lock&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/runtime.rb:<wbr>58:<wbr>in `setup&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler.rb:<wbr>99:<wbr>in `setup&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/bundler-1.13.1/lib/bundler/setup.rb:<wbr>20:<wbr>in `&lt;top (required)&gt;&apos;
  /home/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:<wbr>55:<wbr>in `require&apos;
  /home/user/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:<wbr>55:<wbr>in `require&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:<wbr>430:<wbr>in `activate_gem&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:<wbr>297:<wbr>in `block in run_load_path_setup_code&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:<wbr>435:<wbr>in `running_bundler&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:<wbr>296:<wbr>in `run_load_path_setup_code&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:<wbr>100:<wbr>in `preload_app&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:<wbr>156:<wbr>in `&lt;module:<wbr>App&gt;&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:<wbr>30:<wbr>in `&lt;module:<wbr>PhusionPassenger&gt;&apos;
  /home/user/.rvm/gems/ruby-2.3.0@rails4/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:<wbr>29:<wbr>in `&lt;main&gt;&apos;

Then i have done next:

cd /opt/redmine-3.3.0/plugins/redmine_dmsf-1.5.7
gem install bundler
bundle install

passenger's error leaves, and redmine gets up but then i trying to go to ->administration->projects->new project it's returns 404 error page not found.
DMSF appears in modules menu, but then i click "configure" - it's returns 404 too.
Looks like there is some DMSF's admin menu at the Administration (links to redmine.test.local/workflow) - but returns 404 and calls "translation missing: en.label_dmsf_workflow_plural"
dmsf

I think my problems caused by access rules, but for what exactly? I chown -R'ed /opt/redmine to www-data:user, what i've missed?

dmsf.PNG (18.6 KB)