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

Running mongod server with empty mongod.lock file

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: Concurrency, Storage, WiredTiger
    • Labels:
      None
    • Environment:
      Linux based OS
    • ALL

      I have running mongod 3.2 with --dbpath on NFS.

      When I run mongod -f /etc/mongod.conf then mongod is running and accepting connections, but file `/var/lib/mongodb/data/mongod.lock` is empty.
      So mongod -f /etc/mongod.conf --shutdown is not working for me (getting error There doesn't seem to be a server running with dbpath: /var/lib/mongodb/data)

      How it is possible? I am trying to figure out how to reproduce it, but for now what could be reason of this odd behavior?

      Content of /etc/mongod.conf

      ##
      ## For list of options visit:
      ## https://docs.mongodb.org/manual/reference/configuration-options/
      ##
      
      # systemLog Options - How to do logging
      systemLog:
        # Runs the mongod in a quiet mode that attempts to limit the amount of output
        quiet: true
      
      
      # net Options - Network interfaces settings
      net:
        # Specify port number (27017 by default)
        port: 27017
      
      
      # storage Options - How and Where to store data
      storage:
        # Directory for datafiles (defaults to /data/db/)
        dbPath: /var/lib/mongodb/data
      
      
      # replication Options - Configures replication
      replication:
        # Specifies a maximum size in megabytes for the replication operation log (i.e. the oplog,
        # 5% of disk space by default)
        oplogSizeMB: 64
      
      storage.wiredTiger.engineConfig.cacheSizeGB: 1
      

      File with server output is attached.

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            mskalick Marek Skalický
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: