TurnKey Linux Virtual Appliance Library

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!

Liraz Siri's picture

Redmine needs to be upgraded from tarball

As the accompanying notes for the Redmine appliance document, Redmine is installed from an upstream tarball, which is extracted to /var/www. Unfortunately Redmine is currently not supported in Ubuntu/Debian so you can't use the package manager.

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.

Working procedure to upgrade Redmine from 0.8.x to 1.x.x

 

*Execute the commands as root (sudo)

* The upgrade process can take a while, be patient while the stack is updated (gem, apt-get)

1. Stopping Apache

 
# /etc/init.d/apache2 stop
 
2. Some maintenance on the Ruby stack
 
# gem update --system

# gem install rails -v=2.3.5

# gem install rack -v=1.0.1

# apt-get install librmagick-ruby
 
(librmagick-ruby needed for the Redmine RMagick - avoiding to install full 126 MB package of imagemagick libs)
 
3. Create a "restore point" - OLD version for backup purposes
 
# cd /var/www/

# mv railsapp railsappOLD
 
4. Checkout the latest stable Redmine branch
	# cd /var/www/

# svn co http://redmine.rubyforge.org/svn/branches/1.0-stable railsapp
 
5. Copy config files from the OLD to the upgraded version
	# cd /var/www/

# cp ./railsappOLD/config/database.yml  ./railsapp/config/database.yml

# cp ./railsappOLD/config/email.yml  ./railsapp/config/email.yml

# cp -r ./railsappOLD/files ./railsapp/files
 
6. Setting appropiate permission files
 
# chown -R root:www-data /var/www/railsapp

# cd /var/www/railsapp

# chown -R www-data:www-data files log tmp

7. Some Ruby&co maintenance - migration
 
# rake generate_session_store

# rake db:migrate RAILS_ENV=production

# chown -R www-data:www-data files log tmp public/plugin_assets

# rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production

# rake db:migrate_plugins RAILS_ENV=production

# chmod -R 755 files log/ tmp/ public/plugin_assets

# rake tmp:cache:clear

# rake tmp:sessions:clear
 
8. Fix the infamous "uninitialized constant PhusionPassenger::Utils::PseudoIO::StringIO" error
 

Open /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb in your favorite editor and on top of the first "required...." line add the following:

required='stringio'
i'm using nano as the editor, the example command line is:
# nano /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb
 
9. Restart Apache and enjoy !
 
/etc/init.d/apache2 start
 
Tested succesfully on vanilla VM install - 10.2 on VMWare Workstation, VMWare ESX4, KVM, VirtualBox
 
Credits goes to all the posters in the topic as the sequence is compiled based mainly on their contributions.
 
Best regards, 
Doftorul

Fide Sed Cui Vide

One minor change

Thank for the concise and easy upgrade summation.   There is one minor issue.

You listed:

required='stringio'

This should be:

require 'stringio'

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

 
Roy Feldman's picture

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:

Error message:
syntax error on line 68, col 0: `production:'
Exception class:
ArgumentError
Application root:
/var/www/railsapp
Backtrace:
# File Line Location
0 /usr/lib/ruby/1.8/yaml.rb 133 in `load'
1 /usr/lib/ruby/1.8/yaml.rb 133 in `load'
2 /usr/lib/ruby/1.8/yaml.rb 144 in `load_file'
3 /usr/lib/ruby/1.8/yaml.rb 143 in `open'
4 /usr/lib/ruby/1.8/yaml.rb 143 in `load_file'
5 /var/www/railsapp/config/initializers/40-email.rb 6  
6 /var/www/railsapp/vendor/rails/activesupport/lib/active_support/dependencies.rb 147 in `load_without_new_constant_marking'
7 /var/www/railsapp/vendor/rails/activesupport/lib/active_support/dependencies.rb 147 in `load'
8 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 622 in `load_application_initializers'
9 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 621 in `each'
10 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 621 in `load_application_initializers'
11 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 176 in `process'
12 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 113 in `send'
13 /var/www/railsapp/vendor/rails/railties/lib/initializer.rb 113 in `run'
14 /var/www/railsapp/config/environment.rb 20  
15 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
16 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
17 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 303 in `preload_application'
18 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server'
19 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb 255 in `report_app_init_status'
20 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server'
21 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 194 in `start_synchronously'
22 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 163 in `start'
23 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb 213 in `start'
24 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application'
25 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add'
26 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application'
27 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 80 in `synchronize'
28 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
29 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application'
30 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 154 in `spawn_application'
31 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application'
32 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 352 in `__send__'
33 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 352 in `main_loop'
34 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb 196 in `start_synchronously'
35 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server 61

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.

Danilo Pires's picture

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

 
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.
 
 
The 17 steps:
 
1 - Rename the old railapps folder to railsappsWHATEVER
 
2 - Uncompress and copy the new redmine folder to the /var/www
 
3 - Rename the new redmine to railsapp
 
4 - Copy the files database.yml and email.yml of the old installation to the new one.
(inside the /var/www/railsapp/config folder)
 
5 - Copy also the /files folder that you made the backup from the old installation to the new new one - /var/www/railsapp/files
 
6 - sudo chown -R root:www-data /var/www/railsapp 
 
7 - cd /var/www/railsapp
 
8 - sudo chown -R www-data:www-data files log tmp public/plugin_assets"
(inside the /var/www/railsapp folder)
 
9 - sudo chmod -R 755 files log/ tmp/ public/plugin_assets
 
10 - gem install rails -v=2.3.5 (this command takes a little time - be patient)
 
11 - gem install rack -v=1.0.1
 
12 - rake db:migrate RAILS_ENV=production
(inside the /var/www/railsapp folder)
 
13 - rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production 
(inside the /var/www/railsapp folder)
 
14 - rake db:migrate_plugins RAILS_ENV=production
(inside the /var/www/railsapp folder)
 
15 - rake tmp:cache:clear
(inside the /var/www/railsapp folder)
 
16 - rake tmp:sessions:clear
(inside the /var/www/railsapp folder)
 
17 - Restart and enjoy it (sudo reboot)

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 :)

 

rake generate_session_store

 

This should be done just before the rake commands

Danilo Pires's picture

Thanks GaMa

Thanks GaMa for the correction, indeed I forgot this session store

Danilo Pires's picture

The Upgrade process in 18 simple steps: (fix the latest post)

 

 
 
1 - Rename the old railapps folder to railsappsWHATEVER
 
2 - Copy the new redmine folder to the /var/www
 
3 - Rename the new redmine to railsapp
 
4 - Copy the files database.yml and email.yml of the old installation to the new one.
(inside the /var/www/railsapp/config folder)
 
5 - Copy also the /files folder that you made the backup from the old installation to the new new one - /var/www/railsapp/files
 
6 - sudo chown -R root:www-data /var/www/railsapp 
 
7 - cd /var/www/railsapp
 
8 - sudo chown -R www-data:www-data files log tmp
(inside the /var/www/railsapp folder)
 
9 - gem install rails -v=2.3.5 (this command takes a little time - be patient)
 
10 - gem install rack -v=1.0.1
 
11 - rake generate_session_store
(inside the /var/www/railsapp folder)
 
12 - rake db:migrate RAILS_ENV=production
(inside the /var/www/railsapp folder)
 
13 - sudo chown -R www-data:www-data files log tmp public/plugin_assets
(inside the /var/www/railsapp folder)
 
14 - rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production 
(inside the /var/www/railsapp folder)
 
15 - rake db:migrate_plugins RAILS_ENV=production
(inside the /var/www/railsapp folder)
 
16 - sudo chmod -R 755 files log/ tmp/ public/plugin_assets
 
17 - rake tmp:cache:clear
(inside the /var/www/railsapp folder)
 
18 - rake tmp:sessions:clear
(inside the /var/www/railsapp folder)
 
19 - Restart and enjoy it (sudo reboot)

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
 


Adrian VanRassel's picture

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

svn co http://redmine.rubyforge.org/svn/branches/0.9-stable railsapp

From there, continue normally.  Now when you want to update, just type this in the install path

svn update

Danilo Pires's picture

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:

 

svn co http://redmine.rubyforge.org/svn/branches/0.9-stable railsapp

And then continue with the next steps.

 

After that the SVN version of Redmine can be always updated with the simple command:

 

	svn update
 
GREAT JOB Adrian!!! I love when everybody work togheter for the good of the comunity.
Adrian VanRassel's picture

Thank 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

Danilo Pires's picture

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......

Danilo Pires's picture

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.

No luck upgrading 0.8.4 to 1.0.1

This thread was very helpful in getting me going most of the way, but so far, no dice...

Update to 2.3.5/1.0.1 went well, so did database migration.

Some smaller issues I ran into:

  • public/plugin_assets did not exist in my setup, step #13 of the 18-step process above, I copied it from the original to get past that, and then re-did some of the chmod's, just to be safe
  • the log file did not have the proper permissions after reboot, the apache2 error log shows "Rails Error: Unable to access log file. Please ensure that /var/www/railsapp/log/production.log exists and is chmod 0666." - so I adjusted that, and then rebooted

The point I'm at now gives this error in the log:

 

ActiveRecord::StatementInvalid (Mysql::Error: Table 'railsapp_production.member_roles' doesn't exist: SELECT count(DISTINCT `members`.id) AS count_all FROM `members`  LEFT OUTER JOIN `projects` ON `projects`.id = `members`.project_id  LEFT OUTER JOIN `member_roles` ON (`members`.`id` = `member_roles`.`member_id`)  LEFT OUTER JOIN `roles` ON (`roles`.`id` = `member_roles`.`role_id`) WHERE (`members`.user_id = 2 AND (projects.status=1)) ):
  app/models/project.rb:107:in `visible_by'
  app/models/project.rb:95:in `latest'
  app/controllers/welcome_controller.rb:23:in `index'
  passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
[...]
 
What I did was make a VM copy from a lightly-configured (working!) TKL Redmine download, to try and get this process right, before venturing to upgrade the VM with the production Redmine data.
 
I might have messed up due to the initial permission problem with public/plugin_assets and what I did to proceed from there, but that's about all I can think of.
 
I only have a limited knowledge of Ruby and Rails, which makes it a bit challenging for me to properly diagnose this. Tips on how to proceed from here would be most welcome.
 
TIA -jcw

... solved.

Never mind. Redoing the "rake db:migrate RAILS_ENV=production" did the trick.

Danilo Pires's picture

Thanks for sharing

Jean-Claude thanks for sharing your experience with us.

Great to hear that you were able to solve it.

My pleasure. I redid the

My pleasure. I redid the whole thing one more time, now with a copy of the "real" site. Summary: had to manually copy over the plugin_assets before step #13 (in the 18-step version). The rest worked exactly as advertised - my troubles must have been due to a mixup.

I'm using the redmine_markdown_formatter plugin (installed manually), so that got copied over as well this time. Not yet working as expected (not showing up in Text Formatting pop-up in General Settings), but the upgrade from 0.8.4 to 1.0.1 seems to have been completed fully using your steps. Terrific, thanks.

Solved.

Ok, now markdown works again as well. Forgot to copy the plugin over to railsapp/vendor/plugins...

Error in running gem install rails

when updating rails I ran into an error stating that:

ERROR: could not find gem rails locally or in a repository

to correct I ran:

sudo gem update --system

and my problem was solved

Error after following all steps

I got the following error when loading the page after doing the update:

 

uninitialized constant PhusionPassenger::Utils::PseudoIO::StringIO 

to fix I added the following:

require 'stringio'

to the beginning of the file /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb

reloaded the page and the problem was fixed.

Restart

 
I'd like to install plugin but i dislike to restart the machine (sudo reboot)!  Can i restart only redmine?

I have found a lot of info:

http://www.redmine.org/boards/2/topics/6719

http://www.redmine.org/boards/2/topics/15827

http://wiki.turnkeylinux.org/Whiteboard/Redmine_%22Virtual_Appliance%22_Instructions

 

Or is better to restart the service from web abmin??

Thanks!

Alon Swartz's picture

11.0RC ?

May I ask why you aren't using the new 11.0RC version? It includes redmine 1.0.2 out of the box, and other improvements.

BTW, if the webserver requires a restart after installing a plugin, you could do this:

/etc/init.d/apache2 restart

11.0RC

Hi, 

tkans

Because Redmine is in production from April (turnkey release); we have upgrade the version until now (we use 1.0.0) 

11.0 RC is not installed because we need the right procedure to move the entire redmine data, present in 1.0.0. We need to test the procedure, then we need to know if redmine in 11.0RC (1.0.2)  use the usal 20 steps procedure to upgrade or another.

Thank 

Danilo Pires's picture

Babbo - Redmine Restart Procedure

Thanks Alon for the support to Babbo.

Babbo, as explained by Alon, the best way to do the redmine procedure without a machine or VM reboot is by simply restart of the apache process, or the stop and start - with the same result (at least in theory) =).

The first one as described before is done with the command above:

/etc/init.d/apache2 restart

 

The second one is:

/etc/init.d/apache2 stop    and

/etc/init.d/apache2 start

 

Thanks everyone for the fast answers on this topic.

C ya.

Upgrade

Hi,

we ar on

mercurial 1.4.3

Redmine 1.0.2.stable (MySQL )

And we use Projects Tree View plugin.

I have some tips to ask.

1) has someone upgrade mercurial  to a more recent 1.8 version an its compatibility with Redmine 1.0.x?

2)Someone has ported data between a old turnkeyredmine to a new turnkeyredmine with succes?

3)During upgrade is preferible to turn off plugin?

 

Be careful

To upgrade mercurial do

To upgrade mercurial do this

- Backup system

- apt-get purge mercurial tortoisehg tortoisehg-nautilus

- sudo apt-get install mercurial

- sudo apt-get install python-setuptools python-dev build-essential

- sudo easy_install -U mercurial

This is not the bast way to do this because package manager has some problem to identify correct version, definitive solution could be use of PPA packages

Upgraded to 1.2 Stable

#0

/etc/init.d/apache2 stop

#1
cd /var/www

#2
mv railsapp railsappOLD

#3
svn co http://redmine.rubyforge.org/svn/branches/1.2-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.11

#11
gem install rack

#12
gem install rack -v=1.1.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

/etc/init.d/apache2 start

Thanks!!

Thanks!!

Some difference

#0
/etc/init.d/apache2 stop
#1
cd /var/www
#2
mv railsapp railsappOLD
#3
svn co http://redmine.rubyforge.org/svn/branches/1.2-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

 

#6B

Here i have done some ruby stack configuration

 

Check status

gem list | grep -P '^(rails|i18n|rack|rake|rubygems-update) '

remeber you need the correct stack

 

i18n (0.4.2)
rack (1.1.1, 1.1.0, 1.0.1)
rails (2.3.11, 2.3.8)
rake (0.8.7)
rubygems-update (1.8.10, 1.6.2)

if you haven't it uprgrade following

 

 

gem install <component> -v=1.0.1

if you need you can unistall using
gem uninstall <component> -v=1.3.3

for every version follow those rules remember i18n and correct version   

http://www.redmine.org/projects/redmine/wiki/RedmineInstall


#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 (inside the /var/www/railsapp folder)
rake generate_session_store
#11 (inside the /var/www/railsapp folder)
rake db:migrate RAILS_ENV=production
#12 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp public/plugin_assets
#13 (inside the /var/www/railsapp folder)
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
#14 (inside the /var/www/railsapp folder)
rake db:migrate_plugins RAILS_ENV=production
#15
sudo chmod -R 755 files log/ tmp/ public/plugin_assets
#16 (inside the /var/www/railsapp folder)
rake tmp:cache:clear
#17 (inside the /var/www/railsapp folder)
rake tmp:sessions:clear
#18
/etc/init.d/apache2 start

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)