Project

General

Profile

Actions

Defect #1343

closed

Cannot uninstall plugin

Added by Seb LBVC over 10 years ago. Updated about 10 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
07/18/2014
Due date:
% Done:

100%

Estimated time:

Description

Hello,

I am french so I apologize for my english writing

I have installed your plugin onto my Redmine but after installation, line wrap occcured after each words in the GUI.

Redmine is in french, but this bug does not occurs if the Redmine is set to english

So, I've tried to uninstall this plugin with this command:

rake redmine:plugins:migrate NAME=redmine_issue_templates VERSION=0 RAILS_ENV=production 

But it fails with the following message:

??
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
(in /usr/share/redmine-2.4.1)
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
  • Invoke redmine:plugins:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:plugins:migrate
    Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
    RemoveIsDefaultFromGlobalIssueTemplates: reverting ======================
    rake aborted!
    An error has occurred, all later migrations canceled:

uninitialized constant RemoveIsDefaultFromGlobalIssueTemplates::IrreversibleMigration/usr/share/redmine-2.4.1/plugins/redmine_issue_templates/db/migrate/20140330155030_remove_is_default_from_global_issue_templates.rb:7:in `down'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:376:in `down'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/usr/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:410:in `block in migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:389:in `migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:528:in `migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:777:in `call'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:777:in `ddl_transaction'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:719:in `block in migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:700:in `each'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:700:in `migrate'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:574:in `down'
/var/lib/gems/1.9.1/gems/activerecord-3.2.15/lib/active_record/migration.rb:555:in `migrate'
/usr/share/redmine-2.4.1/lib/redmine/plugin.rb:452:in `migrate_plugin'
/usr/share/redmine-2.4.1/lib/redmine/plugin.rb:424:in `migrate'
/usr/share/redmine-2.4.1/lib/redmine/plugin.rb:435:in `migrate'
/usr/share/redmine-2.4.1/lib/tasks/redmine.rake:74: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 `<main>'
Tasks: TOP => redmine:plugins:migrate
??

How can I install this plugin ?

Server environnement:
Debian 7 64 bits
Apache/2.2.22 (Debian) with Passenger
MySQL 5.1


Related issues 1 (0 open1 closed)

Copied from Issue Template - Defect #1342: [ISSUE_PLUGIN] Cannot uninstall plugin却下(Invalid)07/18/2014

Actions
Actions #1

Updated by Seb LBVC over 10 years ago

  • Copied from Defect #1342: [ISSUE_PLUGIN] Cannot uninstall plugin added
Actions #2

Updated by Akiko Takano over 10 years ago

  • Status changed from 新規(New) to 担当(Assigned)
  • Assignee set to Akiko Takano

Hello, Seb.
Thank you so much for your trying my plugin, and sorry this plugin couldn't meet your request….

Please confirm this file:

  • redmine_issue_templates/db/migrate/20140330155030_remove_is_default_from_global_issue_templates.rb

I'm sorry it seems the bug of migration script.
If you find this line "raise IrreversibleMigration", please remove or comment out it and try to uninstall script again.

class RemoveIsDefaultFromGlobalIssueTemplates < ActiveRecord::Migration
  def self.up
    remove_column :global_issue_templates, :is_default
  end

  def self.down
     # raise IrreversibleMigration
  end
end

If you still have trouble after trying above workaround, please let me know.
Also I'll review my plugin in French.

Actions #3

Updated by Akiko Takano over 10 years ago

  • % Done changed from 0 to 40

I confirmed I can reproduce above issue on version 0.0.8.
So I'm going to release fixed version 0.0.9 soon. I'm sorry for taking up so much of your time.

Actions #4

Updated by Akiko Takano over 10 years ago

  • Target version changed from ver0.0.8 to ver0.0.9
Actions #5

Updated by Akiko Takano about 10 years ago

  • Status changed from 担当(Assigned) to 終了(Closed)
  • % Done changed from 40 to 100

This problem was fixed on commit: 3ce1f21 , and released 0.0.9.

Actions #6

Updated by Akiko Takano about 10 years ago

This problem was fixed on commit:3ce1f216854d, and released 0.0.9.

Actions

Also available in: Atom PDF