AWS Thinkbox Discussion Forums

error at slave startup

I just reinstalled the latest build (6.1.52824) and I’m getting the following error when I startup the slave:

Traceback (most recent call last): File "DeadlineSlave\UI\Forms\MainWindowSlaveStartup.py", line 95, in Startup File "DeadlineSlave\UI\Forms\MainWindowSlaveStartup.py", line 155, in ConnectToRepository MongoConnectionException: Unable to connect to server bumdc.skylinepost.lan:27017: Connection refused. at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect (TimeSpan timeout, MongoDB.Driver.ReadPreference readPreference) [0x00000] in <filename unknown>:0 at MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance (MongoDB.Driver.ReadPreference readPreference) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoServer.AcquireConnection (MongoDB.Driver.MongoDatabase database, MongoDB.Driver.ReadPreference readPreference) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.InsertBatch (System.Type nominalType, IEnumerable documents, MongoDB.Driver.MongoInsertOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.Insert (System.Type nominalType, System.Object document, MongoDB.Driver.MongoInsertOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.Insert[BsonDocument] (MongoDB.Bson.BsonDocument document, MongoDB.Driver.MongoInsertOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection`1[MongoDB.Bson.BsonDocument].Insert (MongoDB.Bson.BsonDocument document, MongoDB.Driver.MongoInsertOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.CreateIndex (IMongoIndexKeys keys, IMongoIndexOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.EnsureIndex (IMongoIndexKeys keys, IMongoIndexOptions options) [0x00000] in <filename unknown>:0 at MongoDB.Driver.MongoCollection.EnsureIndex (IMongoIndexKeys keys) [0x00000] in <filename unknown>:0 at c.c (MongoDB.Driver.MongoDatabase A_0) [0x00000] in <filename unknown>:0 at Deadline.StorageDB.RepositoryStorage..ctor (System.String repoPath) [0x00000] in <filename unknown>:0 at Deadline.StorageDB.RepositoryStorage..ctor () [0x00000] in <filename unknown>:0 at Deadline.Controllers.DataController..ctor () [0x00000] in <filename unknown>:0 at Deadline.Slaves.SlaveManager.Connect (Boolean guiMode) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

This is the main error. Can you double check that mongo is running on that machine, and that your client machine can connect to it? You can open a command prompt and try pinging it using “bumdc.skylinepost.lan” as the host.

Cheers,

  • Ryan

Mongo is not running on that machine: Here’s what I get when I try to start it

Wed Oct 9 14:04:57 [initandlisten] MongoDB starting : pid=96084 port=27017 dbpath=/data/db/ 32-bit host=bumdc.skylinepost.lan Wed Oct 9 14:04:57 [initandlisten] Wed Oct 9 14:04:57 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data Wed Oct 9 14:04:57 [initandlisten] ** see http://blog.mongodb.org/post/137788967/32-bit-limitations Wed Oct 9 14:04:57 [initandlisten] ** with --journal, the limit is lower Wed Oct 9 14:04:57 [initandlisten] Wed Oct 9 14:04:57 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000 Wed Oct 9 14:04:57 [initandlisten] Wed Oct 9 14:04:57 [initandlisten] db version v2.2.0, pdfile version 4.5 Wed Oct 9 14:04:57 [initandlisten] git version: f5e83eae9cfbec7fb7a071321928f00d1b0c5207 Wed Oct 9 14:04:57 [initandlisten] build info: Darwin bs-osx-106-i386-1.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_49 Wed Oct 9 14:04:57 [initandlisten] options: { journal: true } Wed Oct 9 14:04:57 [initandlisten] exception in initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating Wed Oct 9 14:04:57 dbexit: Wed Oct 9 14:04:57 [initandlisten] shutdown: going to close listening sockets... Wed Oct 9 14:04:57 [initandlisten] shutdown: going to flush diaglog... Wed Oct 9 14:04:57 [initandlisten] shutdown: going to close sockets... Wed Oct 9 14:04:57 [initandlisten] shutdown: waiting for fs preallocator... Wed Oct 9 14:04:57 [initandlisten] shutdown: lock for final commit... Wed Oct 9 14:04:57 [initandlisten] shutdown: final commit... Wed Oct 9 14:04:57 [initandlisten] shutdown: closing all files... Wed Oct 9 14:04:57 [initandlisten] closeAllFiles() finished Wed Oct 9 14:04:57 [initandlisten] shutdown: removing fs lock... Wed Oct 9 14:04:57 [initandlisten] couldn't remove fs lock errno:9 Bad file descriptor Wed Oct 9 14:04:57 dbexit: really exiting now

Take a look at the first answer here:
stackoverflow.com/questions/5798 … he-mongodb

As explained there, the first thing to try is changing the permissions on the lock file and then try starting Mongo again. If that doesn’t work, delete the lock file, run a repair command, and then try running Mongo again.

Hope that helps!

  • Ryan
Privacy | Site terms | Cookie preferences