Content
You are here:
Problem with AggregatedMeetingMigrations
Added by Raoul Gabriel over 10 years ago
Hi,
I’ve installed OpenProject 3.0 (stable) on an CentOS 6.5 Server (thanks to the Instructions on this page).
I also copied the database from an existing OpenProject 3.0 (beta) server to the new one, which worked well also.
But when I installed the Meetings Plugin (which was installed on the old Server as well) and tried to execute the
bundle exec rake db:migrate
command. I get an error:
[openproject@openproject]$ bundle exec rake db:migrate require 'rails/all'... 0.300s Bundler.require... 1.310s Application.initialize!... 2.260s == AggregatedMeetingMigrations: migrating ==================================== -- create_table("meeting_contents") rake aborted! An error has occurred, this and all later migrations canceled: PG::DuplicateTable: FEHLER: Relation „meeting_contents“ existiert bereits : CREATE TABLE "meeting_contents" ("id" serial primary key, "type" character varying(255), "meeting_id" integer, "author_id" integer, "text" text, "lock_version" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locked" boolean DEFAULT 'f') /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `async_exec' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `block in execute' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in `execute' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/schema_statements.rb:170:in `create_table' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:466:in `block in method_missing' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:438:in `block in say_with_time' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:438:in `say_with_time' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:458:in `method_missing' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-3d144d6f8e98/db/migrate/20111605171865_aggregated_meeting_migrations.rb:22:in `block in up' /home/openproject/openproject/db/migrate/migration_utils/migration_squasher.rb:47:in `squash' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-3d144d6f8e98/db/migrate/20111605171865_aggregated_meeting_migrations.rb:21:in `up' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:410:in `block (2 levels) in migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:410:in `block in migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:389:in `migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:528:in `migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:720:in `block (2 levels) in migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:775:in `call' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:775:in `block in ddl_transaction' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/transactions.rb:208:in `transaction' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:775:in `ddl_transaction' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:719:in `block in migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:in `migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:570:in `up' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:551:in `migrate' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>' Tasks: TOP => db:migrate (See full trace by running task with --trace)
which basically says that the relation already exists.
Does anyone has an advice on how to resolve this error?
Thanks for any Help
Raoul