256MbTeam / Redmine-Scrumbler

Easy to use plugin for Redmine. It allows users to use the Scrum/Agile process in projects. Scrumbler have interactive dashboard with the ability to configure for each sprint. Plugin adds Scrum Points field in every issue in project. Scrumbler as possible using the standard redmine structure of projects.
GNU General Public License v2.0
112 stars 41 forks source link

Unable to uninstall in Redmine 2.1.0 #92

Open hphoeksma opened 11 years ago

hphoeksma commented 11 years ago

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 commented 11 years ago

Check this https://github.com/256MbTeam/Redmine-Scrumbler/issues/75

hphoeksma commented 11 years ago

Hi Mani,

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

Thanks anyways!

arpysystems commented 11 years ago

+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 commented 11 years ago

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

pauleil commented 11 years ago

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

shayneoneill commented 11 years ago

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

JeroenValkonet commented 10 years ago

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 commented 10 years ago

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