TurnKey Linux Virtual Appliance Library

**Guide** How to Upgrade Redmine to Latest Version (2.0.3+) Painlessly

Intro

Here is a quick guide on upgrading the base TurnKey Redmine install to the latest version of Redmine (2.0.3 at this moment in time). I tried several methods including using the Redmine PPA but in the end couldn't get anything else to work and I don't have the knowledge (/patience) to fix it myself.

99% of this guide is from Adam Wu/babbomaria's posts, I'm just collating them to make it easier for everyone so pass the credit onto them :).

I was going to use the SVN Redmine version but it was giving me svn: REPORT of '/svn/!svn/vcc/default': Could not parse chunk size (http://redmine.rubyforge.org) errors during checkout so switched to Mercurial.

 

Go Go Go

Whatever you do, take a snapshot of your VM before you do this as I imagine it wouldn't be simple to revert back manually if it went wrong.

 

Update Rails

TurnKey Redmine ships with rails version 2.3.8, Redmine 2 needs 3.2.6 so update it with:

gem install rails

Test it worked with:

rails -v

 

Get Redmine

This is pretty much just a copy/paste of [1] mixed with some of the Redmine install notes for the later versions. Some commands will error but just ignore them. If you have rmagick installed remove it from step 11, I don't.

Copy/paste this into a script to make life easy:

  1. cd /var/www
  2. mv railsapp railsapp-old
  3. hg clone --updaterev 2.0-stable https://bitbucket.org/redmine/redmine-all railsapp
  4. cp railsapp-old/config/email.yml railsapp/config/configuration.yml
  5. cp railsapp-old/config/database.yml railsapp/config/database.yml
  6. cp -r railsapp-old/files/ railsapp/files/
  7. chown -R root:www-data /var/www/railsapp
  8. cd railsapp
  9. gem install bundler
  10. gem install test-unit
  11. bundle install --without development test rmagick
  12. mkdir public/plugin_assets
  13. rake generate_session_store
  14. rake db:migrate RAILS_ENV=production
  15. chown -R www-data:www-data files log tmp public/plugin_assets
  16. rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
  17. rake db:migrate_plugins RAILS_ENV=production
  18. chmod -R 755 files log/ tmp/ public/plugin_assets
  19. rake tmp:cache:clear
  20. rake tmp:sessions:clear

Make sure you go to Admin -> Roles & permissions and assign new permissions. Manage related issues was added since the base version at least if not more.

 

Check it works

Run:

/var/www/railsapp/script/about

Hopefully you'll see something like this:

Environment  

Redmine version

2.0.3.stable

Ruby version

1.8.7 (i686-linux)

Rails version

3.2.6

Environment

production

Database adapter

MySQL
Redmine plugins:  

no plugin installed

 

 

Upgrading In The Future

By switching to using the Redmine Mercurial repository upgrades in the future should just require the following steps [4]:

  1. cd /var/www/railsapp
  2. rake generate_session_store
  3. hg pull
  4. hg update
  5. bundle install --without development test rmagick
  6. rake db:migrate RAILS_ENV=production
  7. rake redmine:plugins:migrate RAILS_ENV=production
  8. rake tmp:cache:clear
  9. rake tmp:sessions:clear

 

References

  1. http://www.turnkeylinux.org/forum/support/20100104/how-upgrade-redmine-0...
  2. http://www.turnkeylinux.org/forum/support/20100104/how-upgrade-redmine-0...
  3. http://www.redmine.org/projects/redmine/wiki/RedmineInstall
  4. http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

 

 

 

Enjoy!

Thanks! I will try to follow

Thanks! I will try to follow it.

 

But I think that in the future, TKL Redmine should be updated and add more features. In Redmine there are lots of features that also need work in the distro (as the version control with login.. auto checkout out version folders.. make an easy upgradable plugins and redmine build.. ) may here the community should help to make a good featured distribution.

Jeremy's picture

Redmine will be updated when new appliance released

But some of your ideas sound interesting Mario. Perhaps flesh your ideas a bit more (with a few more specifics). Maybe lodge a Blueprint or start a new forum thread.

I followed your steps, but

I followed your steps, but the railsapps folders have question marks at the end of the folder name and the system reports "No such file or directory"  Any ideas what I may have done wrong? 

Hi Todd, Can you post the

Hi Todd,

Can you post the output from:

ls -l /var/www/

I have no idea where the question marks came from unless it's some odd character encoding problem if you copied/pasted the steps from the forums.


Strange. Can you rename it by

Strange. Can you rename it by running:

mv /var/www/railsapp? /var/www/railsapp

 

You should then be able to carry on if that works.


Yes, I can rename it.

Yes, I can rename it.  I didn't think of trying that before.  I think you were correct about the chacter encoding.  I did copy/paste from the website.  I'm going to retype it and try again.

Re:

Redmine insatllation Ubuntu 12.10, Nginx, php-fpm, MySQL, thin

no rails app at all

Hi. I wanted to follow these instructions but the railsapp folder is not found under /var/www.  

The only things under there are:

index.html

redmine/

My TK instance has Redmine 1.4.4.stable currently.

Any help would be great.

It sounds like you have a

It sounds like you have a later version of the Redmine TurnKey release than what I used.

Could you try all the steps within the redmine folder instead?


thanks

Hey. Ya, you're right.  I downloaded version 11.3 and the structure matched.  I also ran into the issue about mysql version mentioned and solved in the comments.  So, as it stands now, I have 2.0.4 running :)

 

Thanks for responding so fast and thanks for posting this article in the first place!  Much appreciated.  

Have a good one

Jamie

No problem; glad you got it

No problem; glad you got it working :). I'm sure it wouldn't be too difficult to get it to work on the latest version of TurnKey if you needed any of the new things it has - now's the time before you start using it!

With a couple of people having the MySQL problem recently I wonder if there's been an update to one of the apt packages or something which is causing the new MySQL version to be installed.

Though saying that, my own install hasn't installed the other MySQL version. I've just pulled the latest Redmine version using my update script (see the commands in Upgrading In The Future) and it's still not installed.

Very odd!


Got this working on 12.0

Hey again.

I retried this with the latest release (12.0) and it worked. Just had to change railsapp to redmine (in the steps).  Step 16 fails but can be skipped anyway and it all works fine.  Thanks again! 

Jeremy's picture

I suspect that the new v12 appliance

Uses a package from the repo (rather than upstream). But I'm only guessing....

Version 12 Works too

Hey.  I tried version 12 now and applied the steps based on the Redmine folder (vs railsapp).  Step 16 failed and can be skipped but otherwise it worked a charm :)  Thanks again!

On a side, im trying to setup the git repo to align with the redmine users and want the access secured.  Can you recommend any good resource for this?  I've been scouring.

Still no luck with the script.

 I retyped the whole thing.  Same results. 

But, but just typing each line manually in the "Shell-in-box" console, it worked fine.   There are some depricated items in above listing (script), but Ruby provided the new methods to use.

Error on Step #16 (upgrade_plugin_migrations)

Andrew -

First off, THANKS FOR THE GUIDE! I was able to run this on my previously upgraded install which was at 1.3 before starting. As Todd said, there are two depricated steps but the new methods are provided when attempting to run them (#13 and #17).

I did have one error I was not able to track down. When running #16 to upgrade_plugin_migrations, I get: aborted. Don't know how to build task rake db:migrate:upgrade_plugin_migrations

I wonder if it's OK in my situation (don't have any plugins installed). Is that error BECAUSE I have no plugins? Should I be worried about this error? Is it indicative of the upgrade not going well? Will it blow up in my face later? :) 

I have been able to get into the Redmine interface and at first glance it SEEMS OK.

Thanks in advance for any words of wisdom and thanks again for posting this!  

Hi John, That's odd. I ran

Hi John,

That's odd. I ran the whole upgrade procedure a couple of times on different VMs and never saw that error, maybe it was because I was upgrading from the stock version not 1.3.

The Redmine upgrade docs do list a different command to upgrade the plugins database, this may be worth a try instead:

rake redmine:plugins:migrate RAILS_ENV=production 

If you look at the Upgrading In The Future part of my original post that's actually the one I used in there. Try running the upgrade commands from there and see if it works too - I dropped them into a script which I can periodically run to kee it up to date.

Failing that, I would say as long as everything appears to work then just ignore it, it sounds like it's working fine!

Cheers,

Andrew.


seems OK - alt upgrade syntax gave no errors

I did as you suggested and it didn't generate any visible errors to console. Assuming that

rake redmine:plugins:migrate RAILS_ENV=production

is equivalent to

rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production

then I should be all set.

THANK YOU Andrew!

App start error: undefined method session=for ActionController

Hi,

All update operations runned fine, with blog comment correction.

But at the first application start, an Exception is throwing:

*** Exception NoMethodError in PhusionPassenger::Rack::ApplicationSpawner (undefined method `session=' for ActionController::Base:Class) (process 1283):
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_controller/railtie.rb:41:in `send'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_controller/railtie.rb:41

Now script/about is throwing the same error

After the update the script/about was running fine, but after trying to run redmine with the webbrowser, now the script/about is throwing the same exception.

Resolved

I've found the problem: a file "config/additional_environment.rb" was generated some time.

# rm config/additional_environment.rb

then all stuffs work ;-)

I just do not know when this file was generated...

No plugins copied

 

Dears,
 
first of all, thanks for this perfect description. My problem now is, that the plugins are not copied to the right directory. Did this by hand and called 
 
rake redmine:plugins_migrade
 
I received the following error
 
undefined local variable or method 'config' for main:Object
 
The result of
 
rake redmine:plugins_migrade --trace
 
is
 
 
** Invoke redmine:plugins:migrate (first_time)                                                                                         ** Invoke environment (first_time)                                                                                                           ** Execute environment                                                                                                                           rake aborted!                                                                                                                                                                                 

undefined local variable or method `config' for main:Object                                                                                                                                   

/var/www/railsapp/plugins/engines/init.rb:3                                                                                                                                                   

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'                                                                                     

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'                                                                                     

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'                                                                             

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'                                                                                     

/var/www/railsapp/lib/redmine/plugin.rb:130:in `load'                                                                                                                                         

/var/www/railsapp/lib/redmine/plugin.rb:121:in `each'                                                                                                                                         

/var/www/railsapp/lib/redmine/plugin.rb:121:in `load'                                                                                                                                         

/var/www/railsapp/config/initializers/30-redmine.rb:13                                                                                                                                        

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'                                                                                        

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'                                                                                        

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'                                                                             

/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'                                                                                        

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:588                                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'                                                                                                            

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.rb:587                                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'                                                                                             

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'                                                                                                       

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers'                                                                                          

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'                                                                                          

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'                                                                                                

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send'                                                                                               

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'                                                                                     

/var/www/railsapp/config/environment.rb:7                                                                                                                                                     

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:103:in `require'                                                                                                    

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!'                                                                                       

/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:292:in `initialize_tasks'                                                                                           

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'                                                                                                                 

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'                                                                                                              

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'                                                                                                                 

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'                                                                                                              

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'                                                                                               

/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'                                                                                                                                       

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'                                                                                               

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'                                                                                                 

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'                                                                                                                 

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'                                                                                                 

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'                                                                                               

/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'                                                                                                                                       

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'                                                                                               

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'                                                                                                               

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'                                                                                                   

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'                                                                                                           

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'                                                                                   

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'                                                                                                      

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'                                                                                                            

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'                                                                                   

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'                                                                                                            

/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33                                                                                                                                    

/usr/local/bin/rake:19:in `load'                                                                                                                                                              

/usr/local/bin/rake:19                                                                                                                                                                        

Tasks: TOP => redmine:plugins:migrate => environment
 
Can anyone help me!

Hmm I'm not too sure. Did you

Hmm I'm not too sure. Did you definately run the below command with RAILS_ENV=production at the end?

rake db:migrate_plugins RAILS_ENV=production

 

Faililng that http://projects.andriylesyuk.com/issues/2056 seems to have a similar problem to you - look through the comments.

Apart from that I'd look to post on the official Redmine support forums - I don't know Ruby personally so wouldn't know where to begin.

 


Awesome, thanks !

Just to share my experience : after days searching a clean way to upgrade Redmine I found your guide.

So just, disabled all the old plugins, followed your how-to (except for 16., ran "rake redmine:plugins:migrate RAILS_ENV=production" instead ) and it was all done !!

 

Thanks A LOT for this tutorial.

L. Arnold's picture

Wanting to upgrade TKL Tracks which also runs on Rails

I posted separately on TKL Forums a request for guidance on upgrading the Tracks Appliance which also runs on Rails:

http://www.turnkeylinux.org/forum/support/20120731/upgrading-tracks

It seems the subject is quite similar to this.  The new Debian Tracks will not upgrade with a simply TKLBAM-RESTORE so I assume I need to get my Tracks intsall up to 2.1 and then run a TKLBAM-RESTORE to jump into v 12 TKL (this was my method for Magento anyway). 

I am completely ohterwise out of my element with RAILS and would love some guidance.  These links tell me what to do, but I want to contextualize to a TKL install.

http://getontracks.org/manual/upgrading.html

http://getontracks.org/downloads/comments/tracks-21/

Any guidance someone could offer?

Thank you.

issues with step #14

i am not able to pass step 14 and getting the error

root@redminetest www/railsapp# rake db:migrate RAILS_ENV=production
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (can't activate mysql (~> 2.8.1, runtime), already activated mysql-2.9.0. Make sure all dependencies are added to Gemfile.)
/var/www/railsapp/lib/plugins/acts_as_activity_provider/init.rb:2
/var/www/railsapp/config/initializers/00-core_plugins.rb:12
/var/www/railsapp/config/initializers/00-core_plugins.rb:2:in `each'
/var/www/railsapp/config/initializers/00-core_plugins.rb:2
/var/www/railsapp/config/environment.rb:14
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

 

any help or where i can look.  i did ran gem install activerecord-mysql-adapter without issues but still this step is not running suvessfully. my gem list shows

mysql (2.9.0, 2.8.1)
 

and the database.yml has the following lines

production:
  adapter: mysql
 

what could be the reason

Mine only shows as having

Mine only shows as having mysql 2.8.1 installed so personally I'd try removing one of those versions and see what happens:

gem uninstall mysql --version 2.8.1
(and if that fails try 2.9.0 I guess)

Good luck!


thankx for your clue. This

thankx for your clue.

This one helped finally

gem install -v=2.8.1 mysql
gem uninstall -v=2.9.0 mysql
IN Gemfile of RM modify gem "mysql" to gem "mysql" , "2.8.1"

Glad you got it

Glad you got it sorted!

Cheers for posting the solution. There's nothing worse than finding your exact problem from a Google search and someone doesn't tell you how they fixed it.


I'm getting another error

Error message:
undefined local variable or method `config' for main:Object
Exception class:
NameError
Application root:
/var/www/redmine-2.2.2 [Yes, I did change the directory. It's changed in the apache config of webmin, etc.]
Any ideas what this error is? I can't seem to track it down. Here is the full backtrace.
0 /var/www/redmine-2.2.2/plugins/engines/init.rb 3  
1 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 251 in `require'
2 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 251 in `require'
3 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 236 in `load_dependency'
4 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 251 in `require'
5 /var/www/redmine-2.2.2/lib/redmine/plugin.rb 130 in `load'
6 /var/www/redmine-2.2.2/lib/redmine/plugin.rb 121 in `each'
7 /var/www/redmine-2.2.2/lib/redmine/plugin.rb 121 in `load'
8 /var/www/redmine-2.2.2/config/initializers/30-redmine.rb 12  
9 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 245 in `load'
10 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 245 in `load'
11 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 236 in `load_dependency'
12 /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb 245 in `load'
13 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb 588  
14 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb 587 in `each'
15 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/engine.rb 587  
16 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb 30 in `instance_exec'
17 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb 30 in `run'
18 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb 55 in `run_initializers'
19 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb 54 in `each'
20 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb 54 in `run_initializers'
21 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb 136 in `initialize!'
22 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb 30 in `send'
23 /usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb 30 in `method_missing'
24 /var/www/redmine-2.2.2/config/environment.rb 14  
25 config.ru 3 in `require'
26 config.ru 3  
27 /usr/local/lib/ruby/gems/1.8/gems/rack-1.4.4/lib/rack/builder.rb 51 in `instance_eval'
28 /usr/local/lib/ruby/gems/1.8/gems/rack-1.4.4/lib/rack/builder.rb 51 in `initialize'
29 config.ru 1 in `new'
30 config.ru


Looks like you're missing a

Looks like you're missing a config.ru file.

Have a look at https://github.com/37signals/pow/issues/98 which should get you going again.


I was hoping it would be that easy ...

But it wasn't.

Copied the config.ru from /var/www/railsapp/vendor/rails/railties/dispatches/config.ru as listed in your link above.

root@redmine www/redmine-2.2.2# locate config.ru
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/test/stub/rack/config.ru
/usr/local/lib/ruby/gems/1.8/gems/rack-1.4.4/test/rackup/config.ru
/usr/local/lib/ruby/gems/1.8/gems/rack-test-0.6.2/spec/fixtures/config.ru
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/dispatches/config.ru
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.8/dispatches/config.ru
/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/guides/code/getting_started/config.ru
/usr/local/lib/ruby/gems/1.8/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config.ru
/var/www/railsapp/vendor/rails/railties/dispatches/config.ru
/var/www/redmine-2.2.2/config.ru
 

Contents of the config.ru file looks like the one in the link.

# Rack Dispatcher

# Require your environment file to bootstrap Rails
require File.dirname(__FILE__) + '/config/environment'

# Dispatch the request
run ActionController::Dispatcher.new

Still get the same error message.

The only other thing I've noticed ... when editing the files in vi, seems the EOL is showing as ^M - which from previous experince doesn't usually end well. Might it be worth my time to strip those out?


I'm sure removing ^M wouldn't

I'm sure removing ^M wouldn't hurt it (apparently it's a DOS/Windows leftover).

I wonder, on my install my plugins directory is empty (bar the README file).

What happens if you clear out your plugins directory? Looking at it in a bit more detail it's throwing the exception trying to read from the plugin folder so that should be a good start.


Thank you ...

I've got to learn how to dechiper those error messages better.

That was the issue. Up and running now. Odd part is I knew not to have plugins there, but I guess I never went back to make sure it was 100% cleared.


Glad it's working :). It's

Glad it's working :).

It's not the easiest stacktrace to read to be honest, but then again I don't know Ruby or how it works.


upgrading redmine leads to version hell

If you are upgrading from 1.2 - 4 to 2.2 or greater using these instructions or those provided by redmine http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade, then take care as the versions of ruby and rails have moved forward. gem install rails will try to install rails 4, which requires ruby 1.9.3 but a new ruby install gets you 2.0.0. The latest versions of redmine require rails 3.2.13 and will not work with rails 4.0.

Specifying the actual versions with the ruby and rails installs may help. I now have a broken redmine appliance because I have not been able to downgrade successfully. The vm is backedup and so is the data so no problems except for the wasted time.

It is probably better to download a new redmine appliance and transfer the data.

Graham

any ideas on how to upgrade from 2.2.3 to 2.5.2?

I tried following the instructions for option 2 here:

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

and running

svn update

but it doesn't seem to do anything. just says

Skipped '.'

Bundle update runs and seems to do something, but I'm still on version 2.2.3

Trying 'option 1' in the guide gives me a 500 error page.

Thanks

Is your current Redmine copy

Is your current Redmine copy checked out from SVN? It sounds like it's not.

Option 1 from that guide may be better for you in that case.


not sure. whatever was

not sure. whatever was included in the Turnkey 13.0 version.

I tried option 1 after trying option 2, so maybe that's what broke it.

have to restart apache

The piece I had to figure out is after the install apache has to be restarted for the new redmine version to take affect:

service apache2 restart

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)