Problem running migrate_plugins
Added by Glenn Gould about 13 years ago
Hi all,
I have a Redmine 1.2.0 Testinstallation which has been upgraded from 0.9.2 (the 0.9.2 itself had been upgraded from 0.8.7 earlier ;-)).
I've installed the buildbot Plugin for testing purposes and now I'd like to have a look at the redmine_ldap_sync Plugin" but unfortunately the plugin-migration fails.
I've downloaded redmine_ldap_sync and tried to run plugin migrations:
RAILS_ENV=test rake db:migrate_plugins
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /srv/www/redmine-1.2.0/lib/tasks/email.rake:170
Migrating engines...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating awesome_nested_set...
Migrating classic_pagination...
Migrating gravatar...
Migrating open_id_authentication...
Migrating prepend_engine_views...
Migrating redmine_buildbot...
CreateBuildbotSettings: migrating =======================================
-- create_table(:buildbot_settings)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql::Error: Table 'buildbot_settings' already exists: CREATE TABLE `buildbot_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `project_id` int(11), `host` varchar(255), `last_update` datetime, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
Buildbot_settings is one of three tables created by the buildbot plugin, however Redmine doesn't seem to know the plugin is already installed. And the migrations fails before it comes to installing the ldap_sync Plugin.
I've tried to fix the migrations with
RAILS_ENV=test rake db:upgrade_plugin_migrations
but end up with:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /srv/www/redmine-1.2.0/lib/tasks/email.rake:170
rake aborted!
Don't know how to build task 'db:upgrade_plugin_migrations'
I don't think the given warning is the real problem here.
I'm not sure whether the problems in running migrate_plugins and upgrade_plugin_migrations are related or not The second one looks similar to #5469.
Does anyone know where Redmine should keep track of plugin migrations? Searching the Internet brought up some results mentioning a table "plugin_schema_migrations" but this one doesn't exist in (only my?) Redmine installation.
Any ideas how to tell Redmine that buildbot plugin is already installed?
Thanks for Help!
Replies (1)
RE: Problem running migrate_plugins
-
Added by Glenn Gould about 13 years ago
Is Really nobody able to shed some light on how Redmine keeps track of installed plugins and how to fix the issue that Redmine doesn't recognize a plugin has already been installed?