[SERVER-31237] Mongodb can't restart,the error is Assertion: 28595:5: Input/output error Created: 25/Sep/17  Updated: 07/Nov/17  Resolved: 02/Oct/17

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

Type: Question Priority: Major - P3
Reporter: wanghai Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

***** SERVER RESTARTED *****
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] MongoDB starting : pid=6848 port=27017 dbpath=/home/mongo 64-bit host=kg04
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] db version v3.4.2
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] modules: none
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] build environment:
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten]     distmod: rhel70
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten]     distarch: x86_64
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2017-09-25T17:06:08.861+0800 I CONTROL  [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid" }, storage: { dbPath: "/home/mongo", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2017-09-25T17:06:08.893+0800 I -        [initandlisten] Detected data files in /home/mongo created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2017-09-25T17:06:08.893+0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=31621M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-09-25T17:06:08.901+0800 E STORAGE  [initandlisten] WiredTiger error (5) [1506330368:901052][6848:0x7f6acce6ddc0], file:WiredTiger.wt, connection: /home/mongo/WiredTiger.wt: handle-read: pread: failed to read 4096 bytes at offset 0: Input/output error
2017-09-25T17:34:17.035+0800 I -        [initandlisten] Assertion: 28595:5: Input/output error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 267
2017-09-25T17:34:17.035+0800 I STORAGE  [initandlisten] exception in initAndListen: 28595 5: Input/output error, terminating
2017-09-25T17:34:17.035+0800 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2017-09-25T17:34:17.035+0800 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2017-09-25T17:34:17.035+0800 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2017-09-25T17:34:17.035+0800 I CONTROL  [initandlisten] now exiting
2017-09-25T17:34:17.035+0800 I CONTROL  [initandlisten] shutting down with code:100



 Comments   
Comment by Kelsey Schubert [ 25/Sep/17 ]

Hi wanghaiwin,

This error indicates a failure at the storage layer below MongoDB. Unfortunately, in cases like this MongoDB can only identify that an IO issue has occurred. I would recommend investigating storage layer and suggest that you consider replacing your disks.

Kind regards,
Kelsey

Generated at Thu Feb 08 04:26:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.