Event Plugin: Value cannot be null. (Parameter 'str')

Man! I’ve tried everything to get my first event plugin to work properly, but i just can’t and keep getting the same error:

Event plugin ‘DynamicWorkerAssignment’ could not be loaded from the repository because: Error executing event plugin script “/home/#####/Thinkbox/Deadline10/cache/mGH22lQ6hbitSqhkBfhSHxYeyQ/custom/events/DynamicWorkerAssignment/DynamicWorkerAssignment.py”: Value cannot be null. (Parameter ‘str’) (Deadline.Events.DeadlineEventPluginException)

I’ve even deleted all my callbacks and their corresponding methods, and using “pass” in the DeadlineEventListener instance’s init and Cleanup() method - but to no avail.

Is this error a result of something in my python? something in the param? something else entirely? The script is getting deployed, so I am at a loss as to why everything I’m doing comes back with the same error.

I am sure it’s got to be something dumb! What am I missing?

That error message looks similar to when we were mangling the path to application plugin code a couple versions back - if you go to the path in the error is the .py file present and readable by the user that’s running the deadlineworker.exe?

As a sanity check, I’ve attached an event plugin that triggers on every event and prints about it. It’s working on my 10.3.0.15 install. The only option is to enable it in the Monitor under Tools → Configure Events → EventChatter.

EventChatter.zip (1.3 KB)

Once that’s in place restart the Worker to force it to pull a new cache (or clear out the /home/#####/Thinkbox/Deadline10/cache/ directory) and lets see how it behaves. If it works and your script still doesn’t then there’s something amiss in your code.

To test your script, add a __main__() to the bottom and see if the script will load at all when you call it with /opt/Thinkbox/Deadline10/bin/deadlinecommand -executescript DynamicWorkerAssignment.py.

I was wondering if it was an issue with the version, we’re still on 10.1, however, this is a test environment so I can update the docker images to 10.3 and see if that works.

Thanks!

(this is the same person as the OP - I had some difficulty with my account)

That script will also work in 10.1, at least it should. Are you using a Remote Connection Server for the Workers? If you’re not, make sure the container you’re running the Worker inside of has access to the DeadlineRepository10\custom\events\ directory and its children.

Yes. The worker that this test is running on is using RCS.

I guess I’ll add main() and see what when I try running it manually.

Hi @Justin_B I have no idea what happened, but the error is no longer showing after restart.

I’ll keep an eye on it.

1 Like