Mongodb Error on start : file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hello everyone,

      I am running Mongodb version 3.2.16 which comes preinstalled with OpenEdx (Ironwood).

      I am facing an issue regarding mongodb startup connection. Mongodb logs out error of the following nature whenever I try the command, error logs out to mongodb.logs file:

      // code placeholder
      sudo service mongod start 
      2021-07-07T18:02:39.398+0500 I CONTROL  [main] ***** SERVER RESTARTED *****2021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] MongoDB starting : pid=21255 port=27017 dbpath=/edx/var/mongo/mongodb 64-bit host=LMS2021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] db version v3.2.162021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] git version: 056bf45128114e44c5358c7a8776fb582363e0942021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 20162021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] allocator: tcmalloc2021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] modules: none2021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] build environment:2021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten]     distmod: ubuntu16042021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten]     distarch: x86_642021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten]     target_arch: x86_642021-07-07T18:02:39.423+0500 I CONTROL  [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, replication: { replSetName: "rs0" }, security: { authorization: "enabled", keyFile: "/etc/mongodb_key" }, storage: { dbPath: "/edx/var/mongo/mongodb", engine: "wiredTiger", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, logRotate: "reopen", path: "/edx/var/log/mongo/mongodb.log", quiet: true } }2021-07-07T18:02:39.449+0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=8G,session_max=20000,eviction=(threads_min=4,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),2021-07-07T18:02:39.461+0500 E STORAGE  [initandlisten] WiredTiger (-31802) [1625662959:461240][21255:0x7f2ecc1bdc80], file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error2021-07-07T18:02:39.461+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625662959:461332][21255:0x7f2ecc1bdc80], file:WiredTiger.wt, connection: WiredTiger has failed to open its metadata2021-07-07T18:02:39.461+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625662959:461363][21255:0x7f2ecc1bdc80], file:WiredTiger.wt, connection: This may be due to the database files being encrypted, being from an older version or due to corruption on disk2021-07-07T18:02:39.461+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625662959:461389][21255:0x7f2ecc1bdc80], file:WiredTiger.wt, connection: You should confirm that you have opened the database with the correct options including all encryption and compression options2021-07-07T18:02:39.462+0500 I -        [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error2021-07-07T18:02:39.462+0500 I STORAGE  [initandlisten] exception in initAndListen: 28595 -31802: WT_ERROR: non-specific WiredTiger error, terminating2021-07-07T18:02:39.462+0500 I CONTROL  [initandlisten] dbexit:  rc: 100
      

      I have also tried to repair my database using the following commands and it also shows the same errors: 

       

      // code placeholder
      sudo mongod --dbpath /edx/var/mongo/mongodb --repair 
      sysadmin@LMS:~$ sudo mongod --dbpath /edx/var/mongo/mongodb --repair2021-07-07T18:33:45.503+0500 I CONTROL  [initandlisten] MongoDB starting : pid=20396 port=27017 dbpath=/edx/var/mongo/mongodb 64-bit host=LMS2021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] db version v3.2.162021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] git version: 056bf45128114e44c5358c7a8776fb582363e0942021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 20162021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] allocator: tcmalloc2021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] modules: none2021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] build environment:2021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten]     distmod: ubuntu16042021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten]     distarch: x86_642021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten]     target_arch: x86_642021-07-07T18:33:45.507+0500 I CONTROL  [initandlisten] options: { repair: true, storage: { dbPath: "/edx/var/mongo/mongodb" } }2021-07-07T18:33:45.539+0500 I -        [initandlisten] Detected data files in /edx/var/mongo/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.2021-07-07T18:33:45.539+0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=8G,session_max=20000,eviction=(threads_min=4,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),,log=(enabled=false),2021-07-07T18:33:45.678+0500 E STORAGE  [initandlisten] WiredTiger (-31802) [1625664825:678256][20396:0x7fa39d3b3c80], file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error2021-07-07T18:33:45.678+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625664825:678324][20396:0x7fa39d3b3c80], file:WiredTiger.wt, connection: WiredTiger has failed to open its metadata2021-07-07T18:33:45.678+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625664825:678338][20396:0x7fa39d3b3c80], file:WiredTiger.wt, connection: This may be due to the database files being encrypted, being from an older version or due to corruption on disk2021-07-07T18:33:45.678+0500 E STORAGE  [initandlisten] WiredTiger (0) [1625664825:678349][20396:0x7fa39d3b3c80], file:WiredTiger.wt, connection: You should confirm that you have opened the database with the correct options including all encryption and compression options2021-07-07T18:33:45.680+0500 I -        [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error2021-07-07T18:33:45.680+0500 I STORAGE  [initandlisten] exception in initAndListen: 28595 -31802: WT_ERROR: non-specific WiredTiger error, terminating2021-07-07T18:33:45.680+0500 I CONTROL  [initandlisten] dbexit:  rc: 100 
      

      It'd be a great help if anyone can guide me to the solution.

      Thankyou.  

       

            Assignee:
            Unassigned
            Reporter:
            Humayun Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: