[SERVER-81292] WiredTiger.turtle: handle-open: open: Is a directory Created: 21/Sep/23  Updated: 05/Oct/23  Resolved: 05/Oct/23

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

Type: Bug Priority: Major - P3
Reporter: long văn Assignee: Alison Rhea Thorne
Resolution: Done Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

My mongodb data got delete due to a security hole in my vps so all the table got deleted and i dont have any backup from mongodump just have the database data in /data/db from 1 month ago.
So i get that copy of data and cp to the /data/db folder
and run
mongod --dbpath /data/db

But its return these error

{{

{"t":\{"$date":"2023-09-20T15:45:32.372+07:00"}

,"s":"E", "c":"WT",
"id":22435, "ctx":"initandlisten","msg":"WiredTiger error
message","attr":{"error":0,"message":

{"ts_sec":1695199532,"ts_usec":372664,"thread":"2409:0x7fbb2d1b4b80","session_dhandle_name":"file:sizeStorer.wt","session_name":"txn-recover","category":"WT_VERB_DEFAULT","category_id":9,"verbose_level":"ERROR","verbose_level_id":-3,"msg":"__wt_block_read_off:226:sizeStorer.wt: potential hardware corruption, read checksum error for 4096B block at offset 36864: block header checksum of 0x92f4a8c5 doesn't match expected checksum of 0xaba5cd27"}

}}}}

and in the backup file systems the wiredtiger.turtle is a directory

{{WiredTiger.turtle: handle-open: open: Is a directory

}}

 

{{{}{"t":

{"$date":"2023-09-21T08:42:32.077+07:00"}

,"s":"W", "c":"STORAGE", "id":22302, "ctx":"initandlisten","msg":"Recovering data from the last clean checkpoint."}{"t":

{"$date":"2023-09-21T08:42:32.077+07:00"}

,"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=1383M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}{"t":

{"$date":"2023-09-21T08:42:33.390+07:00"}

,"s":"E", "c":"WT", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error message","attr":{"error":21,"message":"[1695260553:390185][1139:0x7f5794b11b80], wiredtiger_open: [WT_VERB_DEFAULT][ERROR]: __posix_open_file, 805: /var/lib/mongo/WiredTiger.turtle: handle-open: open: Is a directory"}}{"t":

{"$date":"2023-09-21T08:42:33.392+07:00"}

,"s":"E", "c":"WT", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error message","attr":{"error":21,"message":"[1695260553:391825][1139:0x7f5794b11b80], wiredtiger_open: [WT_VERB_DEFAULT][ERROR]: __posix_open_file, 805: /var/lib/mongo/WiredTiger.turtle: handle-open: open: Is a directory"}}{"t":

{"$date":"2023-09-21T08:42:33.393+07:00"}

,"s":"E", "c":"WT", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error message","attr":{"error":21,"message":"[1695260553:393191][1139:0x7f5794b11b80], wiredtiger_open: [WT_VERB_DEFAULT][ERROR]: __posix_open_file, 805: /var/lib/mongo/WiredTiger.turtle: handle-open: open: Is a directory"}}{"t":

{"$date":"2023-09-21T08:42:33.393+07:00"}

,"s":"W", "c":"STORAGE", "id":22347, "ctx":"initandlisten","msg":"Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade."}{"t":

{"$date":"2023-09-21T08:42:33.393+07:00"}

,"s":"F", "c":"STORAGE", "id":28595, "ctx":"initandlisten","msg":"Terminating.","attr":{"reason":"21: Is a directory"}}{"t":

{"$date":"2023-09-21T08:42:33.393+07:00"}

,"s":"F", "c":"ASSERT", "id":23091, "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":28595,"file":"src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":702}}{"t":

{"$date":"2023-09-21T08:42:33.393+07:00"}

,"s":"F", "c":"ASSERT", "id":23092, "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
Can someone had encounter this issues before pls help me. I only have the backup file systems

{}}}{}



 Comments   
Comment by Alison Rhea Thorne [ 05/Oct/23 ]

Hello lechuhuuha@gmail.com,

Thank you for your report. Based on the logs and the description that you've provided; it seems likely that your backup ran into filesystem corruption issues which is is indicative that your issue is not a bug within the mongod server software. We recommend reaching out to the community MongoDB forums, as that tends to be an excellent resource for for matters such as this.

Generated at Thu Feb 08 06:46:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.