Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35183

Starup the mongodb service failed after setup a slave node on the same server with the same port

    • Type: Icon: Question Question
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.4
    • Component/s: WiredTiger
    • Labels:
      None
    • Environment:
      windows server 2012 datacenter

      I can't startup the mongodb process as a windows service after setup a slave node on the same server with the same port 27017.I had recieved an error code 1067 by the windows warnning.And I check the mongo log files, I get the main error message below:

      2018-05-23T21:00:53.432+0800 E STORAGE  [initandlisten] WiredTiger error (0) [1527080453:431738][3136:8781149835856], file:collection-2-6275901123418866083.wt, WT_CURSOR.insert: read checksum error for 4096B block at offset 34094784512: block header checksum of 630942458 doesn't match expected checksum of 2298237107
      2018-05-23T21:00:53.432+0800 E STORAGE  [initandlisten] WiredTiger error (0) [1527080453:431738][3136:8781149835856], file:collection-2-6275901123418866083.wt, WT_CURSOR.insert: collection-2-6275901123418866083.wt: encountered an illegal file format or internal value
      2018-05-23T21:00:53.432+0800 E STORAGE  [initandlisten] WiredTiger error (-31804) [1527080453:431738][3136:8781149835856], file:collection-2-6275901123418866083.wt, WT_CURSOR.insert: the process must exit and restart: WT_PANIC: WiredTiger library panic
      

      I had tried to run the --repair command to solved the problem, but still occur an error. Here is the error message after run the --repair command:

      2018-05-23T20:22:39.573+0800 I STORAGE  [initandlisten] exception in initAndListen: 29 Data directory C:\data\db\ not found., terminating
      2018-05-23T20:22:39.574+0800 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
      2018-05-23T20:22:39.575+0800 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
      2018-05-23T20:22:39.575+0800 I CONTROL  [initandlisten] now exiting
      2018-05-23T20:22:39.576+0800 I CONTROL  [initandlisten] shutting down with code:100
      

       

      The windows service run with the command list below:

      "C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --dbpath D:\mongodb\db --logpath D:\mongodb\log\mongodb.log --port 27017 --master --auth --service
      

      And the slave node setup command list below, the source ip in the command point to the same server

      C:\"Program Files"\MongoDB\Server\3.4\bin\mongod.exe  --dbpath D:\data\db --logpath D:\MongoDB\mongodb.log --port 27017 --slave --source 10.53.200.83:27017 --service 
      

       

      After search few similar issue on the internet, I still not found the solution how to repair it.Plz help, thx a lot.

       
       
       

       

       

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            ky ky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: