southbridgeio / redmine_2fa

Two-factor (sms/telegram) authentication for Redmine
https://southbridge.io
MIT License
42 stars 17 forks source link

Problems installing #41

Closed mdotmoment11 closed 6 years ago

mdotmoment11 commented 6 years ago

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:inblock 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 commented 6 years ago

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

mdotmoment11 commented 6 years ago

That would require me to reinstall redmine on that version correct? Seems like a lot of effort. Do you have plans to test against 2.4 in the future?

On 9/20/17 1:57 PM, Karim Kiatlottiavi wrote:

@mdotmoment11 https://github.com/mdotmoment11, Hi! Try to use another ruby version, like 2.3.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/centosadmin/redmine_2fa/issues/41#issuecomment-330931165, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM-nLUqbCZC5HFgAe77LNi6zCf2IKIEks5skVIAgaJpZM4Pcd9M.

--

BRAD CHICK

Brad@ChickCentral.com 734.662.1701 (h) 734.646.9372 (m)

"Make Some Time for Wasting!" _ | | _| |_ _ / _| ' \ / \/ \ '/ | (| | | | / / | __ \ _|| ||_|_|| |/

constXife commented 6 years ago

@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 commented 6 years ago

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

constXife commented 6 years ago

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 commented 6 years ago

Did you run "bundle install"?

mdotmoment11 commented 6 years ago

I did. Here's my environment and the result:

Environment: Redmine version 3.4.2.stable Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux] Rails version 4.2.8 Environment production Database adapter Mysql2

"bundle install" works, but then I get:

[redmine@redmine-monitors redmine_2fa]$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production (in /prod/redmine-3.4.2) rake aborted! NameError: uninitialized constant ActionDispatch::XmlParamsParser Did you mean?  ActionDispatch::ParamsParser /prod/redmine-3.4.2/config/application.rb:55:in <class:Application>' /prod/redmine-3.4.2/config/application.rb:8:in' /prod/redmine-3.4.2/config/application.rb:7:in <top (required)>' /prod/redmine-3.4.2/Rakefile:5:inrequire' /prod/redmine-3.4.2/Rakefile:5:in <top (required)>' /home/redmine/.rbenv/versions/2.4.1/bin/bundle:22:inload' /home/redmine/.rbenv/versions/2.4.1/bin/bundle:22:in `

' (See full trace by running task with --trace)

On 9/24/17 3:09 PM, Igor Olemskoi wrote:

Did you run "bundle install"?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/centosadmin/redmine_2fa/issues/41#issuecomment-331732157, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM-nMTZumEaqvJi1JLRTcuT_KWvQ6EPks5slqjugaJpZM4Pcd9M.

--

BRAD CHICK

Brad@ChickCentral.com 734.662.1701 (h) 734.646.9372 (m)

"Make Some Time for Wasting!" _ | | _| |_ _ / _| ' \ / \/ \ '/ | (| | | | / / | __ \ _|| ||_|_|| |/

constXife commented 6 years ago

@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 commented 6 years ago

Yes. this only occurs when trying to install your plugin. Without the plugin, redmine works perfectly. I have one other plugin successfully working: Redmine Agile plugin (Light version)

This is a brand new setup, although I pulled the data over from an older version.

On 9/26/17 1:03 PM, Karim Kiatlottiavi wrote:

@mdotmoment11 https://github.com/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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/centosadmin/redmine_2fa/issues/41#issuecomment-332266561, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM-nNH4J5u-_9Q4mdwTfEqLh1oTy6l-ks5smS4kgaJpZM4Pcd9M.

--

BRAD CHICK

Brad@ChickCentral.com 734.662.1701 (h) 734.646.9372 (m)

"Make Some Time for Wasting!" _ | | _| |_ _ / _| ' \ / \/ \ '/ | (| | | | / / | __ \ _|| ||_|_|| |/

constXife commented 6 years ago

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 commented 6 years ago

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