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

Cannot fork with auditing file relative path

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • None
    • Admin
    • None
    • ALL
    • Hide

      Error case:

      /data/m/ent/mongo: ./mongod --auditLog jsonfile --auditPath ./s1a.log --shardsvr --dbpath /data/db/s1 --fork --logpath ./s1.log
      about to fork child process, waiting until server is ready for connections.
      forked process: 26187
      ERROR: child process failed, exited with error number 1

      Successful case (note command line params):

      /data/m/ent/mongo: ./mongod --shardsvr --dbpath /data/db/s1 --fork --logpath ./s1.log
      about to fork child process, waiting until server is ready for connections.
      forked process: 26190
      child process started successfully, parent exiting

      Show
      Error case: /data/m/ent/mongo: ./mongod --auditLog jsonfile --auditPath ./s1a.log --shardsvr --dbpath /data/db/s1 --fork --logpath ./s1.log about to fork child process, waiting until server is ready for connections. forked process: 26187 ERROR: child process failed, exited with error number 1 Successful case (note command line params): /data/m/ent/mongo: ./mongod --shardsvr --dbpath /data/db/s1 --fork --logpath ./s1.log about to fork child process, waiting until server is ready for connections. forked process: 26190 child process started successfully, parent exiting

    Description

      When it fails, it successfully opens the server log file, but the auditing log file does not get created. The server log file is empty.

      I can successfully start the server by using & instead of --fork, and everything appears to work properly, including both log files. Therefore, I suspect the problem lies in the interaction of the --fork code with the logging infrastructure code.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: