Unable to cleanup the database

8 views
Skip to first unread message

Nicholas Wieland

unread,
Feb 29, 2016, 11:10:06 AM2/29/16
to Errbit
Hi *, I'm dealing with an errbit installation that went south.
The problem is that the database is becoming too big as developers don't resolve the issues, and basically use errbit just to inspect errors they see in production.
I would like now to cleanup the db starting with the errbit:db:clear_resolved I see in my rake tasks. Unfortunately the task starts and never comes back, with some weird error messages I'm not really able to understand.

Overwriting existing field _id in class App.

then a series of

Creating scope :page. Overwriting existing method NotificationServices::CampfireService.page.

I wrote a similar tasks to resolve all elements older than 2 weeks:

    task :cleanup => :environment do
      offset = 3.weeks.ago
      Problem.where(:updated_at.lt => offset).map(&:resolve!)
      Notice.where(:updated_at.lt => offset).destroy_all
    end

Fails for exactly the same reason.

Does anybody have any clue?

  ngw
Reply all
Reply to author
Forward
0 new messages