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

running mongod with a missing dbpath causes mongod to crash

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

      scons --ssl

      Show
      scons --ssl

      i'm on:

      commit bdd3bc57d295d72e42af81ae6c9f3a8549fa44c1
      Author: Spencer T Brody <spencer@mongodb.com>
      Date: Thu Aug 7 14:16:34 2014 -0400

      SERVER-14448 Fix Date handling in replSetGetStatus

      and I build with "scons --ssl" and I don't have any idea if the ssl is related or not.
      This is on a centos 6 instal running in virtualbox.

      [gabriel@localhost mongo]$ ./mongod
      ./mongod --help for help and startup options
      2014-08-07T17:39:53.918-0400 I [initandlisten] MongoDB starting : pid=11343 port=27017 dbpath=/data/db 64-bit host=localhost.localdomain
      2014-08-07T17:39:53.918-0400 I [initandlisten]
      2014-08-07T17:39:53.918-0400 I [initandlisten] ** NOTE: This is a development version (2.7.5-pre-) of MongoDB.
      2014-08-07T17:39:53.918-0400 I [initandlisten] ** Not recommended for production.
      2014-08-07T17:39:53.918-0400 I [initandlisten]
      2014-08-07T17:39:53.918-0400 I [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
      2014-08-07T17:39:53.918-0400 I [initandlisten] ** We suggest setting it to 'never'
      2014-08-07T17:39:53.918-0400 I [initandlisten]
      2014-08-07T17:39:53.918-0400 I [initandlisten] db version v2.7.5-pre-
      2014-08-07T17:39:53.918-0400 I [initandlisten] git version: bdd3bc57d295d72e42af81ae6c9f3a8549fa44c1
      2014-08-07T17:39:53.918-0400 I [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
      2014-08-07T17:39:53.918-0400 I [initandlisten] build info: Linux localhost.localdomain 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
      2014-08-07T17:39:53.918-0400 I [initandlisten] allocator: tcmalloc
      2014-08-07T17:39:53.918-0400 I [initandlisten] options: {}
      2014-08-07T17:39:53.918-0400 I [initandlisten] exception in initAndListen: 10296
      *********************************************************************
      ERROR: dbpath (/data/db) does not exist.
      Create this directory or give existing directory in --dbpath.
      See http://dochub.mongodb.org/core/startingandstoppingmongo
      *********************************************************************
      , terminating
      2014-08-07T17:39:53.918-0400 I [initandlisten] Invariant failure storageEngine src/mongo/db/operation_context_impl.cpp 44
      2014-08-07T17:39:53.921-0400 I [initandlisten]
      0xf6256e 0xf04a41 0xeef8e4 0xaf554e 0xaa4913 0x7d1d70 0x7d29f9 0x31ea41ed1d 0x7cd549
      ----- BEGIN BACKTRACE -----
      {"backtrace":[

      {"b":"400000","o":"B6256E"}

      ,

      {"b":"400000","o":"B04A41"}

      ,

      {"b":"400000","o":"AEF8E4"}

      ,

      {"b":"400000","o":"6F554E"}

      ,

      {"b":"400000","o":"6A4913"}

      ,

      {"b":"400000","o":"3D1D70"}

      ,

      {"b":"400000","o":"3D29F9"}

      ,

      {"b":"31EA400000","o": "1ED1D"}

      ,

      {"b":"400000","o":"3CD549"}

      ],"processInfo":{ "mongodbVersion" : "2.7.5-pre-", "gitVersion" : "bdd3bc57d295d72e42af81ae6c9f3a8549fa44c1", "uname" :

      { "sysname" : "Linux", "release" : "2.6.32-431.23.3.el6.x86_64", "version" : "#1 SMP Thu Jul 31 17:20:51 UTC 2014", "machine" : "x86_64" }

      , "somap" : [

      { "elfType" : 2, "b" : "400000", "buildId" : "B562D4E732F68510F5F0469E634F28540B611E19" }

      ,

      { "b" : "7FFF14FA8000", "elfType" : 3, "buildId" : "1E0A7D58F4549 26E2AFB4797865D85801ED65ECE" }

      ,

      { "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "211321F78CA244BE2B2B1B8584B460F9933BA76B" }

      ,

      { "path" : "/usr/lib64/libssl.so.10", "elfType" : 3, "buildId" : "318EAB33420B000D542F09B9 1B716BACAB1AD546" }

      ,

      { "path" : "/usr/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "3A8D65B9A373C0AFAF106F3A979835B16DBEFF1A" }

      ,

      { "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "B26528BF6C0636AC1CAE5AC50BDBC07E60851 DF4" }

      ,

      { "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "AFC7448F2F2F6ED4E5BC82B1BD8A7320B84A9D48" }

      ,

      { "path" : "/usr/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "ED99110E629209C5CA6C0ED704F2C5CE3171513A" }

      ,

      { "pat h" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "98B028A725D6E93253F25DF00B794DFAA66A3145" }

      ,

      { "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "A44499D29B114A5366CD72DD4883958495AC1C1D" }

      ,

      { "path" : "/lib64/libc.so .6", "elfType" : 3, "buildId" : "91D435CBF18DF05134203B0A7F7919718DBD1D75" }

      ,

      { "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "57BF668F99B7F5917B8D55FBB645173C9A644575" }

      ,

      { "path" : "/lib64/libgssapi_krb5.so.2" , "elfType" : 3, "buildId" : "50487A3480233636C29DBCAD5DE65421808948AB" }

      ,

      { "path" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "D9A44621797C990C639FF2D5AA452AB559C277DE" }

      ,

      { "path" : "/lib64/libcom_err.so.2", "elfType" : 3 , "buildId" : "6A22EDFF4D4F04A57573E3D1536B6B4963159CD5" }

      ,

      { "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "D180B6297A9A302693053BD753A85D04A88DE811" }

      ,

      { "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "5F A8E5038EC04A774AF72A9BB62DC86E1049C4D6" }

      ,

      { "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "FF9705F60A59F28CA0FC50720A4F18FA9A889BD6" }

      ,

      { "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "8A8734DC3 7305D8CC2EF8F8C3E5EA03171DB07EC" }

      ,

      { "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "A91A53E16DEABDFE05F28F7D04DAB5FFAA013767" }

      ,

      { "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "BAD5C71361DADF259B6E30 6A49E6F47F24AEA3DC" }

      ] }}
      mongod(_ZN5mongo15printStackTraceERSo+0x2E) [0xf6256e]
      mongod(_ZN5mongo10logContextEPKc+0xD1) [0xf04a41]
      mongod(_ZN5mongo15invariantFailedEPKcS1_j+0x164) [0xeef8e4]
      mongod(_ZN5mongo20OperationContextImplC1Ev+0xAE) [0xaf554e]
      mongod(_ZN5mongo11exitCleanlyENS_8ExitCodeE+0x53) [0xaa4913]
      mongod(+0x3D1D70) [0x7d1d70]
      mongod(main+0x9) [0x7d29f9]
      libc.so.6(__libc_start_main+0xFD) [0x31ea41ed1d]
      mongod(+0x3CD549) [0x7cd549]
      ----- END BACKTRACE -----
      2014-08-07T17:39:53.921-0400 I [initandlisten]

      ***aborting after invariant() failure

      2014-08-07T17:39:53.925-0400 F [initandlisten] Got signal: 6 (Aborted).

      0xf6256e 0xf62048 0xf620b1 0x31ea4329a0 0x31ea432925 0x31ea434105 0xeef96f 0xaf554e 0xaa4913 0x7d1d70 0x7d29f9 0x31ea41ed1d 0x7cd549
      ----- BEGIN BACKTRACE -----
      {"backtrace":[

      {"b":"400000","o":"B6256E"}

      ,

      {"b":"400000","o":"B62048"}

      ,

      {"b":"400000","o":"B620B1"}

      ,

      {"b":"31EA400000","o":"329A0"}

      ,

      {"b":"31EA400000","o":"32925"}

      ,

      {"b":"31EA400000","o":"34105"}

      ,

      {"b":"400000","o":"AEF96F"}

      ,

      {"b":"400000" ,"o":"6F554E"}

      ,

      {"b":"400000","o":"6A4913"}

      ,

      {"b":"400000","o":"3D1D70"}

      ,

      {"b":"400000","o":"3D29F9"}

      ,

      {"b":"31EA400000","o":"1ED1D"}

      ,

      {"b":"400000","o":"3CD549"}

      ],"processInfo":{ "mongodbVersion" : "2.7.5-pre-", "gitVersion" : "bdd3bc57
      d295d72e42af81ae6c9f3a8549fa44c1", "uname" :

      { "sysname" : "Linux", "release" : "2.6.32-431.23.3.el6.x86_64", "version" : "#1 SMP Thu Jul 31 17:20:51 UTC 2014", "machine" : "x86_64" }

      , "somap" : [

      { "elfType" : 2, "b" : "400000", "b uildId" : "B562D4E732F68510F5F0469E634F28540B611E19" }

      ,

      { "b" : "7FFF14FA8000", "elfType" : 3, "buildId" : "1E0A7D58F454926E2AFB4797865D85801ED65ECE" }

      ,

      { "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "211321F78CA244 BE2B2B1B8584B460F9933BA76B" }

      ,

      { "path" : "/usr/lib64/libssl.so.10", "elfType" : 3, "buildId" : "318EAB33420B000D542F09B91B716BACAB1AD546" }

      ,

      { "path" : "/usr/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "3A8D65B9A373C0AFAF106 F3A979835B16DBEFF1A" }

      ,

      { "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "B26528BF6C0636AC1CAE5AC50BDBC07E60851DF4" }

      ,

      { "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "AFC7448F2F2F6ED4E5BC82B1BD8A7320B84A9D48" }

      ,

      { "path" : "/usr/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "ED99110E629209C5CA6C0ED704F2C5CE3171513A" }

      ,

      { "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "98B028A725D6E93253F25DF00B794DFAA66A3145" }

      ,

      { "path" : "/ lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "A44499D29B114A5366CD72DD4883958495AC1C1D" }

      ,

      { "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "91D435CBF18DF05134203B0A7F7919718DBD1D75" }

      ,

      { "path" : "/lib64/ld-linux-x86-6 4.so.2", "elfType" : 3, "buildId" : "57BF668F99B7F5917B8D55FBB645173C9A644575" }

      ,

      { "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "50487A3480233636C29DBCAD5DE65421808948AB" }

      ,

      { "path" : "/lib64/libkrb5.so.3", "e lfType" : 3, "buildId" : "D9A44621797C990C639FF2D5AA452AB559C277DE" }

      ,

      { "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "6A22EDFF4D4F04A57573E3D1536B6B4963159CD5" }

      ,

      { "path" : "/lib64/libk5crypto.so.3", "elfType" : 3 , "buildId" : "D180B6297A9A302693053BD753A85D04A88DE811" }

      ,

      { "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "5FA8E5038EC04A774AF72A9BB62DC86E1049C4D6" }

      ,

      { "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "FF9705F60A59F28CA0FC50720A4F18FA9A889BD6" }

      ,

      { "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "8A8734DC37305D8CC2EF8F8C3E5EA03171DB07EC" }

      ,

      { "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "A91A53E16DE ABDFE05F28F7D04DAB5FFAA013767" }

      ,

      { "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "BAD5C71361DADF259B6E306A49E6F47F24AEA3DC" }

      ] }}
      mongod(_ZN5mongo15printStackTraceERSo+0x2E) [0xf6256e]
      mongod(+0xB62048) [0xf62048]
      mongod(+0xB620B1) [0xf620b1]
      libc.so.6(+0x329A0) [0x31ea4329a0]
      libc.so.6(gsignal+0x35) [0x31ea432925]
      libc.so.6(abort+0x175) [0x31ea434105]
      mongod(_ZN5mongo15invariantFailedEPKcS1_j+0x1EF) [0xeef96f]
      mongod(_ZN5mongo20OperationContextImplC1Ev+0xAE) [0xaf554e]
      mongod(_ZN5mongo11exitCleanlyENS_8ExitCodeE+0x53) [0xaa4913]
      mongod(+0x3D1D70) [0x7d1d70]
      mongod(main+0x9) [0x7d29f9]
      libc.so.6(__libc_start_main+0xFD) [0x31ea41ed1d]
      mongod(+0x3CD549) [0x7cd549]
      ----- END BACKTRACE -----

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: