[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Change the HOME directory using wrapper script



Hi Vikrant,

It looks like condor itself is complaining that it cannot change directory to "/apps/ttech/vaggarwal".  It failed to execute the wrapper itself.

It looks "initialdir" is being set somewhere, particularly as the executable name is  /apps/ttech/vaggarwal/sleepjob/sleep.sh.

Brian

PS - what job universe are you using?

> On Jul 10, 2019, at 5:05 AM, Vikrant Aggarwal <ervikrant06@xxxxxxxxx> wrote:
> 
> Hello Team,
> 
> We have simple wrapper to change the HOME but sometimes job fails with the following error:
> 
> $ cd /apps/ttech/vaggarwal/sleepjob
> $ cat sleep.sub 
> executable = sleep.sh
> should_transfer_files   = Yes
> log = sleepjob.log
> request_cpus = 1
> queue 1
> $ condor_submit sleep.sub
> 
> Error from slot1_2@testmachine: Failed to execute '/usr/local/bin/condor_wrapper.sh' with arguments /apps/ttech/vaggarwal/sleepjob/sleep.sh: Cannot access initial working directory "/apps/ttech/vaggarwal" (errno=2: 'No such file or directory')
> 
> This is not observed every-time. 
> 
> USER_JOB_WRAPPER: /usr/local/bin/condor_wrapper.sh
> 
> #!/bin/bash
> export HOME=/spare/tmp/`whoami`
> [ -d "$HOME" ] || mkdir "$HOME" >/dev/null
> exec "$@"
> 
> Any suggestion on changing the HOME without breaking anything will be highly appreciated.
> 
> Thanks & Regards,
> Vikrant Aggarwal
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/