Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      OpenProject ID Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. rake db:migrate:plugins errors during install.

rake db:migrate:plugins errors during install.

Added by Adrian Jacobs almost 12 years ago

Hi,

Debian Wheezy installed in a vserver.

Did install as following :

apt-get install git-core build-essential
git clone https://github.com/opf/openproject.git
cd openproject
git checkout master
cd vendor/plugins/
git clone https://github.com/finnlabs/chiliproject_activity_module.git
git clone https://github.com/finnlabs/help_link.git
git clone https://github.com/finnlabs/numbered_headings.git
git clone https://github.com/finnlabs/redmine_checkout.git
git clone https://github.com/finnlabs/redmine_customize_modules.git

… one of these git repos asked for username + password ..

git clone https://github.com/finnlabs/redmine_favicon.git
git clone https://github.com/finnlabs/memcached_passenger.git
apt-get install rubygems-integration
gem install bundler
cd ../../
apt-get install ruby-dev
apt-get install libmysqlclient-dev libmysqld-dev
apt-get install libpq-dev libsqlite3-dev
bundle install —without rmagick
nano database.yml.example
apt-get install mysql-server mysql-client
mysql —defaults-file=/etc/mysql/debian.cnf
apt-get install libdbd-mysql-ruby
apt-get install libmysql-ruby
rake db:create:all
rake db:migrate
… so far so good

rake db:migrate:plugins

Migrating plugin chiliproject_activity_module …
Migrating plugin redmine_checkout …
UpdateSettings: migrating ===
rake aborted!
An error has occurred, all later migrations canceled:

undefined method `plugin_openproject_checkout’ for #Class:0x9df150c/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_$
/root/openproject/vendor/plugins/redmine_checkout/db/migrate/20100203202320_update_settings.rb:3:in `up’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:282:in `block in migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:282:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:365:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:491:in `block (2 levels) in migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:567:in `call’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:567:in `ddl_transaction’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:490:in `block in migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:477:in `each’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:477:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:401:in `up’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:383:in `migrate’
/root/openproject/vendor/plugins/engines/lib/engines/plugin/migrator.rb:21:in `migrate_plugin’
/root/openproject/vendor/plugins/engines/lib/engines/plugin.rb:94:in `migrate’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:48:in `block (4 levels) in <top (required)>’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:43:in `each’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:43:in `block (3 levels) in <top (required)>’
Tasks: TOP => db:migrate:plugins
(See full trace by running task with —trace)

rake db:migrate db:migrate:plugins —trace

**** Invoke db:migrate (first_time)

**** Invoke environment (first_time)

**** Execute environment

**** Execute db:migrate

**** Invoke db:schema:dump (first_time)

**** Invoke environment

**** Execute db:schema:dump

**** Invoke db:migrate:plugins (first_time)

**** Invoke environment

**** Execute db:migrate:plugins
Migrating plugin chiliproject_activity_module …
Migrating plugin redmine_checkout …
UpdateSettings: migrating ===
rake aborted!
An error has occurred, all later migrations canceled:

undefined method `plugin_openproject_checkout’ for #Class:0x94e704c/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_$
/root/openproject/vendor/plugins/redmine_checkout/db/migrate/20100203202320_update_settings.rb:3:in `up’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:282:in `block in migrate’
/usr/lib/ruby/1.9.1/benchmark.rb:280:in `measure’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:282:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:365:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:491:in `block (2 levels) in migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:567:in `call’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:567:in `ddl_transaction’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:490:in `block in migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:477:in `each’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:477:in `migrate’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:401:in `up’
/var/lib/gems/1.9.1/gems/activerecord-2.3.18/lib/active_record/migration.rb:383:in `migrate’
/root/openproject/vendor/plugins/engines/lib/engines/plugin/migrator.rb:21:in `migrate_plugin’
/root/openproject/vendor/plugins/engines/lib/engines/plugin.rb:94:in `migrate’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:48:in `block (4 levels) in <top (required)>’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:43:in `each’
/root/openproject/vendor/plugins/engines/lib/tasks/engines.rake:43:in `block (3 levels) in <top (required)>’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain’
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `each’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling’
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run’
/var/lib/gems/1.9.1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>’
/usr/local/bin/rake:23:in `load’
/usr/local/bin/rake:23:in `

’
Tasks: TOP => db:migrate:plugins


Replies (1)

RE: rake db:migrate:plugins errors during install. - Added by Philipp Tessenow almost 12 years ago

Hi Adrian,

it seems you just became a victim of our rails3 migration. We are currently updatig the whole OpenProject stack to a rails 3 / ruby 2.0 stack. The development happens in the feature/rails3 branch of our repositories. Sometimes that feature branch is even the current main branch (the branch git clones by default). So you have to be careful when cloning a git repository to get either the master branch wherever possible, or (if you want to test the new, shiny OpenProject 3.0) the feature/rails3 branch.

Please visit the plugin directories in vendor/plugins and do a git checkout master on every git repository in there.

Start the migration with a new, empty database and you should be fine.

Your,
Philipp

  • (1 - 1/1)
Loading...