0

我的MongoDB在我重启服务器后无法正常启动,并提示我在一个叫WiredTiger的东西上出现错误。我的项目是在PM2上搭建的,参考了网上关于这方面的报错,并尝试删除WiredTiger.lock等文件或执行mongod –dbpath /data/db命令均没有用处(命令无误,执行mongod命令报错下方的内容)。这个项目非常紧急,所以希望能有人来帮我修复这个问题。

报错内容如下:

1|mongodb | 2022-01-31T14:44:47.416+0800 I – [initandlisten] Detected data files in /data/db created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
1|mongodb | 2022-01-31T14:44:47.416+0800 I STORAGE [initandlisten]
1|mongodb | 2022-01-31T14:44:47.416+0800 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
1|mongodb | 2022-01-31T14:44:47.416+0800 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
1|mongodb | 2022-01-31T14:44:47.416+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3212M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release=”3.0″,require_max=”3.0″),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
1|mongodb | 2022-01-31T14:44:47.929+0800 E STORAGE [initandlisten] WiredTiger error (-31802) [1643611487:929417][176701:0x7f29f063cf40]file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error
1|mongodb | 2022-01-31T14:44:47.929+0800 E STORAGE [initandlisten] WiredTiger error (0) [1643611487:929483][176701:0x7f29f063cf40]file:WiredTiger.wt, connection: WiredTiger has failed to open its metadata
1|mongodb | 2022-01-31T14:44:47.929+0800 E STORAGE [initandlisten] WiredTiger error (0) [1643611487:929491][176701:0x7f29f063cf40]file:WiredTiger.wt, connection: This may be due to the database files being encrypted, being from an older version or due to corruption on disk
1|mongodb | 2022-01-31T14:44:47.929+0800 E STORAGE [initandlisten] WiredTiger error (0) [1643611487:929498][176701:0x7f29f063cf40]file:WiredTiger.wt, connection: You should confirm that you have opened the database with the correct options including all encryption and compression options
1|mongodb | 2022-01-31T14:44:47.930+0800 E – [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 421
1|mongodb | 2022-01-31T14:44:47.930+0800 I STORAGE [initandlisten] exception in initAndListen: Location28595: -31802: WT_ERROR: non-specific WiredTiger error, terminating
1|mongodb | 2022-01-31T14:44:47.930+0800 I NETWORK [initandlisten] shutdown: going to close listening sockets…
1|mongodb | 2022-01-31T14:44:47.930+0800 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
1|mongodb | 2022-01-31T14:44:47.930+0800 I CONTROL [initandlisten] now exiting
1|mongodb | 2022-01-31T14:44:47.930+0800 I CONTROL [initandlisten] shutting down with code:100

谢谢各位大神,如果能帮助我解决这个问题,我能给予一些物质报酬。因为这非常着急。

因为我没有找到哪里能上传文件,所以如果需要关于我更详细的WiredTiger报错的附件,请参考:

https://foj.ink/files/WT_ERROR.tar.gz

点击下载即可。谢谢大家。

已回答的问题