Hi again,
Just performed a Redmine 1.1.3 to 2.1.0 upgrade using the Virtualmin installer script. The 1.1.3 was installed using the VM installer script. Basically a blank redmine installation.
With the updated installer scripts, I then upgraded to Redmine 2.1.0, output is shown below.
Upgrade failed with error. Redmine as a result is down. Any tips on how to fix? Or is there a recommended way to do the upgrades for Redmine? I was hoping that the VM installer scripts would just work for this one :)
Upgrade Script
In domain redmine.test.com
Checking for 4 required packages ..
Installing gcc ..
.. already installed
Installing make ..
.. already installed
Installing fcgi-devel .. .. already installed
Installing sqlite-devel .. .. already installed
.. all packages are already installed Downloading http://rubyforge.org/frs/download.php/76448/redmine-2.1.0.tar.gz .. Downloading http://files.rubyforge.vm.bytemark.co.uk/redmine/redmine-2.1.0.tar.gz (3.54 MB) .. Received 1024 bytes (0 %) Received 363 kB (10 %) Received 725 kB (20 %) Received 1.06 MB (30 %) Received 1.42 MB (40 %) Received 1.77 MB (50 %) Received 2.12 MB (60 %) Received 2.48 MB (70 %) Received 2.83 MB (80 %) Received 3.19 MB (90 %) Received 3.54 MB (100 %) .. download complete.
Installing Ruby Gem test-spec .. .. done
Installing Ruby Gem camping .. .. done
Installing Ruby Gem fcgi .. .. done
Installing Ruby Gem memcache-client .. .. done
Installing Ruby Gem ruby-openid .. .. done
Installing Ruby Gem rack version 1.0.1 .. .. done
Installing Ruby Gem rake .. .. done
Installing Ruby Gem i18n version 0.4.2 .. .. done
Installing Ruby Gem bundler .. .. done
Applying web server configuration .. .. done
Now installing redmine version 2.1.0 .. Session store failed : rake aborted! Could not find gem 'mocha (= 0.12.3) ruby' in the gems available on this machine.
(See full trace by running task with --trace) More information on using this script can be found at http://www.redmine.org/.
.. installation was only partially complete. Applying web server configuration .. .. done
Comments
Submitted by JamieCameron on Wed, 10/03/2012 - 16:47 Comment #1
If you SSH in as root and run
gem install mocha
and then re-run the Redmine installer, does it work?Submitted by bigwombat on Thu, 10/04/2012 - 01:18 Comment #2
Tried: gem install mocha
That appeared to work.
So then re-run the Redmine installer. Didn't work.
Tried starting the Rails server and this is the error output.
Starting up the Rails server process for redmine .. .. failed : Mongrel server did not start : ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with production environment... ** Mounting Rails at /redmine... /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/resolver.rb:287:in
resolve': Could not find gem 'mocha (= 0.12.3) ruby' in the gems available on this machine. (Bundler::GemNotFound) from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/resolver.rb:161:in
start' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/resolver.rb:128:inresolve' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/resolver.rb:127:in
catch' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/resolver.rb:127:inresolve' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/definition.rb:178:in
resolve' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/definition.rb:113:inspecs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/definition.rb:158:in
specs_for' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/definition.rb:147:inrequested_specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/environment.rb:23:in
requested_specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:11:insetup' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler.rb:116:in
setup' from /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/setup.rb:17 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from /home/redmine/public_html/redmine/config/boot.rb:6 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /home/redmine/public_html/redmine/config/application.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /home/redmine/public_html/redmine/config/environment.rb:2 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:inrails' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in
cloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:incall' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in
listener' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:incloaker_' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in
call' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:ininitialize' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in
new' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:inrun' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in
run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 from /usr/bin/mongrel_rails:19:in `load' from /usr/bin/mongrel_rails:19Submitted by JamieCameron on Thu, 10/04/2012 - 01:52 Comment #3
Do you happen to know which mocha version was installed when you ran
gem install mocha
?Submitted by JamieCameron on Thu, 10/04/2012 - 13:17 Comment #4
From that error, it looks like they require exactly Mocha version 0.12.3 ..
Submitted by bigwombat on Fri, 10/05/2012 - 00:07 Comment #5
[root@elmo ~]# gem install mocha
Successfully installed mocha-0.12.6
1 gem installed
Installing ri documentation for mocha-0.12.6...
Installing RDoc documentation for mocha-0.12.6...
Does that help?
Submitted by JamieCameron on Fri, 10/05/2012 - 11:43 Comment #6
Ok, so it looks like version 0.12.6 is being installed .. but you actually need version 0.12.3.
Try running :
gem uninstall mocha
gem install --version 0.12.3 mocha
Submitted by bigwombat on Fri, 10/05/2012 - 15:42 Comment #7
Next problem, rmagick required but will not install.
[root@elmo other]# gem uninstall mocha
You have requested to uninstall the gem:
mocha-0.12.6
i18n-0.6.1 depends on [mocha (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Successfully uninstalled mocha-0.12.6
[root@elmo other]# gem install --version 0.12.3 mocha
Successfully installed mocha-0.12.3
1 gem installed
Installing ri documentation for mocha-0.12.3...
Installing RDoc documentation for mocha-0.12.3...
Re-execute the Redmine 2.1.0 installation...
Checking for 4 required packages ..
Installing gcc ..
.. already installed
Installing make ..
.. already installed
Installing fcgi-devel ..
.. already installed
Installing sqlite-devel ..
.. already installed
.. all packages are already installed
Found http://rubyforge.org:80/frs/download.php/76448/redmine-2.1.0.tar.gz in cache ..
Installing Ruby Gem test-spec ..
.. done
Installing Ruby Gem camping ..
.. done
Installing Ruby Gem fcgi ..
.. done
Installing Ruby Gem memcache-client ..
.. done
Installing Ruby Gem ruby-openid ..
.. done
Installing Ruby Gem rack version 1.0.1 ..
.. done
Installing Ruby Gem rake ..
.. done
Installing Ruby Gem i18n version 0.4.2 ..
.. done
Installing Ruby Gem bundler ..
.. done
Applying web server configuration ..
.. done
Now installing redmine version 2.1.0 ..
Session store failed :
rake aborted!
Could not find gem 'rmagick (>= 2.0.0) ruby' in the gems available on this machine.
(See full trace by running task with --trace)
More information on using this script can be found at http://www.redmine.org/.
.. installation was only partially complete.
Applying web server configuration ..
.. done
Try a manual install of rmagick
[root@elmo other]# gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
Any suggestions?
And once these errors are all sorted out, will the Redmine script for 2.1.0 be updated so that it works correctly?
Submitted by JamieCameron on Fri, 10/05/2012 - 17:23 Comment #8
Looks like you need to install the ImageMagick development libraries.
Try running :
yum install ImageMagick-devel
Submitted by bigwombat on Mon, 10/08/2012 - 20:16 Comment #9
Did this:
yum install ImageMagick-devel
Then went on to install the other dependencies
[root@elmo ~]# gem install rmagick
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
Installing ri documentation for rmagick-2.13.1...
Installing RDoc documentation for rmagick-2.13.1...
[root@elmo ~]# gem install jquery-rails
Successfully installed jquery-rails-2.1.3
1 gem installed
Installing ri documentation for jquery-rails-2.1.3...
Installing RDoc documentation for jquery-rails-2.1.3...
Now when I try to install Redmine 2.1.2, the following error is output.
Checking for 4 required packages ..
Installing gcc ..
.. already installed
Installing make ..
.. already installed
Installing fcgi-devel ..
.. already installed
Installing sqlite-devel ..
.. already installed
.. all packages are already installed
Found http://rubyforge.org:80/frs/download.php/76495/redmine-2.1.2.tar.gz in cache ..
Installing Ruby Gem test-spec ..
.. Gem install failed : INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'test-spec' (>= 0) in any repository
Submitted by JamieCameron on Tue, 10/09/2012 - 00:11 Comment #10
Try re-running it .. I can see from your previous comments that the
test-spec
Gem did get installed OK.Submitted by bigwombat on Tue, 10/09/2012 - 00:43 Comment #11
Another error, even though jquery-rails has been installed...
Checking for 4 required packages ..
Installing gcc ..
.. already installed
Installing make ..
.. already installed
Installing fcgi-devel ..
.. already installed
Installing sqlite-devel ..
.. already installed
.. all packages are already installed
Found http://rubyforge.org:80/frs/download.php/76495/redmine-2.1.2.tar.gz in cache ..
Installing Ruby Gem test-spec ..
.. done
Installing Ruby Gem camping ..
.. done
Installing Ruby Gem fcgi ..
.. done
Installing Ruby Gem memcache-client ..
.. done
Installing Ruby Gem ruby-openid ..
.. done
Installing Ruby Gem rack version 1.0.1 ..
.. done
Installing Ruby Gem rake ..
.. done
Installing Ruby Gem i18n version 0.4.2 ..
.. done
Installing Ruby Gem bundler ..
.. done
Installing Ruby Gem mocha version 0.12.3 ..
.. done
Applying web server configuration ..
.. done
Now installing redmine version 2.1.2 ..
Session store failed :
rake aborted!
Could not find gem 'jquery-rails (~> 2.0.2) ruby' in the gems available on this machine.
(See full trace by running task with --trace)
More information on using this script can be found at http://www.redmine.org/.
.. installation was only partially complete.
Applying web server configuration ..
.. done
Submitted by JamieCameron on Tue, 10/09/2012 - 12:40 Comment #12
Maybe your installed version of
jquery-rails
is too old? Re-installing it withgem install query-rails
should fix that..Submitted by bigwombat on Tue, 10/23/2012 - 01:03 Comment #13
Still no joy unfortunately.
# gem install jquery-rails
Successfully installed jquery-rails-2.1.3
1 gem installed
Installing ri documentation for jquery-rails-2.1.3...
Installing RDoc documentation for jquery-rails-2.1.3...
And re-running the Virtualmin installer still fails.
Is this installer covered by Virtualmin support? Should it work?
Submitted by JamieCameron on Tue, 10/23/2012 - 13:23 Comment #14
Yes, it should work .. however, Rails apps have crazy dependencies that can be hard to satisfy :-(
What error does the installed fail with after you installed
jquery-rails
?Submitted by bigwombat on Tue, 10/23/2012 - 14:41 Comment #15
Hi Jamie,
Thanks for the reply. The error now is the same as #11.
Are you able to run up a test environ to reproduce this? The environ we're using is a stock Centos 6 x64 with Virtualmin and a few epel repo packages (other epel is disabled).
Best wishes!
Submitted by JamieCameron on Tue, 10/23/2012 - 22:19 Comment #16
Hmm, it looks like Redmine 2.1.2 isn't really ready for production :-(
Have you tried running an older version, like 1.4.4 ?
Submitted by bigwombat on Tue, 10/23/2012 - 22:22 Comment #17
OK, will try.
Were you able to test yourself?
Submitted by JamieCameron on Wed, 10/24/2012 - 16:27 Comment #18
Yes, it works OK for me. Let me know if an older version works for you..
Submitted by bigwombat on Wed, 10/24/2012 - 16:44 Comment #19
Which version worked for you, Redmine 2.1.2? Or a different version?
Submitted by JamieCameron on Wed, 10/24/2012 - 21:18 Comment #20
2.1.2 worked for me, although this was on a system that I'd done some prior ruby installs ... so some dependency may have been installed already.
Based on the issues you have seen we may need to desupport version 2.x though, as it seems very unstable :-(
You may be better off with 1.4.x