Mongorestore finishing with Error "collection already exists"

1,895 views
Skip to first unread message

David Nellessen

unread,
Dec 18, 2013, 5:59:31 AM12/18/13
to mongod...@googlegroups.com
I restored a database with mongorestore and the last output I get is

Tue Dec 17 21:42:19 going into namespace [mydb.locations_523f256eea84d339305d6de0]
assertion: 15936 Creating collection mydb.locations_523f256eea84d339305d6de0 failed. Errmsg: collection already exists

I don't care so much if this specific collection was imported. But does this error stop the entire import process or can I expect the rest to be imported correctly?

Asya Kamsky

unread,
Dec 19, 2013, 2:17:52 AM12/19/13
to mongodb-user
What version is this?  Normally you just get a warning if a collection already exists (you have an option to use --drop which will drop collection before restoring more data into it).

Asya



--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

David Nellessen

unread,
Jan 8, 2014, 12:51:51 PM1/8/14
to mongod...@googlegroups.com
It is version 2.2. I have upgraded to 2.4 in the meantime. mongorestore is not showing an error anymore though this could be due to a drastic change in database structure. I don't have the old dump anymore for testing.
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/MJJVL1JxK0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages