[SERVER-20929] Restore error: false invalid document size Created: 14/Oct/15 Updated: 16/Oct/15 Resolved: 16/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 3.0.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Michael Werle | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS X 10.11.0 |
||
| Issue Links: |
|
||||||||
| Operating System: | OS X | ||||||||
| Steps To Reproduce: |
I have only tested a few collections, from a single DB, but all have failed. I have tested backups from a 3.0.6 instance and backups from a 3.0.7 instance that was upgraded from 3.0.6. |
||||||||
| Participants: | |||||||||
| Description |
|
I cannot restore collections to 3.0.7 from mongodump files that restore fine to 3.0.6. The server log indicates that it thinks objects with invalid (too large) BSON sizes are being restored. mongorestore log:
Server log:
|
| Comments |
| Comment by Ramon Fernandez Marina [ 16/Oct/15 ] | |||||||||||||||||||
|
We've now confirmed that this ticket is a duplicate of The workaround is to use a 3.0.6 mongorestore. Apologies for the inconvenience. Regards, | |||||||||||||||||||
| Comment by Michael Werle [ 16/Oct/15 ] | |||||||||||||||||||
|
Sorry I missed that – I did search, but did not see it, somehow. I'm nearly certain that this issue is a duplicate of that issue. | |||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 16/Oct/15 ] | |||||||||||||||||||
|
There's a known issue in mongorestore 3.0.7 (see | |||||||||||||||||||
| Comment by Matt Taylor [X] [ 16/Oct/15 ] | |||||||||||||||||||
|
My use case was moving a database from a v2.6.11 server to a different v3.0.7 server. I tried creating backups using tools from v3.0.7 as well as v2.6.11 and was not able to restore either of them into version v3.0.7 with both the v3.0.7 and v2.6.11 mongorestore commands (standalone or replica set). The one case where I was able to restore the same backup file was using the v3.0.6 restore tool and server. | |||||||||||||||||||
| Comment by Michael Werle [ 16/Oct/15 ] | |||||||||||||||||||
|
When I last tested, I used a bson file provided as part of a mongodump backup from MongoLabs from a cluster (no sharding) running Mongo 3.0.6. When that failed, I did the following:
So, I don't think that there's a meaningful difference in the source of the backup file; it seems to be a problem with the restore process. | |||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 16/Oct/15 ] | |||||||||||||||||||
|
No problem mkw. If you can't share your current data perhaps there's an experiment you can try to narrow down the problem: can you try to restore to a 3.0.6 server with the 3.0.7 tools? And/or the other way around – that may tell us if this is an issue with the tools or with the server. Thanks, | |||||||||||||||||||
| Comment by Michael Werle [ 16/Oct/15 ] | |||||||||||||||||||
|
Sorry I'm slow – the collections that I used to test originally have information in them that I cannot release. I haven't had a chance to switch back to 3.0.7 to test some collections that I can upload, but I'll upload some once I get a chance to confirm that they also fail. | |||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 16/Oct/15 ] | |||||||||||||||||||
|
Thanks for uploading the data Twenty7, I'm downloading it now and will post an update to this ticket as soon as I have more information. | |||||||||||||||||||
| Comment by Matt Taylor [X] [ 15/Oct/15 ] | |||||||||||||||||||
|
I am also receiving a similar error when restoring into Mongo v3.0.7
This file will not restore into v3.0.7 but it does restore into v3.0.6. Upgrading to v3.0.7 with this data already imported seems to work without errors. I've uploaded a file that you can use to reproduce this with v3.0.7. I've been able to reproduce this error on CentOS as well as Windows. | |||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 14/Oct/15 ] | |||||||||||||||||||
|
mkw, I'm not able to reproduce this behavior. Could you please share with us one of the collections that you're not able to restore? You can upload it safely and securely here. Thanks, |