[SERVER-12188] Database created from Ebs snapshot has error Created: 21/Dec/13  Updated: 10/Dec/14  Resolved: 19/Mar/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.4.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dharshan Rangegowda Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

I took a snapshot of the EBS disk holding my data. However when I create a new volume from this snapshot and use this volume to start mongodb I get the following error

Sat Dec 21 21:54:28.724 [conn51] end connection 10.33.200.5:33359 (8 connections now open)
Sat Dec 21 21:54:29.623 [initandlisten] connection accepted from 10.33.200.5:33370 #52 (9 connections now open)
Sat Dec 21 21:54:29.625 [conn52] end connection 10.33.200.5:33370 (8 connections now open)
Sat Dec 21 21:54:30.269 [conn3] end connection 10.32.42.126:47846 (7 connections now open)
Sat Dec 21 21:54:30.274 [initandlisten] connection accepted from 10.32.42.126:47848 #53 (8 connections now open)
Sat Dec 21 21:54:30.275 [conn53] authenticate db: local

{ authenticate: 1, nonce: "f9549b094de37ad8", user: "__system", key: "206fada6f43b57d947056aa377aea168" }

Sat Dec 21 21:54:33.765 [initandlisten] connection accepted from 88.66.193.89:53930 #54 (9 connections now open)
Sat Dec 21 21:54:33.810 [conn54] authenticate db: priceapi_production

{ authenticate: 1, nonce: "282d04c2c15bc917", user: "priceapi_production", key: "bf6456e4b47ec36c4dbcdbe1fca91e2f" }

Sat Dec 21 21:54:34.494 [initandlisten] connection accepted from 10.33.200.5:33487 #55 (10 connections now open)
Sat Dec 21 21:54:34.495 [initandlisten] connection accepted from 10.33.200.5:33488 #56 (11 connections now open)
Sat Dec 21 21:54:34.496 [conn55] end connection 10.33.200.5:33487 (10 connections now open)
Sat Dec 21 21:54:34.497 [conn56] end connection 10.33.200.5:33488 (9 connections now open)
Sat Dec 21 21:54:37.697 [initandlisten] connection accepted from 10.33.200.5:33561 #57 (10 connections now open)
Sat Dec 21 21:54:37.699 [conn57] end connection 10.33.200.5:33561 (9 connections now open)
Sat Dec 21 21:54:37.861 [conn13] Assertion: 10334:BSONObj size: 0 (0x00000000) is invalid. Size must be between 0 and 16793600(16MB) First element: EOO
0xdc7f71 0xd8963b 0xd89b7c 0x6e8f49 0x8b67fc 0xa77b9f 0xa7b44a 0xa74c41 0xa79ffe 0xa7d10e 0x9ef5d4 0x9f08f2 0x6f0350 0xdb478e 0x7fbbcafa4851 0x7fbbca34711d
/usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdc7f71]
/usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x9b) [0xd8963b]
/usr/bin/mongod() [0xd89b7c]
/usr/bin/mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x5a9) [0x6e8f49]
/usr/bin/mongod(_ZN5mongo11BasicCursor7currentEv+0x5c) [0x8b67fc]
/usr/bin/mongod(_ZNK5mongo21ResponseBuildStrategy7currentEbPNS_13ResultDetailsE+0x11f) [0xa77b9f]
/usr/bin/mongod(_ZN5mongo20OrderedBuildStrategy11handleMatchEPNS_13ResultDetailsE+0xaa) [0xa7b44a]
/usr/bin/mongod(_ZN5mongo20QueryResponseBuilder8addMatchEv+0xb1) [0xa74c41]
/usr/bin/mongod(_ZN5mongo23queryWithQueryOptimizerEiRKSsRKNS_7BSONObjERNS_5CurOpES4_S4_RKN5boost10shared_ptrINS_11ParsedQueryEEES4_RKNS_12ChunkVersionERNS7_10scoped_ptrINS_25PageFaultRetrya
bleSectionEEERNSG_INS_19NoPageFaultsAllowedEEERNS_7MessageE+0x3be) [0xa79ffe]
/usr/bin/mongod(ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1+0x1b3e) [0xa7d10e]
/usr/bin/mongod() [0x9ef5d4]
/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x392) [0x9f08f2]
/usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x90) [0x6f0350]
/usr/bin/mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) [0xdb478e]
/lib64/libpthread.so.0(+0x7851) [0x7fbbcafa4851]
/lib64/libc.so.6(clone+0x6d) [0x7fbbca34711d]
Sat Dec 21 21:54:37.866 [conn13] assertion 10334 BSONObj size: 0 (0x00000000) is invalid. Size must be between 0 and 16793600(16MB) First element: EOO ns:local.oplog.rs query:{ $query: {}, $
orderby:

{ $natural: -1 }

}



 Comments   
Comment by Stennie Steneker (Inactive) [ 19/Mar/14 ]

Hi Dharshan,

I'm going to close this issue due to inactivity.

I would also note that the SERVER project is intended for reporting bugs or feature suggestions for the MongoDB server.

For MongoDB-related support discussion please post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or ask specific questions on Stack Overflow / ServerFault.

Thanks,
Stephen

Comment by Daniel Pasette (Inactive) [ 21/Dec/13 ]

There are some caveats to taking an EBS snapshot. Namely, the journal must be on the same volume and you can't have a RAID configuration.

See the docs:
http://docs.mongodb.org/manual/tutorial/backup-databases-with-filesystem-snapshots/

Generated at Thu Feb 08 03:27:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.