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

restart does not work in standalone mongo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux
    • Operating System:
      ALL

      Description

      Hi,

      it seems that restart does not work in version 2.0.1 (it cannot hold the lock file)

      Ofer

      Sat Oct 22 03:46:03 [interruptThread] shutdown: going to close listening sockets...
      Sat Oct 22 03:46:03 [interruptThread] closing listening socket: 6
      Sat Oct 22 03:46:03 [interruptThread] closing listening socket: 7
      Sat Oct 22 03:46:03 [interruptThread] closing listening socket: 8
      Sat Oct 22 03:46:03 [interruptThread] removing socket file: /tmp/mongodb-27017.sock
      Sat Oct 22 03:46:03 [interruptThread] shutdown: going to flush diaglog...
      Sat Oct 22 03:46:03 [interruptThread] shutdown: going to close sockets...
      Sat Oct 22 03:46:03 [interruptThread] shutdown: waiting for fs preallocator...
      Sat Oct 22 03:46:03 [interruptThread] shutdown: lock for final commit...
      Sat Oct 22 03:46:03 [interruptThread] shutdown: final commit...
      Sat Oct 22 03:46:03 [interruptThread] shutdown: closing all files...
      Sat Oct 22 03:46:03 [interruptThread] closeAllFiles() finished
      Sat Oct 22 03:46:03 [interruptThread] journalCleanup...
      Sat Oct 22 03:46:03 [interruptThread] removeJournalFiles

              • SERVER RESTARTED *****

      Sat Oct 22 03:46:03 [initandlisten] MongoDB starting : pid=6032 port=27017 dbpath=/var/local/mongo/ 64-bit host=im013
      Sat Oct 22 03:46:03 [initandlisten] db version v2.0.1, pdfile version 4.5
      Sat Oct 22 03:46:03 [initandlisten] git version: 3a5cf0e2134a830d38d2d1aae7e88cac31bdd684
      Sat Oct 22 03:46:03 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
      Sat Oct 22 03:46:03 [initandlisten] options:

      { config: "/etc/mongod.conf", dbpath: "/var/local/mongo/", fork: "true", logappend: "true", logpath: "/var/log/mongo/mongod.log" }

      Sat Oct 22 03:46:03 [initandlisten] exception in initAndListen: 10310 Unable to acquire lock for lockfilepath: /var/local/mongo/mongod.lock, terminating
      Sat Oct 22 03:46:03 dbexit:
      Sat Oct 22 03:46:03 [initandlisten] shutdown: going to close listening sockets...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: going to flush diaglog...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: going to close sockets...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: waiting for fs preallocator...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: lock for final commit...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: final commit...
      Sat Oct 22 03:46:03 [initandlisten] shutdown: closing all files...
      Sat Oct 22 03:46:03 [initandlisten] closeAllFiles() finished
      Sat Oct 22 03:46:03 dbexit: really exiting now
      Sat Oct 22 03:46:04 [interruptThread] shutdown: removing fs lock...
      Sat Oct 22 03:46:04 dbexit: really exiting now

              • SERVER RESTARTED *****

      Sat Oct 22 03:46:25 [initandlisten] MongoDB starting : pid=6073 port=27017 dbpath=/var/local/mongo/ 64-bit host=im013
      Sat Oct 22 03:46:25 [initandlisten] db version v2.0.1, pdfile version 4.5
      Sat Oct 22 03:46:25 [initandlisten] git version: 3a5cf0e2134a830d38d2d1aae7e88cac31bdd684
      Sat Oct 22 03:46:25 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
      Sat Oct 22 03:46:25 [initandlisten] options:

      { config: "/etc/mongod.conf", dbpath: "/var/local/mongo/", fork: "true", logappend: "true", logpath: "/var/log/mongo/mongod.log" }

      Sat Oct 22 03:46:25 [initandlisten] journal dir=/var/local/mongo/journal
      Sat Oct 22 03:46:25 [initandlisten] recover : no journal files present, no recovery needed
      Sat Oct 22 03:46:25 [websvr] admin web console waiting for connections on port 28017
      Sat Oct 22 03:46:25 [initandlisten] waiting for connections on port 27017

        Attachments

        1. mongod
          2 kB
        2. mongod.conf
          2 kB

          Activity

            People

            Assignee:
            scotthernandez Scott Hernandez
            Reporter:
            ofersa ofer samocha
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: