Closed bdeck8317 closed 2 years ago
Hi @bdeck8317,
In your design file, the path to the design is design=/home/bdeck8317_gmail_com/$xcp_dir/fc-36p_despike.dsn
If I understand correctly and this script is running from your home directory, your batch script seems to save the designs to /home/bdeck8317_gmail_com/$xcp_dir/designs/fc-36p_despike.dsn
Is there a change in behavior if you change the design path in the dsn file to design=/home/bdeck8317_gmail_com/${xcp_dir}/designs/fc-36p_despike.dsn
?
unfortunately that doesn't solve the problem
@bdeck8317 I think I figured this one out. Maybe the error is being generated because the singularity run command for xcpEngine is trying to parse the docker image as an argument:
SINGULARITY_CMD="singularity run -B $HOME/$xcp_dir xcpEngine.simg "
# Compose the command line
cmd2="${SINGULARITY_CMD} pennbbl/xcpengine:latest -t 3 -d $HOME/$xcp_dir/designs/fc-36p_despike.dsn -c $HOME/$xcp_dir/cohort/cohort.csv -o $HOME/$xcp_dir/xcp_out -i $HOME/$xcp_dir/tmpdir/ "
should work when changed to:
SINGULARITY_CMD="singularity run -B $HOME/$xcp_dir xcpEngine.simg "
# Compose the command line
cmd2="${SINGULARITY_CMD} -t 3 -d $HOME/$xcp_dir/designs/fc-36p_despike.dsn -c $HOME/$xcp_dir/cohort/cohort.csv -o $HOME/$xcp_dir/xcp_out -i $HOME/$xcp_dir/tmpdir/ "
I hope this helps!
@pcamach2 wow, yup, that did it. Thanks so much for pointing that out :/
Hi @a3sha2
Describe the bug Attempting to bind my data directory
Cohort file
Design File Paste your entire design (
.dsn
) file between the triple backticksError message Paste your error message between the backticks
Runtime Information Singularity
Additional context I know this is a binding issue. I have successfully run xcp via docker containers many times. I can't seem to determine what the issue is here and I would like to run using singularity to deploy batch jobs via slurm cluster.
For more context, here is my batch script:
Would appreciate any insights. Really do not understand what the issue is. Have also run singularity containers using batch scripts many times.