Job composer error related to "cannot be a parent of the destination directory errors"

OOD version: 4.0.5

I’m getting the following error when trying to create a job using the Job Composer. This seemed to work just fine in 4.0.3 I’m not sure if something might have changed.

Please fix the errors below.

Staging template dir Source Path (/shared/home/Admin) cannot be a parent of the destination directory (/shared/home/Admin/ondemand/data/sys/myjobs/projects/default/4).

Yes this was a bug. You’re trying to copy your entire HOME into a folder that’s also in your HOME. This can lead to really bad recursion errors, especially when your HOME directory is very large.

Thanks Jeff, does this mean my source path (where my script lives) needs to be outside of this path? I’m confused on how I’d go about addressing this. In my environment the /shared directory is an EFS file system that I want to keep my scripts located.

It just can’t be a direct ancestor of where you’re trying to copy to.

~/scripts could work because the directory scripts isn’t an an ancestor of ~/ondemand

You beat me to it! I moved the script into a /shared/scripts folder. Thanks!!!

Nice! But you don’t need to be outside of your HOME. /shared/home/Admin/scripts (i.e., ~/scripts) should work.

I don’t know if everyone at your center will have the privilege to write to /shared, so that’s something to keep in mind for your customers.