Skip to content
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

Problems installing #41

Closed
mdotmoment11 opened this issue Sep 19, 2017 · 11 comments
Closed

Problems installing #41

mdotmoment11 opened this issue Sep 19, 2017 · 11 comments

Comments

@mdotmoment11
Copy link

mdotmoment11 commented Sep 19, 2017

Trying to install the latest redmine_2fa (1.3.2) into the stable 3.4.2 environment and can't seem to get the bundle to run properly.
My redmine environment:
Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux]
Rails version 4.2.8

Ruby is managed with rbenv, which is properly installed.
But when I try

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

I get:

bundler: failed to load command: rake (/home/redmine/.rbenv/versions/2.4.1/bin/rake)
Gem::Exception: can't find executable rake for gem rake. rake is not currently included in the bundle, perhaps you meant to add it to your Gemfile?
/home/redmine/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/rubygems_integration.rb:432:in block in replace_bin_path' /home/redmine/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.15.4/lib/bundler/rubygems_integration.rb:452:in block in replace_bin_path'
/home/redmine/.rbenv/versions/2.4.1/bin/rake:22:in `<top (required)>'

Any help would be greatly appreciated.

Thanks

UPDATE

I tried adding the following to the Gemfile:

gem 'rails' , '= 4.2.8'
gem 'rake'
gem 'activesupport' , ' >= 4.2.8'

but am now running into this error:

rake aborted!
NameError: uninitialized constant ActionDispatch::XmlParamsParser
Did you mean? ActionDispatch::ParamsParser

@constXife
Copy link
Contributor

@mdotmoment11, Hi! Try to use another ruby version, like 2.3.

@mdotmoment11
Copy link
Author

mdotmoment11 commented Sep 21, 2017 via email

@constXife
Copy link
Contributor

@mdotmoment11, so, your redmine work's correctly on ruby 2.4? And you catch the errors only when you try to install our plugin, is it correct?

@constXife
Copy link
Contributor

I can test plugin on ruby 2.4 But I thought redmine will not work on that ruby version.

@constXife
Copy link
Contributor

I installed with ruby 2.4 and all went well.

Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.2-p198 (2017-09-14) [x86_64-darwin17]
Rails version 4.2.8
Environment development
Database adapter PostgreSQL

@olemskoi
Copy link
Member

Did you run "bundle install"?

@mdotmoment11
Copy link
Author

mdotmoment11 commented Sep 26, 2017 via email

@constXife
Copy link
Contributor

@mdotmoment11, errors occurs only when you trying to install our plugin? Without our plugin your redmine works well? Or it is a brand new setup?

@mdotmoment11
Copy link
Author

mdotmoment11 commented Sep 26, 2017 via email

@constXife
Copy link
Contributor

I can't reproduce the bug. I installed redmine-agile light, 2fa on OS X. Nothing wrong is happened. Try to install our plugins from develop git branch with latest code. Or you may make virtual image of your system and give it to me, then I will figure out what's wrong.

Also I found similar problem — https://stackoverflow.com/questions/45079018/ubuntu-rake-aborted-nameerror-uninitialized-constant-actiondispatchxmlparams. Maybe you have same issue.

@vladislav-yashin
Copy link
Contributor

We recommend to upgrade to the latest master version of redmine_telegram_common.

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

No branches or pull requests

4 participants