Skip to content

Unable to install redmine_git_hosting Plugin #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SchorppD opened this issue Feb 21, 2018 · 3 comments
Closed

Unable to install redmine_git_hosting Plugin #709

SchorppD opened this issue Feb 21, 2018 · 3 comments
Assignees
Labels

Comments

@SchorppD
Copy link

SchorppD commented Feb 21, 2018

Hello there,
I am trying to install the git_hosting_plugin on debian.
Should not be that difficult - normally :(

I installed all dependencies,
after that I proceed to step 2.
I clone the repos in ./plugins and check them out according to the instruction.
I continue with...

# Install gems and migrate database
redmine$ cd REDMINE_ROOT
redmine$ bundle install --without development test
redmine$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=redmine_git_hosting

I can execute "bundle install --without development test" without any problems. 
As soon as I try to "bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=redmine_git_hosting"

I get the following error
rake aborted!
LoadError: cannot load such file -- redmine_git_hosting
/usr/local/rvm/gems/ruby-2.2.4-railsexpress/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.2.4-railsexpress/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.2.4-railsexpress/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.2.4-railsexpress/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
etc...........

Whats wrong? LoadError normally shows a missing dependency in the gems.
I found nothing on the web. Is there anybody with a solution/tip?

Thank you!

@SchorppD
Copy link
Author

I managed to get it working by chaning the "require" in some of the *.rb files to "require_relative "./xxx". After that, the migration process started. Unfortunatelly I ran into the next issue. As soon I logon to Redmine (btw. it is EasyRedmine Debian VM v2018.01.04) I get an error 500 when I am trying e.g. to load the projects list... (other sites do still work)

The log shows things like...
ActionView::Template::Error (undefined method `new' for <#Hash..xxx..): etc.

Any ideas?

@n-rodriguez n-rodriguez self-assigned this May 9, 2018
@rtestaverde
Copy link

Hi all, we're facing the same problem
Ubuntu 14.04
Ruby 2.5
EasyRedmine 2018
Redmine Git Hosting 1.2.3

in file [plugindir]/redmine_git_hosting/init.rb we tried to change require 'redmine_git_hosting' with require_relative '.' but no changes in the migration. Commenting it, the migrations reads RedmineGitHosting. constant unknown...

@PowerKiKi
Copy link
Collaborator

As discussed in #732 (comment), issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.

If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants