sameersbn/docker-redmine

Unable to install tree plugin

btmndkh opened this issue · 2 comments

Got following error?

root@db1ce043a5f9:/home/redmine/redmine# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
NameError: uninitialized constant RedmineIssuesTree::VERSION
Did you mean? RedmineIssuesTree::Version
Version
/home/redmine/redmine/plugins/redmine_issues_tree/init.rb:7:in block in <top (required)>' /home/redmine/redmine/lib/redmine/plugin.rb:96:in instance_eval'
/home/redmine/redmine/lib/redmine/plugin.rb:96:in register' /home/redmine/redmine/plugins/redmine_issues_tree/init.rb:3:in <top (required)>'
/home/redmine/redmine/lib/redmine/plugin_loader.rb:31:in load' /home/redmine/redmine/lib/redmine/plugin_loader.rb:31:in run_initializer'
/home/redmine/redmine/lib/redmine/plugin_loader.rb:108:in each' /home/redmine/redmine/lib/redmine/plugin_loader.rb:108:in block in load'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:427:in instance_exec' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:427:in block in make_lambda'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:603:in catch' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:603:in block in default_terminator'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:199:in block in halting' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:in block in invoke_before'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:in each' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:in invoke_before'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:105:in run_callbacks' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/reloader.rb:88:in prepare!'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application/finisher.rb:124:in block in module:Finisher' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in instance_exec'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in run' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in block in run_initializers'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in run_initializers' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:391:in initialize!'
/home/redmine/redmine/config/environment.rb:16:in <top (required)>' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in require'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in require' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in block in require'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in load_dependency' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in require'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:367:in require_environment!' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:533:in block in run_tasks_blocks'
/home/redmine/data/tmp/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

Environment:
Redmine version 5.0.5.stable
Ruby version 2.7.5-p203 (2021-11-24) [x86_64-linux-gnu]
Rails version 6.1.7.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.13.0
Mercurial 5.3.1
Cvs 1.12.13
Bazaar 3.0.2
Git 2.40.0
Filesystem
Redmine plugins:
no plugin installed

method for clone:
git clone https://github.com/Loriowar/redmine_issues_tree.git

plugin path
./redmine/redmine/plugins$ ##mounted folder

"I found a similar issue that could be related to adding 'RUN gem install haml' in the Dockerfile. If this is the case, how do I add it to the existing Dockerfile? I added it, but nothing changed..."

My apologies! I was installing it the wrong way. I should have cloned a specific branch.