How to upgrade Redmine to 0.8.7
Hi,
just downloaded your Redmine virtual appliance.
I love the webmine interface and that subversion, https etc. is preinstalled!! Thanks.
I was wondering how could I update to the latest stable version of redmine 0.8.7 since the appliance is at 0.8.4?
Thanks a lot,
Patrick
apt-get update
I have not tried it on the redmine appliance, but apt-get update should pull in all the latest packages available.
http://UnmeteredVPS.net/tkl
Try our TurnKey Linux appliance hosting FREE!
Redmine needs to be upgraded from tarball
First make a backup of your database and current /var/www directory. Then download a new tarball, extract it to /var/www and follow the instructions here:
http://www.redmine.org/wiki/redmine/RedmineUpgrade
Haven't tried it myself but it should work. Tell us how it goes.
Upgrade Redmine 0.8.7 to 0.9.2
Hallo, yesterday, I upgraded my Redmine Virtual Appliance 2009.10 (Redmine 0.8.7) to Redmine 0.9.2 like desbribed in http://www.redmine.org/wiki/redmine/RedmineUpgrade. It was very easy, although I'm not trained on the Commandline. My german manual you can find at anleitung-upgrade-redmine.pdf
Upgrade to 0.9.2
I also just upgraded to 0.9.2 and it was very easy. Before you follow the RedmineUpgrade instructions, be careful to upgrade Rails to the correct version for Redmine 0.9.2.
To do that, log in as root and issue the following two commands
# gem install rails -v=2.3.5 (Be patient with this command)
# gem install rack -v=1.0.1
I am going crazy...
I am going crazy... I think.
I downloaded the Redmine VM today and I followed the above, execellent suggestions and upgraded to 0.9.3 and it went pretty well. I did hit one error which required I edit lib/phusion_passenger/utils.rb and insert
require 'stringio'
at the top
And everything seemed to work fine. Email worked. I created a whole bunch of issues. Now two hours later I am trying to login and I get a big purple
Ruby on Rails application could not be started
With the following:
This is my first ever time working with Ruby so I HAVEN'T GOT A CLUE!
I did try to restart the VM and same issue comes up.
HELP.
Thanks,
Paul.
The Upgrade (0.8.4 to 0.9.4) process in 17 simple steps
Download the 0.9.4 version
cd /var/www/
wget -c http://rubyforge.org/frs/download.php/70486/redmine-0.9.4.tar.gz
Tried with failure
I had tried to upgrade redmine to 0.9.4 and have gotten this error.
root@redmine:/var/www/railsapp/# rake db:migrate RAILS_ENV=production
(in /var/www/railsapp)
rake aborted!
A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb
I had followed the 17 step tutorial above, but I had ran into a single problem. plugin_assets did not exist, so I copied it over from the backup.
solved
You had forgotten this command in that 17 step tutorial :)
This should be done just before the rake commands
Thanks GaMa
Thanks GaMa for the correction, indeed I forgot this session store
The Upgrade process in 18 simple steps: (fix the latest post)
Credit to Danilo Pires! - Upgrade Redmine 0.8.4 to 0.9-stable
# ----------------------------------------
# Credit to Danilo Pires!
# Upgrade Redmine 0.8.4 to 0.9-stable
# ----------------------------------------
# Basically It's his "update-manual" turned into a script for simple copy&paste.
#
# Only real change is to redmine version 0.9-stable
# ----------------------------------------
# edit:
# svn co http://redmine.rubyforge.org/svn/branches/0.9-stable railsapp
# instead of
# wget -c http://rubyforge.org/frs/download.php/71421/redmine-0.9.5.tar.gz
# (edit is not tested)
# ----------------------------------------
# Advice from Danilo Pires:
# Before beggining - Do the backups (MySQL, Redmine Folder and the
# /var/www/railsapp/files folder that contains all the files added to your projects)
# - For more details search google for mysqldump or even use the Webmin
# module for MySQL management inside the TurnKey Redmine.
# ----------------------------------------
#1
cd /var/www
svn co http://redmine.rubyforge.org/svn/branches/0.9-stable railsapp
#2
mv railsapp railsappOLD
#3
tar xvfz redmine-0.9.5.tar.gz
#4
mv redmine-0.9.5 railsapp
#5
cp ./railsappOLD/config/database.yml ./railsapp/config/database.yml
cp ./railsappOLD/config/email.yml ./railsapp/config/email.yml
#6
# This and the backup-part are not really tested since I did it on a fresh install
cp -r ./railsappOLD/files ./railsapp/files
#7
sudo chown -R root:www-data /var/www/railsapp
#8
cd /var/www/railsapp
#9 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp
#10 (this command takes a little time - be patient)
gem install rails -v=2.3.5
#11
gem install rack -v=1.0.1
#12 (inside the /var/www/railsapp folder)
rake generate_session_store
#13 (inside the /var/www/railsapp folder)
rake db:migrate RAILS_ENV=production
#14 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp public/plugin_assets
#15 (inside the /var/www/railsapp folder)
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
#16 (inside the /var/www/railsapp folder)
rake db:migrate_plugins RAILS_ENV=production
#17
sudo chmod -R 755 files log/ tmp/ public/plugin_assets
#18 (inside the /var/www/railsapp folder)
rake tmp:cache:clear
#19 (inside the /var/www/railsapp folder)
rake tmp:sessions:clear
#20 - Restart and enjoy it
sudo reboot
Even better with SVN
Don't use 0.9.5, it has a security hole in svn. Use 0.9.6
I found using SVN is a lot more easier and quicker to update than using the traditional method. I would still back up everything though.
Instead of doing the wget command, use
From there, continue normally. Now when you want to update, just type this in the install path
Good suggestion Adrian
As Adrian said, SVN is also for me the best and easier way to do a upgrade. But unfortunatelly is disabled by default on turnkeylinux redmine stack ( I still can figure out why ).
That's why is necessary the first method that I wrote down.
So just change the first step to the one described by Adrian:
And then continue with the next steps.
After that the SVN version of Redmine can be always updated with the simple command:
svn updateThank you!!!
You just made my day epic :)
21 steps
I am newbie; I had problems installing rack 1.0.1 and had to add
gem install rack
command first but I don't know why; this is the script that worked for me (with a small fix due to the use of svn)
#1
cd /var/www
#2
mv railsapp railsappOLD
#3
svn co http://redmine.rubyforge.org/svn/branches/0.9-stable railsapp
#4
cp ./railsappOLD/config/database.yml ./railsapp/config/database.yml
#5
cp ./railsappOLD/config/email.yml ./railsapp/config/email.yml
#6
cp -r ./railsappOLD/files ./railsapp/files
#7
sudo chown -R root:www-data /var/www/railsapp
#8
cd /var/www/railsapp
#9 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp
#10 (this command takes a little time - be patient)
gem install rails -v=2.3.5
#11
gem install rack
#12
gem install rack -v=1.0.1
#13 (inside the /var/www/railsapp folder)
rake generate_session_store
#14 (inside the /var/www/railsapp folder)
rake db:migrate RAILS_ENV=production
#15 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp public/plugin_assets
#16 (inside the /var/www/railsapp folder)
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
#17 (inside the /var/www/railsapp folder)
rake db:migrate_plugins RAILS_ENV=production
#18
sudo chmod -R 755 files log/ tmp/ public/plugin_assets
#19 (inside the /var/www/railsapp folder)
rake tmp:cache:clear
#20 (inside the /var/www/railsapp folder)
rake tmp:sessions:clear
#21 - Restart and enjoy it
sudo reboot
Thanks guys!
This one worked for me too. Although i didn't try Danilo's first. I upgraded to version 1.0.
forgot to tell
that I upgraded successfully to 1.0
#3
svn co http://redmine.rubyforge.org/svn/branches/1.0-stable railsapp
My unfinished combat with Redmine Gitosis and Budget Plugin
Hi guys. Anyone there was able to install the Gitosis and Budget Plugins on Redmine.
I lost a few nights trying this, specially with the Gitosis. Nowadays what I use is an external Revision Control (Revision Control VM from TurnKey) and a Redmine Stack. I have a scheduled job to pull every 10 minutes the main repo from the revision stack. This Gitosis plugin would make my life much easier, making my own GitHub server =).
The Budget Plugin keeps always giving me the message:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.
Hope to hear from you ASAP.
Thanks. Have all a nice weekend.
Have you had a look at Gitolite?
Have you had a look at Gitolite
http://wiki.github.com/sitaramc/gitolite/
Gitolite allows you to host Git repositories easily and securely.
Gitolite was inspired by a much older but currently no longer actively maintained program called “gitosis”. However, over the past year or so of its existence, it has acquired many powerful features, based on user feedback.
There is lots of documentation available, both online and within the source tree. The online documentation is actually served up by github.com, directly from the source code, so you’ll see a lot of github-related links when you read the documents online. Don’t let that worry you......
Thanks Rudiger
Thanks for the tips. I'll take a look at gitolite.
The only doubt I have is: Can I use any plugin to integrate it with redmine?! What I really would like is to make a GitHub like internal server. This script for gitosis and redmine let (at least in theory) the administrator to integrate the user registration, ssh key and permitions of both systems.
There's a lot of bug reports of files locking problems with redmine-gitosis-plugin.
I didn't know Gitosis was deprecated. Thanks for the advice and I'll make the migration ASAP. Once I get everything done I'll post a new message.
Thanks again.
Post new comment