プロジェクト

全般

プロフィール

Defect #1071

Installation failed

darien tohほぼ6年前に追加. 5年以上前に更新.

ステータス:
終了(Closed)
優先度:
通常(Normal)
担当者:
対象バージョン:
開始日:
2012/07/02
期日:
進捗率:

100%

予定工数:

説明

An error occurred during installation. Here's the output when i run rake db:migrate_plugins RAILS_ENV=production

@
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
Please install RDoc 2.4.2+ to generate documentation.
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_favourite_projects...
Migrating redmine_issue_templates...
AddIssueTitleToIssueTemplates: migrating ================================
-- add_column(:issue_templates, :issue_title, :string)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Table 'redmine_default.issue_templates' doesn't exist: ALTER TABLE `issue_templates` ADD `issue_title` varchar(255)

Tasks: TOP => db:migrate_plugins
(See full trace by running task with --trace)@

Here's the redmine's environment:

@About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.8.15
Rack version 1.4
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20120301153455

About your Redmine plugins
Redmine Favourite Projects plugin 0.4.3
Redmine Issue Templates plugin 0.0.2-stable
SCM Creator 0.3.0@

履歴

#1 darien tohほぼ6年前に更新

please help. thanks in advance :D

#2 Akiko Takanoほぼ6年前に更新

  • ステータス新規(New) から 担当(Assigned) に変更
  • 担当者Akiko Takano にセット
  • 対象バージョンver0.0.2 にセット

Hello.

First, thank you for your selecting my plugin.

Could you please tell me if this is a first time for you to install issue template plugin?
Or are you already use previous version of this plugin and this error happened when you tried to update this plugin to 0.02-stable?

It seems template plugin is already used but template table is missing with some reason, or making template table tasks did with wrong order...

If this is first time for you to use this plugin, please try this:

1. cd redmine_issue_templates\db\migrate.
You can find 3 files for migration.
2. rename 003_add_issue_title_to_issue_templates.rb to 0003_add_issue_title_to_issue_templates.rb.
(003 -> 0003)

3. Try migrate plugins rake task again.

I'm sorry if above workaround did not solve the problem.

#3 darien tohほぼ6年前に更新

hello.

noted with a lots of appreciation to taking into my problem

consider second time clean installation. at the first time, i'm facing this same issue too. after failed to install, i went to install another similar plugin "redmine-issue-template" by over. later, discovered that there's new update. so i wanna gave it try again. noted that i uninstalled redmine-issue-template plugin before installing this plugin.

anyway, tried your workaround but failed. below are the output from the migrate plugin rake task

Migrating redmine_issue_templates...
CreateIssueTemplateSettings: migrating ==================================
-- create_table(:issue_template_settings)
-> 0.1403s
CreateIssueTemplateSettings: migrated (0.1405s) =========================

AddIssueTitleToIssueTemplates: migrating ================================
-- add_column(:issue_templates, :issue_title, :string)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Table 'redmine_default.issue_templates' doesn't exist: ALTER TABLE `issue_templates` ADD `issue_title` varchar(255)

Tasks: TOP => db:migrate_plugins
(See full trace by running task with --trace)

later, i will trying to manually tapping into my database and manual create the db. are db creation refer to "0001_create_issue_templates.rb"?

thanks,

#4 Akiko Takanoほぼ6年前に更新

Hello.

Thanks for your additional information.
I think your installed "redmine-issue-template" plugin is this or folked one:
https://github.com/over/redmine-issue-template.

But I'm sorry mine is different from avobe one, so that there is not compativility between these plugins.

If you already installed above plugin (author 'undev.ru', ver0.0.1), then replace the plugin to mine as updated version, migration might be failed.

In case, I think we can remove and replace like this:

---
1. Remove redmine-issue-template (author 'undev.ru', ver0.0.1) as following:

rake db:migrate_plugins NAME=redmine_issue_template VERSION=0 RAILS_ENV=production

Please note note "redmine_issue_templates" but "redmine_issue_template".
Did you try above uninstall step?
Or remove table and plugin source code only?

Since redmine has plugin migration information on schema_migration table, we have to remove this record via above rake command.

If this record is remained, migrate task skip to create table.

2. Install redmine_issue_templates plugin.

Store redmine_issue_templates plugin under plugins directory, and do migrate task.

rake db:migrate_plugins RAILS_ENV=production
----

I think #982 is similar to this issue.

#5 darien tohほぼ6年前に更新

hi,

sorry for late reply.

i removed undev.ru's redmine issue template with no errors before installing yours.

Since redmine has plugin migration information on schema_migration table, we have to remove this record via above rake command.

regarding quote above, is it using "rake db:migrate_plugins RAILS_ENV=production"?

what can we do to remove 'old' data from schema_migration table that blocked the installation?

#6 darien tohほぼ6年前に更新

hi,

great news! i have successfully installed the plugins. :D

here's the steps:

  1. backup redmine's database.
  2. access redmine's database.
  3. list out the data from schema_migrations table.
  4. remove all data that have 'redmine_issue_templates'
  5. run rake.

viola!

hope this could help other user (in future) that failed to install the plugins.

regards,
darien

#7 Akiko Takano5年以上前に更新

  • ステータス担当(Assigned) から 終了(Closed) に変更
  • 進捗率0 から 100 に変更

Hello.
Sorry for my delayed reply....

And I really appreciate your posting related to installation problems.

他の形式にエクスポート: Atom PDF