[SERVER-4126] restart does not work in standalone mongo Created: 22/Oct/11  Updated: 08/Mar/13  Resolved: 27/Aug/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.0.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: ofer samocha Assignee: Scott Hernandez (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: File mongod     File mongod.conf    
Operating System: ALL
Participants:

 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



 Comments   
Comment by ofer samocha [ 30/Dec/11 ]

does not reproduce in 2.0.2

Comment by ofer samocha [ 22/Oct/11 ]

it start after /etc/init.d/mongod start
and it runs as root

Comment by ofer samocha [ 22/Oct/11 ]

/etc/mongod.conf

Comment by ofer samocha [ 22/Oct/11 ]

/etc/init.d/mongod

Comment by Scott Hernandez (Inactive) [ 22/Oct/11 ]

What command line args and config file settings are used by this instance? Was there a file permission issue crwating or deleting the lock file?

Generated at Thu Feb 08 03:05:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.