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

mongod crash after SIGUSR1 signal, if not finds mongod.log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.2.4
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      rm /var/log/mongodb/mongod.log
      killall -SIGUSR1 mongod
      

      Show
      rm /var/log/mongodb/mongod.log killall -SIGUSR1 mongod

      Description

      Hello.

      Commands:

      rm /var/log/mongodb/mongod.log
      killall -SIGUSR1 mongod
      

      Give this:

      2016-12-01T14:17:40.025+0300 W CONTROL  [signalProcessingThread] Rotating log file /var/log/mongodb/mongod.log failed: FileRenameFailed: Failed  to rename "/var/log/mongodb/mongod.log" to "/var/log/mongodb/mongod.log.2016-12-01T11-17-40": No such file or directory (2)
      2016-12-01T14:17:40.025+0300 I -        [signalProcessingThread] Fatal Assertion 16782
      2016-12-01T14:17:40.025+0300 I -        [signalProcessingThread]
       
      ***aborting after fassert() failure
       
       
      2016-12-01T14:17:40.028+0300 F -        [signalProcessingThread] Got signal: 6 (Aborted).
       
       0x12f3502 0x12f2659 0x12f2e62 0x7fe9aa3f6330 0x7fe9aa057c37 0x7fe9aa05b028 0x127d9d2 0x12f2045 0x7fe9aabd1a60 0x7fe9aa3ee184 0x7fe9aa11b37d
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"EF3502","s":"_ZN5mongo15printStackTraceERSo"},{"b":"400000","o":"EF2659"},{"b":"400000","o":"EF2E62"},{"b":"7FE9AA3E6000","o":"10330"},{"b":"7FE9AA021000","o":"36C37","s":"gsignal"},{"b":"7FE9AA021000","o":"3A028","s":"abort"},{"b":"400000","o":"E7D9D2","s":"_ZN5mongo13fassertFailedEi"},{"b":"400000","o":"EF2045"},{"b":"7FE9AAB20000","o":"B1A60"},{"b":"7FE9AA3E6000","o":"8184"},{"b":"7FE9AA021000","o":"FA37D","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.2.4", "gitVersion" : "e2ee9ffcf9f5a94fad76802e28cc978718bb7a30", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.13.0-24-generic", "version" : "#47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "EF46210F8976780D45B811C3540FECB9E734EABE" }, { "b" : "7FFF832FE000", "elfType" : 3, "buildId" : "6755FAD2CADACDF1667E5B57FF1EDFC28DD1C976" }, { "b" : "7FE9AB60C000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "15A6A69B862FAC0AA589921DB1B0DF8A673FEC81" }, { "b" : "7FE9AB230000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "607C4A6F3428B6F065D55691AFDC4E343786A8A5" }, { "b" : "7FE9AB028000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "E2A6DD5048A0A051FD61043BDB69D8CC68192AB7" }, { "b" : "7FE9AAE24000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "DA9B8C234D0FE9FD8CAAC8970A7EC1B6C8F6623F" }, { "b" : "7FE9AAB20000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "76190E922AF7457D078F75C9B15FA184E83EB506" }, { "b" : "7FE9AA81A000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "D144258E614900B255A31F3FD2283A878670D5BC" }, { "b" : "7FE9AA604000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "36311B4457710AE5578C4BF00791DED7359DBB92" }, { "b" : "7FE9AA3E6000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "31E9F21AE8C10396171F1E13DA15780986FA696C" }, { "b" : "7FE9AA021000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "CF699A15CAAE64F50311FC4655B86DC39A479789" }, { "b" : "7FE9AB86B000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "D0F537904076D73F29E4A37341F8A449E2EF6CD0" } ] }}
       mongod(_ZN5mongo15printStackTraceERSo+0x32) [0x12f3502]
       mongod(+0xEF2659) [0x12f2659]
       mongod(+0xEF2E62) [0x12f2e62]
       libpthread.so.0(+0x10330) [0x7fe9aa3f6330]
       libc.so.6(gsignal+0x37) [0x7fe9aa057c37]
       libc.so.6(abort+0x148) [0x7fe9aa05b028]
       mongod(_ZN5mongo13fassertFailedEi+0x82) [0x127d9d2]
       mongod(+0xEF2045) [0x12f2045]
       libstdc++.so.6(+0xB1A60) [0x7fe9aabd1a60]
       libpthread.so.0(+0x8184) [0x7fe9aa3ee184]
       libc.so.6(clone+0x6D) [0x7fe9aa11b37d]
      -----  END BACKTRACE  -----
      

      Config:

      #System Log
       
      systemLog.path: /var/log/mongodb/mongod.log
      systemLog.destination: file
      systemLog.logAppend: true
      systemLog.quiet: false
       
      #Process Management
      processManagement:
        pidFilePath: /var/run/mongodb/mongod.pid
       
      #Storage
      storage.dbPath: /var/lib/mongodb
       
      #Security
      security.authorization: disabled
       
      #Net
      net.bindIp:  0.0.0.0
       
      #Replication
      replication.replSetName: pusher
      

      Expected behavior:
      Create /var/log/mongodb/mongod.log and don't crash.

      OS: Linux Ubuntu 14.04.5 x64
      VER: mongodb-org-server 3.2.4

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lexore Igor Isaenko
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: