FATAL: container creation failed

Has anyone else come across with this error when submitting PBS jobs on a loop?

FATAL:   container creation failed: mount /proc/self/fd/10->/opt/nci/singularity/3.11.3/var/singularity/mnt/session/overlay-images/0 error: while mounting image /proc/self/fd/10: failed to mount squashfs filesystem: file exists

I am running a bunch of different particle tracking experiments that loop many PBS jobs, and after some time these experiments start exiting with this error. NCI’s advice was to resubmit and try again, but I found that once its appeared, it keeps coming back every job resubmission.

I can see its being an issue at some point with payu, and seems it was fixed.. so I was wondering if it could be fixed in general too :rofl:

Thanks in advance

Hi @JuliaN!

Thanks for submitting your query. I’ll see if someone at ACCESS-NRI has seen it before.

Is the loop inside the PBS job? Do you mind sharing the code that you’re running that’s causing the problem?

Hi @JuliaN,

are you using payu to run your experiments? If so, which version are you using?

Also, which PBS commands are you running?

Cheers
Davide

I’ve seen this a lot in ACCESS suites of various flavours; the solution is to re-trigger the task.

I think @Scott might be able to explain it.

If I recall right those errors were about not being able to find a spool file so I think they were a little different, though resubmitting would generally fix the issue.

Maybe check if all the failed runs are going to the same node? The node a job runs on should be listed in the PBS output. Are your jobs using a whole node or only part of one?

Thanks everyone! Just clarify, that I’m not using payu and I’m not running ACCESS. The (simplified) script I’ve used to submit my PBS jobs is like this:

#!/bin/bash
#PBS -N cdw_particles
#PBS -P x77
#PBS -q normalbw
#PBS -l walltime=10:00:00
#PBS -l mem=240GB
#PBS -l software=netcdf
#PBS -l ncpus=24
#PBS -l jobfs=20GB
#PBS -l storage=gdata/x77+gdata/xp65+gdata/cj50+scratch/v45+scratch/x77
#PBS -j oe
#PBS -l wd
#PBS -v sector,count,max_loops

# load conda
module use /g/data/xp65/public/modules
module load conda/analysis3-25.08

# Loop number with zeros to get correct sorting of directories:
padded_count=$(printf "%05d" "$count")

padded_count_prev=$(printf "%05d" $((count - 1)))

# set max number of time loops to run:
n_loops=$max_loops
ncpu=24

log_file=/home/561/jn8053/scripts/01-CDW_Pathways/particle_tracking/release_1000m/sector${sector}/log_${padded_count}.out

# Run parcels using MPI:
mpirun -np $ncpu python $python_filename $sector $count &>> $log_file
echo "Finished running parcels for sector $sector, loop $count"

if [ -d ${output_dir}/CDWParticles.zarr ]; then
    
    python postprocessing.py $sector $count &>> $log_file
    rm -r ${output_dir}/proc*.nc
    # Stop the job if the postprocessing script fails to save:
    if [ $? -ne 0 ]; then
        echo "ERROR: postprocessing script failed. Stopping PBS job."
        exit 1
    fi
    echo "Finished postprocessing for sector $sector, loop $count"

    if [ $count -gt 0 ]; then
        python babysitting.py $sector $count &>> $log_file
        # Stop the job if the particles go missing without reason:
        if [ $? -ne 0 ]; then
            echo "ERROR: particles are missing. Stopping PBS job."
            exit 1
        fi
        echo "Finished babysitting for sector $sector, loop $count"
    fi

    # Tar output, remove merged zarr to avoid inode issues:
    if [[ $count -lt $n_loops && $count -gt 0 && -f ${output_dir}/CDWParticles.nc ]]; then
        padded_count_prev=$(printf "%05d" $((count - 1)))
        rm -r $previous_output_dir/CDWParticles_merged.zarr
        qsub -v sector=${sector},count=${count} tar_output.sh
        echo "Finished tarring output for sector $sector, loop $count"
    fi

    # increment count and resubmit:
    count=$((count+1))
    if [ $count -lt $n_loops ]; then 
        cd $script_dir
        qsub -v sector=${sector},count=${count},max_loops=${n_loops} submit_one_job.sh
        echo "Submitted next job for sector $sector"
    fi
fi

exit

The error occurrs when when the tarring script should be submitted. I have very silly of me deleted all my PBS outputs :frowning: :frowning: :frowning: and have now finished running these jobs, but I’ll re-run a couple see if it pops up again and post.