TurnKey Linux Virtual Appliance Library

Upgrading to redmine 1.2

Brand new to Turnkey, EC2 and Redmine, signed up for all of them to avoid using our sys admins to install redmine on our dedicated (non-cloud) server.  Love the idea of installing an appliance on the cloud, and Turnkey seems like a great solution.

BUT the first thing I see is that it's an older version of redmine.  Since I'm trying to avoid using our sysadmin resources to do this, can someone point me to specific instructions to do the upgrade (that is, "just do an apt-get update" isn't enough, someday I hope it will be).

Thanks!

Tac

Jeremy's picture

It's a little more involved than that..

Redmine is not installed via the package manager (the version in the Ubuntu package repos is even older - v0.9.x IIRC). And regardless, even if it was, that wouldn't have been any help to you anyway (Ubuntu security & some bug fixes are backported rather than the version being updated).

Luckily for you someone has already done what you're hoping for. It seems pretty step-by-step (although I can't vouch for it) and although convoluted, the instructions seem quite concise. Anyway have a look at this post. Probably best to post any questions specifically relating to the upgrade process in reply to that post.

Now that's all well and good but another potential issue I see is an appliance updated like this running on AWS. As you possibly already know, appliances running on EC2 are non-persistent (ie when you turn them off they're gone along with all your data and custom config). With a stock standard TKL appliance that's fine because you can use TKLBAM to backup your data and the Hub can even start a new instance with all your data pre-loaded. Obviously this is not quite so easy with an appliance upgraded like this. But luckily I don't think it will be too hard. Have a look at the TKLBAM docs and you'll need to customise your TKLBAM backups so that it backs up your updated install. So a little bit of a fiddle and some experimentation and you should be able to get it all working sweet.

Keep us posted on how you go with it all. And assuming you get it all sorted be great to hear about your working TKLBAM custom config.

Thanks.  I found that post

Thanks.  I found that post shortly after I posted my question, and went through the steps (using the proper versions to get to the 1.2 release). 

Unfortunately, I got stuck when I finally tried to run the site, with the error "undefined method `name' for "actionmailer":String", which appears to be a gem version incompatibility.  Being so unfamiliar with gem, ruby, etc., I wasn't sure of the best way to fix it, so I found another cloud service offer a redmine 1.2 appliance. Alas, the install of that one completed, but it's still not working.

So I'll keep plugging away.  This is my first venture into the cloud, it's kinda fun.

Tac

Upgrade steps 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

Danilo Pires's picture

Great job!

I've made a tutorial with the 0.87 to 0.9x version upgrade and the steps are very similar. I tried to follow your installation step by step and I've got and error at the gem installation process.

So I wrote down what worked for me.

Did the whole process til the step 10.

I substitute the command for (Just for information I took those procedures from the Redmine.org HowTo 1.2 Stable install in a debian distro and mixed with your tutorial):

STEPS #10, 11 and 12 >> (FOR THOSE USING THE TURNKEY REDMINE V11 you do not need the SUDO command, since this is not even installed at that distro).

gem install rails -v=2.3.11 --no-ri --no-rdoc

 

gem install rake -v=2.3.11 --no-ri --no-rdoc

 

gem uninstall rake -v=0.9.2

gem install rake i18n -v=0.4.2 --no-ri --no-rdoc

 

After that done just proceed with the next steps as mentioned.

I hope I can help those that had the same problem.

 

ADAM - Once again thanks for the dedication for writing the tutorial. It's great to see how the collaboration can handle everything. I had a lot of feedback when I made the tuto for the 0.87 version and I hope you experience the same. Thanks once again.

C ya.

Scrumdashboard is not working

Hi,

   This is Prabhuraj we are using Turnkey redmine and am adding a scrumdashboard plugin after am adding a plugin dashboard option is displayed but if am click that option its showing the error was

"

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.

If you are the Redmine administrator, check your log files for details about the error.

Back"

Please tell me How to resolve it

Jeremy's picture

Did you look at your logs as the error suggests?

That would be the first place to start. If that doesn't get you going in the right direction, then next I would sugget that you consult the docs/forums/mailing-list/etc of the plugin you are using. Maybe this is a common error with a simple fix?

404 error

Thanks Jeremy

    and am get the dashboard option and then am clich the please select the main trackrt if am click it shows 4o4 error

Jeremy's picture

You need to check your server error logs

They should be in /var/log/apache2 (or something similar - I'm not at all sure I don't use this appliance myself).

Hopefully that will give you a clear error that you can google or ask about in whatever support forum/mailing list the plugin developer offers.

redmine upgrade from 1.0.5 to 1.3 stable

#redmine upgrade from 1.0.5 to 1.3 stable

#TurnKey Linux 11.1 / Ubuntu 10.04 Lucid LTS

#0
/etc/init.d/apache2 stop
#1
cd /var/www
#2
mv railsapp railsappOLD
#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
chown -R root:www-data /var/www/railsapp
#8
cd /var/www/railsapp
#9 (inside the /var/www/railsapp folder)
chown -R www-data:www-data files log tmp
#10 (this command takes a little time - be patient)
gem install rails -v=2.3.14
#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)
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
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

Redmine Upgrade

Just to confirm I did a simple copy and paste and the upgrade worked perfectly.  Thanks for posting this procedure!

Jeremy's picture

There is also a TKLPatch to do this for you!

Have a look at this thread.

"vendor" subdir disappeared

Hi, I tried to follow instructions, but I failed miserably.

First sign something was wrong was:

root@redmine www/railsapp# rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
rake aborted!
Don't know how to build task 'db:migrate:upgrade_plugin_migrations'
(See full trace by running task with --trace)
 

A preliminary analysis shows:

  • step #6 copied rhe whole railsapp-old/files subdirectory inside railsapp/files, resulting in something like railsapp/files/files/...
  • the railsapp/vendor directory (where I installed my plugins, most notably DMSF) was not ported over, so my plugins disappeared.

Redmine is somewhat working (without plugins), but it seems I'm doing something really wrong.

What I need to do is to bring an oldish (about two years old, I can be more precise after I revert to the previous snapshot) to the latest/greatest Redmine because I need the current REST API.

 

what should I do?

 

Regards

Mauro

Jeremy's picture

I suspect that the best way to go would be migration

In other words set up a new appliance and migrate your data into it. You could try with TKLBAM but considering that you are going from a very old appliance, that may be more trouble than it's worth.

Perhaps it's worth contacting the Redmine community and see if they have any ideas?

upgrade

Hi Jeremy,

I was using the "previous" Turnkey-Redmine. My current (working) installation says:

root@redmine ~# /var/www/railsapp/script/about
About your application's environment
Ruby version              1.8.7 (i686-linux)
RubyGems version          1.3.7
Rack version              1.1.1
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Edge Rails revision       unknown
Application root          /var/www/railsapp
Environment               development
Database adapter          mysql
Database schema version   0

About your Redmine plugins
Basic project file loader for Redmine   0.0.11
Redmine Newissuealerts plugin           0.0.2
DMSF                                    1.2.2
Redmine Better Gantt Chart plugin       0.6.0
root@redmine ~#

Is that "a very old appliance" ?

Note: the only plugin I really need is DMSF.

I really would like to upgrade [at least] to latest Turnkey-Redmine-12, but it seems structure changed a lot (railsapp->redmine, also in database name).

Doing a "stupid" save/restore seems to work, but leads to a non-functioning Redmine ("internal error in server").

Is there a "clean path" to upgrade from a turnkey-redmine version to the next?

I will try to ask to Redmine forums, but it's unclear to me if Turnkey did anything non-trivial beside installing the packages.

Regards

Mauro

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)