Project

General

Profile

0.8.4 -> 0.9.3 upgrade: db:migrate failure

Added by Eric Voisard about 14 years ago

Hi,

We have a SLES/Linux server with Apache/2.2.3 + mod_fcgi and with two installs of Redmine: one is for testing (such as update tests) and one that is in production.

A couple of weeks ago I upgraded the "test" one to 0.9.2, that I finally got working (I had route problems: http://www.redmine.org/boards/2/topics/11537)

Today, I successfully upgraded that "test" install to 0.9.3 release (redmine-0.9.3.tar.gz) and then I tried to upgrade the "production" install to 0.9.3 too.

But it failed during the database migration operation and I don't really understand what the output means:

webster@portal:/srv/www/applications/redmine> rake --trace db:migrate RAILS_ENV=production
(in /srv/www/applications/redmine)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
stack level too deep
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:28:in `old_initilize'
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:28:in `old_initilize'
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:28:in `initialize'
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:415:in `initialize'
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:366:in `new'
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:366:in `push'
/srv/www/applications/redmine/lib/redmine.rb:120
/srv/www/applications/redmine/lib/redmine/menu_manager.rb:296:in `map'
/srv/www/applications/redmine/lib/redmine.rb:119
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
.
.
.

Complete log is attached.

The same Redmine 0.9.3 package is running on the same machine, so I assume nothing is missing or wrong with gem versions, etc. Anyway:

webster@portal:/srv/www/applications> rails -v
Rails 2.3.5
webster@portal:/srv/www/applications> gem list

*** LOCAL GEMS ***

actionmailer (2.3.5, 2.3.3, 2.1.2)
actionpack (2.3.5, 2.3.3, 2.1.2)
activerecord (2.3.5, 2.3.3, 2.1.2)
activeresource (2.3.5, 2.3.3, 2.1.2)
activesupport (2.3.5, 2.3.3, 2.1.2)
fcgi (0.8.7)
mysql (2.8.1)
rack (1.0.1, 1.0.0)
rails (2.3.5, 2.3.3, 2.1.2)
rake (0.8.3)

The only special thing I did was to move the "production" Redmine tree out of Apache's htdocs, and to set it to work in un sub-URI, exactly as I did with the working "test" install (see link above).
Also, it was a direct step from 0.8.4 to 0.9.3 whereas the "test" install was first upgraded to 0.9.2.

I don't know what's wrong and I'm somewhat panicing because now our production server is down... I didn't wait long before posting here but I'm continuing to investigate, and if somebody has a hint...

Thanks in advance, Eric


Replies (1)

RE: 0.8.4 -> 0.9.3 upgrade: db:migrate failure - Added by Eric Voisard about 14 years ago

I've found why it failed.
It was due to a small plugin that was made by Eric (Davis) for adding a link to the top menu (http://github.com/edavis10/redmine_static_link). Just removed the plugin directory and I've been able to migrate my database.

This tiny but useful plugin doesn't work with 0.9x versions...

Eric

    (1-1/1)