Project

General

Profile

Actions

Bug / Feature #4223

closed

Repair Redmine DB

Added by Apophis about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Apophis
Category:
-
Target version:
-
Start date:
12 December 2012
Due date:
% Done:

100%

Estimated time:
Request Type:
Bug Report

Description

Removing users from projects is currently not possible:

it produces the following stack trace:

NameError (uninitialized constant Meeting):
app/models/watcher.rb:50:in `prune_single_user'
app/models/watcher.rb:49:in `each'
app/models/watcher.rb:49:in `prune_single_user'
app/models/watcher.rb:28:in `prune'
app/models/member.rb:93:in `unwatch_from_permission_change'
app/models/member.rb:47:in `role_ids='
app/controllers/members_controller.rb:67:in `edit'
/usr/lib/ruby/1.8/rack/adapter/rails.rb:74:in `call'
/usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
/usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
/usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
/usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
/usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
/usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/1.8/thin/server.rb:156:in `start'
/usr/lib/ruby/1.8/thin/controllers/controller.rb:80:in `start'
/usr/lib/ruby/1.8/thin/runner.rb:174:in `send'
/usr/lib/ruby/1.8/thin/runner.rb:174:in `run_command'
/usr/lib/ruby/1.8/thin/runner.rb:140:in `run!'
/usr/bin/thin1.8:6


Related issues 1 (0 open1 closed)

Blocks Digitale Infrastruktur - Bug / Feature #2888: Redmine Meetings FehlerClosedApophis29 March 2012

Actions
Actions #1

Updated by corvus about 13 years ago

There is a module cale Meeting or something similar. This problem can probably be fixed by migrate the scema of this modul to version 0 and then delete the plugin folder.

Actions #2

Updated by Apophis about 13 years ago

  • % Done changed from 0 to 50
  • Request Type changed from Feature Request to Bug Report

Ich würde sagen das wurde auch gemacht, zumindest die Tabelle war entfernt.

Problem 1.) Welche version war installiert?

Ich habe jetzt auf gut glück die letzte Version bevor 1.3 support installiert. Es scheint zu funktionieren.

git clone git://github.com/amartel/redmine_meetings.git
git checkout 3de11ac491a7e15026c91af75944af6138428a20

--- Das Plugin ist jetzt installiert und User kann man wieder löschen ---

ich werde jetzt eine down Migration versuchen, und nochmals testen. Falls das nicht geht, werde ich das Plugin installiert lassen.

Actions #3

Updated by Apophis about 13 years ago

  • Status changed from Needs Work to Closed
  • % Done changed from 50 to 100

OK: Probe aufs Exempel gemacht.

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

Danach kann man Members wieder nicht löschen.

Plugin lassen wir demnach installiert.

Das Problem haben auch andere, leider ohne Lösung.

http://www.redmine.org/issues/12163

Ich hab die migrate scripts angeschaut, das scheint OK. Mir ist es ein wenig Rätselhaft, als ob irgendwas registriert wird was nicht mehr gelöscht wird.

Ich close das Ticket, ich kann mit einem nicht aktive plugin leben wenn dafür der rest wieder funktioniert.

Actions #4

Updated by Apophis about 13 years ago

Haha, jetzt hab ich den Fehler! Es gab noch Watches auf Meetings und MeetingDoodles... Darum trat das Problem auch nur bei Manchen leuten auf, nämlich diejenigen welche einen Watch auf ein Meeting noch hatten.

Wider auf VERSION=0 migriert. Aber ich lass diesmal das plugin im Verzeichnis, falls doch noch was anderes auftauchen sollte.

Actions

Also available in: Atom PDF