This forum is no longer active. Please post your questions to our new community site

Forums Redmine

HowTo Update from 0.7.3

Subscribe to HowTo Update from 0.7.3 16 post(s), 6 voice(s)

 
Avatar sph 3 post(s)

Hi,

i have a runninge Redmine installation from bitname on my pc. Now i want to update from 0.7.3 to 0.8.0 package.
Are there any howto’s or something else, how this could be done?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

At this moment the Stack doesn’t include the update option, you should follow the upgrade steps for Redmine: http://www.redmine.org/wiki/redmine/RedmineUpgrade

Cheers

 
Avatar sph 3 post(s)

Thanks for the answer

 
Avatar PowerMacDaddy 6 post(s)

I got into a sticky mess because I didn’t wait to try and upgrade, so I never saw this post until it was too late. So I used the following procedure on my OS X install:

(Note: where referenced, ROOT is the root-level directory for your Redmine installation. ROOT_OLD and ROOT_NEW will refer to the respective old and new installations)

1) Stop the currently running Redmine installation using “ROOT_OLD/ctlscript.sh stop”
2) Back up the existing install folder (I zipped mine)
3) Install new Bitnami stack into a new directory. Use all the same settings you used for the original install. The Bitnami installer will automatically start everything up, so stop them all with the “ROOT_NEW/ctlscript.sh stop” command.
4) Copy ROOT_OLD/apps/redmine/files into ROOT_NEW/apps/redmine/files
5) If you’ve modified your Subversion startup script to use a custom directory, copy ROOT_OLD/subversion/scripts/ctl.sh to ROOT_NEW/subversion/scripts/ctl.sh
6) Back up ROOT_NEW/mysql (Again, I zipped the folder) and delete the original directory from ROOT_NEW/
7) Copy ROOT_OLD/mysql to ROOT_NEW/mysql
8) Edit ROOT_NEW/mysql/scripts/ctl.sh to reflect your new pathname
9) Copy ROOT_OLD/apps/redmine/config/database.yml to ROOT_NEW/apps/redmine/config/database.yml
10) Start everything up: “ROOT_NEW/ctlscript.sh start”
10) cd to ROOT_NEW/apps/redmine, then run: ../../ruby/bin/rake db:migrate RAILS_ENV=”production”
11) Run: ctlscript.sh restart

And you should be in business. HTH, YMMV.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for this great update guide from the BitNami team!

 
Avatar stewit 2 post(s)

Thanks!

 
Avatar sph 3 post(s)

Thanks a lot. I will try it this weekend.

 
Avatar dgp 19 post(s)

I would like to install the version 0.8.0 of Remin Stack, but I have some doubts when I read the Upgrade Guide (http://www.redmine.org/wiki/redmine/RedmineUpgrade).

I downloaded “bitnami-redmine-0.8.0-0-windows-installer.exe” so I suppose that I have to following the steps “Upgrading from a downloaded release.”, is right?. In Section 5 refers to “RAILS_ROOT”, what is this directory?.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Yes, there are the correct steps. The RAILS_ROOT refers to the redmine directory, where the application save the documents. You can find at <installation_directory>/apps/redmine/files.

Cheers

 
Avatar dgp 19 post(s)

I executed the command of step 4 and get the following result:

_rake aborted!
Unable to determine home path environment variable.
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2398:in `win32_system_dir’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2381:in `system_dir’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2349:in `raw_load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:1997:in `load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2048:in `standard_exception_handling’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:1996:in `load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:1981:in `run’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:2048:in `standard_exception_handling’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/lib/rake.rb:1979:in `run’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.2/bin/rake:31
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/bin/rake:19:in `load’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/bin/rake:19_

What is the environment variable and where it set?

 
Avatar carlos Administrator 144 post(s)

Hi,
could you try updating Rake version ? It seems they did some modifications about that between 0.8.2 and 0.8.3

Just run:

gem update rake
from rubyconsole and try once again.

 
Avatar dgp 19 post(s)

Hi carlos,

I can not update because I run the command “gem update rake” and I get the following:

*
C:\Archivos de programa\BitNami Redmine Stack 0.8.0\ruby\bin>gem update rake
Updating installed gems
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) Bad file descriptor – connect(2) (Errno::EBADF) fetching size (http://gems.rubyforge.org/yaml)
 
Avatar carlos Administrator 144 post(s)

That error is strange, I’m using those urls without any problem.

You could try downloading the gem manually from http://rubyforge.iasi.roedu.net/gems/rake-0.8.3.gem and running

gem install <path_to_gem_file>\rake-0.8.3.gem

I hope it helps you

 
Avatar dgp 19 post(s)

I’ve updated the Rake version and if I run the command from step 4 (rake db: migrate RAILS_ENV = “production”), I get the following now:

C:\Archivos de programa\BitNami Redmine Stack 0.8.0\ruby\bin>rake db:migrate RAILS_ENV=”production”—trace
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2343:in `raw_load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1985:in `load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1984:in `load_rakefile’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/bin/rake:19:in `load’
C:/Archivos de programa/BitNami Redmine Stack 0.8.0/ruby/bin/rake:19

What is file to find?

 
Avatar carlos Administrator 144 post(s)

Hi dgp,

When you run any Rake tasks you should do it inside the Rails application path, so it is able to find the file which defines those rake tasks related with the application.

In your case you should do

cd "\Archivos de programa\BitNami Redmine Stack 0.8.0\apps\redmine" 
"C:\Archivos de programa\BitNami Redmine Stack 0.8.0\ruby\bin\rake" db:migrate RAILS_ENV="production"

 
Avatar dgp 19 post(s)

Hi Carlos,

I get to run “rake db:migrate RAILS_ENV=”production”” from the command line but I get several errors of ruby. One of the errors I get is “Error al iniciar la aplicación porque no se encontró CORE_RL_magick.dll. La reistalación de la aplicación puede solucionar el problema”
Did you have this problem?

Forums Redmine