sairam71
5 post(s)
|
OS: 10.5.8 PPC
Bitnami 0.8.7-0 redmine stack
I am unable to install most of the redmine plugins because the
rake db:migrate_plugins RAILS_ENV=production
command fails. I have spent a few hours on this and searched all over the internet. hoping there are some answers here.
Here is the output.
=======
(in /Applications/redmine-0.8.7-0/apps/redmine)
rake aborted!
wrong number of arguments (3 for 1)
/Applications/redmine-0.8.7-0/apps/redmine/vendor/plugins/engines/tasks/engines.rake:47:in `task’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/plugins/engines/tasks/engines.rake:47
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1571:in `in_namespace’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:641:in `namespace’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/plugins/engines/tasks/engines.rake:33
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1571:in `in_namespace’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:641:in `namespace’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/plugins/engines/tasks/engines.rake:32
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:503:in `load’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/railties/lib/tasks/rails.rb:7
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/railties/lib/tasks/rails.rb:7:in `each’
/Applications/redmine-0.8.7-0/apps/redmine/vendor/rails/railties/lib/tasks/rails.rb:7
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require’
/Applications/redmine-0.8.7-0/apps/redmine/rakefile:10
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in `load’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1940:in `raw_load_rakefile’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1727:in `load_rakefile’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1726:in `load_rakefile’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1710:in `run’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/bin/rake:19:in `load’
/usr/bin/rake:19
===
Thank you for your time.
|
|
|
sairam71
5 post(s)
|
any thoughts?
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
It seems that the command is taking the Ruby Framework installed on your system instead of the libraries included in the Stack. Try the following:
$ cd /Applications/redmine-0.8.7
$ ./use_redmine
$ which ruby
Starting the “use_redmine” console you are setting the Stack environment variables so the “which ruby” command should shows the RubyStack ruby binary file, instead of the installed on your system one. Then try to run the “rake” command that you posted.
|
|
|
sairam71
5 post(s)
|
Perfect! that worked. Thank you for the solution. Now I can use some of those plugins. :)
|
|
|
James Milligan
6 post(s)
|
Sorry to bring this back up again.
I’m running the Redmine stack on my (Windows) system, Redmine 0.9.2
I’m trying to install plugins onto my installation – at first I got the wrong directory, but after finding the correct one, I tried to run the command (rake…) as in the first post, but it says no Rake file found.
I don’t know anything about Ruby/RoR, and I tried the which ruby command, but it’s saying it isn’t valid etc.
The path it gives to (I suppose) where it’s looking, is a tree of folders inside the installdir\Ruby folder. There’s a Rakefile in my installdir\apps\redmine folder, but I don’t know how to ‘tell’ it that it’s there (if that’s the one to use).
Sorry for being a noob, I’m usually OK at working stuff out like this.
Thanks for your help!
James
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
You should run any Ruby command from the “use_redmine” console that you can find in the Windows start shortcuts.
|
|
|
James Milligan
6 post(s)
|
Yes, that’s where I was running it from.
I restarted my computer and the plugin has now appeared, so it looks like it didn’t need that command anyway.
I’d appreciate it if you could tell me what else I could try just in case.
James
|
|
|
James Milligan
6 post(s)
|
OK actually I think it might have needed it – when I go onto the Roadmap tab or the Settings tab for a project, I get a generic redmine 500 internal error page – any idea how to fix?
James
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Could you post the Redmine log file: /ruby/bin/mongrel.log?
|
|
|
prexpressions
9 post(s)
|
Likewise I am getting the same message (rake aborted! Could not find RubyGem rack <~> 1.0.1> from Redmineini.bat as the last part of the installation.
If I use the ‘use_ruby.bat’ DOS cmd instead and manually run the redmineini.bat I get the same issue.
Redmineini.bat consists of:
@echo off
rem Populate databases and load default data
CALL C:\BitNami\RUBYST~1\scripts\setenv.bat
cd C:\BitNami\RubyStack/apps/redmine
cmd /C rake config/initializers/session_store.rb
cmd /C rake db:migrate RAILS_ENV=“production”
rake redmine:load_default_data RAILS_ENV=“production” < lng.txt
Manually performing each step gets me to:
cmd /C rake db:migrate RAILS_ENV=“production”
at which point the error is displayed.
Repeating with —trace gives:
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
Could not find RubyGem rack (~> 1.0.1)
C:/BitNami/RubyStack/apps/redmine/config/../vendor/rails/railties/lib/initialize
r.rb:271:in `require_frameworks’
C:/BitNami/RubyStack/apps/redmine/config/../vendor/rails/railties/lib/initialize
r.rb:134:in `process’
C:/BitNami/RubyStack/apps/redmine/config/../vendor/rails/railties/lib/initialize
r.rb:113:in `send’
C:/BitNami/RubyStack/apps/redmine/config/../vendor/rails/railties/lib/initialize
r.rb:113:in `run’
C:/BitNami/RubyStack/apps/redmine/config/environment.rb:20
C:/BitNami/RubyStack/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `gem_original_require’
C:/BitNami/RubyStack/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `require’
C:/BitNami/RubyStack/apps/redmine/vendor/rails/activesupport/lib/active_support/
dependencies.rb:156:in `require’
C:/BitNami/RubyStack/apps/redmine/vendor/rails/activesupport/lib/active_support/
dependencies.rb:521:in `new_constants_in’
C:/BitNami/RubyStack/apps/redmine/vendor/rails/activesupport/lib/active_support/
dependencies.rb:156:in `require’
C:/BitNami/RubyStack/apps/redmine/vendor/rails/railties/lib/tasks/misc.rake:4
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `
call’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `
execute’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `
each’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `
execute’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `
invoke_with_call_chain’
C:/BitNami/RubyStack/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `
invoke_with_call_chain’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `
invoke_prerequisites’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `
each’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `
invoke_prerequisites’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `
invoke_with_call_chain’
C:/BitNami/RubyStack/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `
invoke_with_call_chain’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `
invoke’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`each’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
`run’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
`run’
C:/BitNami/RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/BitNami/RubyStack/ruby/bin/rake:19:in `load’
C:/BitNami/RubyStack/ruby/bin/rake:19
C:\BitNami\RubyStack\apps\redmine>
Any ideas?
Paul
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Could you post the Windows version to try to reproduce it? It seems that you have installed the RubyStack and then the Redmine module right? Have you enabled the “rails 3” support in the RubyStack? Are you running the “use_ruby.bat” script as Administrator user?
|
|
|
prexpressions
9 post(s)
|
I am trying to upgrade on Windows Server 2008 standard.
This is what we have done so far:
Installed RubyStack 1.6-0
Installed Redmine module 0.8.6.stable
This worked a treat.
I have then downloaded bitnami-redmine-0.9.2-0-module-windows-installer.exe
I ran this (though probably not as admin)
Which got 99.9% towards the end of its installation before barfing with the above message
I then, as administrator, found the redmineini.bat and typed individual bits so I could find where it is failing
(even if I get pass this bit I don’t know what else the installer.exe was intending to do after so any advice about that would be good too)
Many thanks
Paul
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
The new version of Redmine requires new version of Rake an other dependencies. Try to install the new RubyStack + Redmine module or the Redmine Stack. You can also try to update manually the dependencies with the command “gem update”.
|
|
|
prexpressions
9 post(s)
|
Downloading the latest RubyStack and then installing the Redmine module has got Redmine 0.9.2 up and running.
But I have lost all my issues and related settings. Is there somewhere to import them from a previous Redmine db? (Sure I made some backups but never tried to restore them…)
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Yes sure, please take a look this guide: http://bitnami.org/article/how-to-backup-and-up…
|
|
|
bkeszler
4 post(s)
|
I’m having the same problem but the solutions here aren’t working for me.
I’m not familiar with Ruby, Gems, Apache, etc. so Redmine was installed with the BitNami installer that includes all dependencies. I don’t have the install file anymore, but Redmine is version 0.9.4.stable
I’m trying to install a module but the rake db:migrate_plugins RAILS_ENV=production command is failing. I’m running it from the BitNami Redmine Stack Environment window (which can be opened from either the Start menu or use_bitnami.bat). One possible issue is that this opens to C:\Documents and Settings\bkeszler\BitNami Redmine Stack Projects, which is an empty folder.
Here is the trace:
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run’
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Program Files/BitNami Redmine Stack/ruby/bin/rake:19:in `load’
C:/Program Files/BitNami Redmine Stack/ruby/bin/rake:19
I verified C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb exists, but I’m not sure how to read the trace. BitNami is installed on a VMware server running XP Pro.
Any help is appreciated!
Brian
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
It is necessary to be in the Redmine directory, I mean, go to the Redmine directory and run the rake command command:
cd C:\Program Files\BitNami Redmine Stack\apps\redmine
rake db:migrate_plugins RAILS_ENV=production
Cheers.
|
|
|
bkeszler
4 post(s)
|
Thanks beltran… worked perfectly. A little knowledge goes a long way!
|