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

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



Some more information:

$ condor_version
$CondorVersion: 8.6.13 Oct 30 2018 BuildID: 453497 $
$CondorPlatform: x86_64_RedHat7 $

We never encountered this issue in Centos 6, it's happening with Centos 7.

Thanks & Regards,
Vikrant Aggarwal


On Wed, Jul 10, 2019 at 3:35 PM 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