This forum is no longer active. Please post your questions to our new community site

Forums Redmine

Upgrade Redmine 1.1.2.stable >> 1.2.1 - NoMethodError: undefined method

Subscribe to Upgrade Redmine 1.1.2.stable >> 1.2.1 - NoMethodError: undefined method 4 post(s), 3 voice(s)

Avatar Tim 2 post(s)


I have taken over a server recently running Redmine 1.1.2 BitNami Stack and I would like to upgrade it to 1.2.1 but running into a few snags along the way.

I’ve read through the following resources

These are the steps I have done so far

cd /var/www/bitnami/
./ status
./ stop redmine
mysqldump —add-drop-database —add-drop-table —comments —dump-date redmine > ~/backup/redmine1.1.2-backup_2011-07-31_09-30_mysqldump.sql
tar -czvf ~/backup/redmine1.1.2-backup_2011-07-31_09-30.tar.gz apps/redmine

cd ~/Source
svn co svn:// redmine
cd /var/www/bitnami/
mv apps/redmine apps/redmine-old
mv ~/Source/redmine apps/redmine
cd apps
cp -r redmine-old/script redmine-old/conf redmine-old/files redmine/
cp redmine-old/config/email.yml redmine/config/configuration.yml
cp redmine-old/config/database.yml redmine/config/
cp redmine-old/config/mongrel_cluster.yml redmine/config/
mkdir redmine/tmp/pids
sed -i ‘s/RAILS_GEM_VERSION/#RAILS_GEM_VERSION/g’ redmine/config/environment.rb
cp redmine-old/config/initializers/session_store.rb redmine/config/initializers
cd redmine

vim config/initializers/mongrel_cluster_with_rails_23_fix.rb

#Add the below to file
module ActionController
class AbstractRequest < ActionController::Request
def self.relative_url_root=(path)
def self.relative_url_root

rake db:migrate RAILS_ENV=“production”
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=“production”
rake db:migrate_plugins RAILS_ENV=“production”
rake tmp:cache:clear
rake tmp:sessions:clear
./ start redmine


Receiving Redmine 500 error & the following in the logs

Sun Jul 31 12:02:20 -0700 2011: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]’ for nil:NilClass>

ActionView::TemplateError (undefined local variable or method `csrf_meta_tag’ for #) on line #8 of app/views/layouts/base.rhtml:

Thank you for any assistance

Avatar Beltrán Rueda Administrator 3,714 post(s)

It seems that all the steps are correct. Do you have any plugin installled?

Avatar Tim 2 post(s)
  • Redmine My Widgets plugin
  • Mylyn Connector plugin

Are the installed plug-ins, which I copied over from the redmine-old/vendor/plugins

Avatar Josué Álvarez Administrator 15 post(s)

Hello Tim,

Could you edit /your_install_directory/apps/redmine/app/views/layouts/base.rhtml and remove

<%= csrf_meta_tag %>

from line 8?

Let us know if this fixes the issue.


Forums Redmine