Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to uninstall in Redmine 2.1.0 #92

Open
hphoeksma opened this issue Oct 8, 2012 · 8 comments
Open

Unable to uninstall in Redmine 2.1.0 #92

hphoeksma opened this issue Oct 8, 2012 · 8 comments

Comments

@hphoeksma
Copy link

Hi,

have been trying to get this plugin to work in RM210 without luck. Now I would like to remove it, but that seems an problem too..

rake db:migrate:plugin NAME=redmine_scrumbler VERSION=0 RAILS_ENV=production

or:
rake redmine:plugins:migrate NAME=redmine_scrumbler VERSION=0 RAILS_ENV=production

Results in:
Plugin redmine_scrumbler was not found.

... leaving me with a buggy redmine.

Any suggestions?

@mani95lisa
Copy link

Check this #75

@hphoeksma
Copy link
Author

Hi Mani,

thanks, but I already checked that out to no avail unfortunately.

Thanks anyways!

@arpysystems
Copy link

+1 for that matter! Uninstall also not possible with RedMine 2.2 (same error).
I find this very important, we will have to get rid of Scrumbler, since RedMine evolves and Scrumbler does not seem to be able to keep up. In fact, old plugins like this just prevent us from upgrading our RedMine version.
Sorry, I initially thought it was a good idea using it.

@fwosar
Copy link

fwosar commented Mar 6, 2013

Has anyone found a way how to fix this particular issue?

@pauleil
Copy link

pauleil commented May 7, 2013

Any updates? I still can't uninstall and it prevents me from using other plugins. Please help? Redmine 2.2 here.

@shayneoneill
Copy link

+1 on updates. This is a bit of a problem for us sadly :(

@JeroenValkonet
Copy link

I had the same problem, uninstalling Scrumbler from Redmine using migrate VERSION=0 was not possible and physically removing the Scrumbler directory resulted in the 500 error leaving Redmine unusable.

I managed to resolve this with a temporary fix of Redmine's plugin code:
redmine-v.v.v/lib/redmine/plugin.rb

When Redmine registers plugins it uses the plugin's id, see plugin.rb:
registered_plugins[id] = p

When it then tries to find a registered plugin it uses id.to_sym, see plugin.rb:
registered_plugins[id.to_sym] || raise(PluginNotFound)

A puts() of id and id.to_sym both returned 'redmine_scrumbler'
So i temporary changed registered_plugins[id.to_sym] -> registered_plugins[id] and voila, i could uninstall scrumbler from the Redmine database using the migrate command, i.e.:

rake db:migrate:plugin NAME=redmine_scrumbler VERSION=0 RAILS_ENV=production

This worked ok and after that i could remove the Scrumbler directory from plugins without Redmine giving a 500 page.

Finally i removed the temporary fix in plugin.rb (registered_plugins[id] -> registered_plugins[id.to_sym]

And now Redmine (2.2.2 by the way) seems to work OK.

@jjinri
Copy link

jjinri commented Apr 9, 2014

Thank you, JeroenValkonet !!
I resolved uninstall scrumbler problem because of your advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants