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

mongo can't start in kubernetes after pod restart

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

      I use mongo 4.0.3 to start mongo in kubernetes with the following arguments:

      mongod --replSet rs0 --bind_ip 0.0.0.0 --smallfiles --noprealloc

      the volume contains the old data, copy from other instance, but I got following error:

       

      2018-10-04T12:39:36.525+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
      2018-10-04T12:39:36.532+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7511M,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),statistics_log=(wait=0),verbose=(recovery_progress),
      2018-10-04T12:39:37.231+0000 E STORAGE [initandlisten] WiredTiger error (22) [1538656777:231135][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument Raw: [1538656777:231135][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument
      2018-10-04T12:39:37.234+0000 E STORAGE [initandlisten] WiredTiger error (22) [1538656777:234941][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument Raw: [1538656777:234941][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument
      2018-10-04T12:39:37.238+0000 E STORAGE [initandlisten] WiredTiger error (22) [1538656777:237994][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument Raw: [1538656777:237994][325:0x7fb5e255fa00], wiredtiger_open: __posix_open_file, 715: /data/db/WiredTiger: handle-open: open: Invalid argument
      2018-10-04T12:39:37.238+0000 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
      2018-10-04T12:39:37.238+0000 F - [initandlisten] Fatal Assertion 28561 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 620
      2018-10-04T12:39:37.239+0000 F - [initandlisten]
      ***aborting after fassert() failure
      

       

      .strace file is in attachment

       

      PersistentVolume is an NFS with the following flags:

      rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.23.74,local_lock=none,addr=10.43.65.60

       

        1. mongod.SERVER-30709.strace
          56 kB
          Henrique Barcellos
        2. WiredTiger.turtle
          1 kB
          Henrique Barcellos
        3. WiredTiger.wt
          68 kB
          Henrique Barcellos

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            henrique.barcellos Henrique Barcellos
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: