-
Notifications
You must be signed in to change notification settings - Fork 999
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
migrations fail with #573 #577
Comments
This issue arrived when you launch the task Have you a simple mongoDB database or have you a replicatSet configuration ? |
Hi, I'm using a simple mongodb instance. Thank you!
|
@aamerik could you run db::migrate with trace enable? something like this: |
any update on this bug? thank you |
@aamerik Can you explain better the scenario in here? Were you trying to update a errbit project? is that a brand new project? How big is the database? Mongodb version? thanks |
I attempted to upgrade errbit to commit #573 and followed the upgrade procedure outlined in the readme. { MongoDB version: Thank you |
I think you can reproduce this issue by launch the rake task
|
@aamerik Can you test the new branch I do ? https://github.com/errbit/errbit/tree/fix/577 I think it can be fix your issue but I am not sure. I have another solution if not work. The problem is really because you have a lot of data in your application. |
@shingara Thank you. Can you tell me if it's possible to purge all exceptions older than X number of days? All of my exceptions in Errbit are "unresolved". |
@aamerik did that branch worked for you? in order to remove old problems, you can do something like this from mongodb console: var d = new Date(2010, 3, 1);
db.problems.remove( { created_at: {"$lt": d} }) |
@aamerik please open a new issue about your question. because it's not related to this issue. You can maybe create a admin task to do this works. open an issue. And please say if the branch fix work to merged it if it works. @arthurnn warning to delete a problem. there are a ServiceLayer to do that. If you do in mongodb console you not delete document associate to this problem. In rails console you can do :
|
@aamerik i will be closing this ticket for now, as it seems the issue is resolved. Let us know if you have any further problems. thanks |
Try fix isse #577 if a lot of problem
I merge the fix |
@arthurnn I was unable to complete the db migration because rake dbmigrate exhausted all system memory, activating kernel OOM killer. The instance has 8gb ram, so it was a little strange. |
So the problem is not fix. If I try to do another fix, can you test it ? |
@shingara I purged all problems older than 1 month, total of 11,000. My dataset is not so large anymore. |
I close this issue if we have no more update. Reopen it if someone has the same problem |
rake db::migrate
rake aborted!
An error has occurred, 20110422152027 and all later migrations canceled:
The operation: "GET MORE"
failed with error "cursor 1552437928771220 not found"/var/www/errbit/lib/tasks/errbit/database.rake:9:in
block (3 levels) in <top (required)>' /var/www/errbit/db/migrate/20110422152027_move_notices_to_separate_collection.rb:32:in
up'Tasks: TOP => db:migrate
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered: