AWS Thinkbox Discussion Forums

Crontab calling deadlinecommands

Hi,

I have this script here which spawns a subprocess that calls

/opt/Thinkbox/Deadline10/bin/deadlinecommand ConnectToSlaveLog W4221 false

to get access to the the current render log of the machine. This script stoped working when i attempt to add it to a crontab with the following error.

Connecting to W4221…\nDisconnecting while waiting for async connection\nAn unexpected error occurred while interacting with the database Deadline.guru-domain.gurustudio.com:27100:\n (System.InvalidOperationException)\n at (wrapper managed-to-native) System.Reflection.Emit.DynamicMethod:create_dynamic_method (System.Reflection.Emit.DynamicMethod,System.Reflection.Emit.DynamicMethod)\n at System.Reflection.Emit.DynamicMethod.CreateDynMethod () [0x000c5] in :0 \n at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType, System.Object target) [0x00017] in :0 \n at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate () [0x00022] in <5f01f5aacbb346938d6f9b4e69d4383a>:0 \n at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x0001d] in <5f01f5aacbb346938d6f9b4e69d4383a>:0 \n at System.Linq.Expressions.Expression1[TDelegate].Compile () [0x00000] in <5f01f5aacbb346938d6f9b4e69d4383a>:0 \n at MongoDB.Bson.Serialization.BsonMemberMap.GetGetter () [0x0009e] in <c36d7bd1cdcb4fc8b73b48384db8f235>:0 \n at MongoDB.Bson.Serialization.BsonMemberMap.get_Getter () [0x00008] in <c36d7bd1cdcb4fc8b73b48384db8f235>:0 \n at MongoDB.Bson.Serialization.BsonClassMapSerializer1[TClass].GetDocumentId (System.Object document, System.Object& id, System.Type& idNominalType, MongoDB.Bson.Serialization.IIdGenerator& idGenerator) [0x0000f] in :0 \n at MongoDB.Driver.MongoCollection.Save (System.Type nominalType, System.Object document, MongoDB.Driver.MongoInsertOptions options) [0x00038] in <911660d4ddf948b99868a4ee5c9cc260>:0 \n at MongoDB.Driver.MongoCollection.Save (System.Type nominalType, System.Object document, MongoDB.Driver.WriteConcern writeConcern) [0x0000d] in <911660d4ddf948b99868a4ee5c9cc260>:0 \n at MongoDB.Driver.MongoCollection.Save[TNominalType] (TNominalType document, MongoDB.Driver.WriteConcern writeConcern) [0x00000] in <911660d4ddf948b99868a4ee5c9cc260>:0 \n at MongoDB.Driver.MongoCollection`1[TDefaultDocument].Save (TDefaultDocument document, MongoDB.Driver.WriteConcern writeConcern) [0x00000] in <911660d4ddf948b99868a4ee5c9cc260>:0 \n at Deadline.StorageDB.MongoDB.MongoRemoteCommandStorage.SubmitRemoteCommand (System.String id, System.String command, System.String encryptionKey) [0x0006e] in <40972678173641f890556d735938a0e6>:100:

I was wondering if this has something to do how i set up my crontab or does this have to do anything on the deadline side. I remember running into a similiar issue here

when i attempted to run that command through deadline monitor. I’ve attached a code snippet with an example.
test.py (651 Bytes)

Thanks!
Johnny

Privacy | Site terms | Cookie preferences