Skip to content

File path error when running through singularity/apptainer #92

@steob92

Description

@steob92

When defining temporary file paths, we're not checking if for if the analysis will be ran through apptainer:

cp -v "$FLIST" "$TEMPDIR"
FLIST="${TEMPDIR}/$(basename $FLIST)"
cp -v "$RUNP" "$TEMPDIR"
cp -v $(dirname $RUNP)/$(grep TIMEMASKFILE $RUNP | awk '{print $3}') "$TEMPDIR"
RUNP="${TEMPDIR}/$(basename $RUNP)"

As a result apptainer will search /opt/TEMPDIR/path/to/local/tmp/dir/ for temporary run parameters and runlists.

Need to check before running anasum with something like:

if [ -n "$EVNDISP_APPTAINER" ]; then
    RUNP="/opt/TEMPDIR/$(basename $RUNP)"
    FLIST="/opt/TEMPDIR/$(basename $FLIST)"
fi

There might be similar issues for evndisp and mscw stage processing.
ToDo:

  • Check helper scripts for similar issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions