Project

General

Profile

Upgrade and Move

Added by David Bergerson about 16 years ago

I have an install of .51 on a server. I would like to move it to another server and at the same time upgrade to the latest version.

Is there a procedure for this that I can follow?

Thanks.

dave


Replies (8)

RE: Upgrade and Move - Added by Thomas Lecavelier about 16 years ago

My recommandations:

  1. Backup your current server
  2. Update it to the version you want (0.7.3 I guess?)
  3. Backup the updated redmine instance
  4. Do a clean install of the same version you upgrade to on the new server
  5. Restore backuped database in the new server
  6. Configure email.yml, database.yml
  7. Restore files/ directory content (if you had attachements on the old server)
  8. you're done

If you have doubt, don't forget the migration guide

RE: Upgrade and Move - Added by David Bergerson about 16 years ago

svn update

. . .

Updated to revision 1941.

[root@xxx trunk]# rake db:migrate RAILS_ENV="production"
(in /opt/redmine/trunk)
Missing the Rails 2.1.0 gem. Please `gem install -v=2.1.0 rails`, update your RAILS_GEM_VE RSION setting in config/environment.rb for the Rails version you do have installed, or com ment out RAILS_GEM_VERSION to use the latest version installed.
[root@weblifebox trunk]# gem install -v=2.1.0 rails
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn] y
Install required dependency activesupport? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
Install required dependency activeresource? [Yn]
y
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out fetching http://gems.rubyforge.org/gems/activeresource-2.1.0.gem
[root@xxx trunk]# gem install -v=2.1.0 rails
Install required dependency activeresource? [Yn] y
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out fetching http://gems.rubyforge.org/gems/rails-2.1.0.gem
[root@xxx trunk]# gem install -v=2.1.0 rails
Successfully installed rails-2.1.0
[root@weblifebox trunk]# rake db:migrate RAILS_ENV="production"
(in /opt/redmine/trunk)
rake aborted!
/opt/redmine/trunk/config/environment.rb:6: syntax error, unexpected tLSHFT
<<<<<<< .mine
^
/opt/redmine/trunk/config/environment.rb:93: syntax error, unexpected tEQQ, expecting $end =======
^

(See full trace by running task with --trace)

Ideas?

RE: Upgrade and Move - Added by Manuel García Ortega about 16 years ago

Hi, have you change the enviroment.rb file.
Which version of ruby are you using?

RE: Upgrade and Move - Added by David Bergerson about 16 years ago

[root@xxx trunk]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

I have not changed any .rb file.

As I stated, I had a working .51 install. I just started to follow the instructions in the migration guide. I did the svn upgrade then the gem install, then tried the db upgrade.

Am I supposed to change the enviroment.rb file?

RE: Upgrade and Move - Added by Manuel García Ortega about 16 years ago

You have downloaded the last development version, do you want to install this one?
If you want to install the last stable version, you have to download the 0.7.3 version.

Could you post the message after running:

rake db:migrate RAILS_ENV="production" --trace

RE: Upgrade and Move - Added by David Bergerson about 16 years ago

ARGH :)

I just followed the migration guide :)

svn update

Here is the results.

[root@xxx trunk]# rake db:migrate RAILS_ENV="production" --trace
(in /opt/redmine/trunk)
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    /opt/redmine/trunk/config/environment.rb:6: syntax error, unexpected tLSHFT
    <<<<<<< .mine
    ^
    /opt/redmine/trunk/config/environment.rb:93: syntax error, unexpected tEQQ, expecting $end =======
    ^
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
    /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/misc.rake:3
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
    /usr/local/bin/rake:16:in `load'
    /usr/local/bin/rake:16

Need help - Upgrade and Move - Added by Ramakrishna Krishnamsetty about 16 years ago

Hi,

We have been using redmine since 0.6.devel.1092
We really appreciate redmine and have also donated what we could via paypal.

We are shifting servers and decided to upgrade at the same time.

I initially installed redmine(0.6.devel.1092) via tgz file and can't do an svn update.

I would like suggestions on how to upgrade without loosing data.

What I am planning is to:
1. checkout the closest version to 0.6.devel.1092 into the new server,
2. migrate the DB (via mysqldump) from current live installation to new server
3. svn update to latest stable version
4. rake DB:migrate to update database

Have there been any changes in data types for fields? Will my simple approach work?

Can somebody please let me know what are the data directories that I will need to copy - I don't want to loose the attachments from the earlier installation.

I will be using REE and phusion in the new server. (Older installation had mongrel). Once I migrate, I will submit a 'howto'.

Thanks,
kc

RE: Upgrade and Move - Added by Thomas Lecavelier about 16 years ago

Just read the second post, dammit!

    (1-8/8)