Error in job submission

Error in job submission

by Anuj Chavan -
Number of replies: 2

Hi Prof. Zon

I have a directory structure like phy1610/hw4 where I have all the project files. Inside the hw4 directory i have set up the run_analysis.sh bash script. 

However, while submitting the job for run_analysis.sh (all in the directory of the code), I get the following errors:

"[lcl_uotphy1610s1049@teach-login01 hw4]$ sbatch run_analysis.sh
SBATCH ERROR: 
 The directory of the job output file ("cl_uotphy1610/lcl_uotphy1610s1049/hw4")
 does not exists. (run_analysis.sh, line #4)
SBATCH: 1 error was found.
SBATCH: Job not submitted because of this error.
SBATCH: For more info see https://docs.scinet.utoronto.ca/index.php/Teach"

Here is my run_analysis.sh script:

#!/bin/bash
#SBATCH --job-name=friction_analysis    # Job name
#SBATCH --output=run_analysis_output.txt    # Output file
#SBATCH --error=run_analysis_error.txt      # Error log
#SBATCH --time=01:00:00                 # Max runtime (1 hr)
#SBATCH --mem=4G                        # Memory allocation
#SBATCH --cpus-per-task=8               # CPU allocation

# Load necessary modules
module load gcc boost rarray

# Generate test model data
./testmodel -f testmodel.dat -a 0.125 -g 9.8 -z 0.0 -v 10.0 -t 16.0 -d 0.25

# Run the analysis
./analyze -f testmodel.dat -o analysis.out

# Indicate completion
echo "Analysis completed. Results saved"

I've been trying to debug this error but haven't found a solution. The error strangely suggests "cl_uotphy1610/lcl_uotphy1610s1049/hw4" which i don't understand. Is the directory not recognized by the login node? or is there an error here that I'm missing out on. My code for the bash script never mentions a folder anywhere.

In reply to Anuj Chavan

Re: Error in job submission

by Anuj Chavan -
I created a test job script test.sbatch which wont work either:

#!/bin/bash
#SBATCH --job-name=test_job
#SBATCH --output=test_output.txt
#SBATCH --error=test_error.txt
#SBATCH --time=00:02:00
#SBATCH --partition=compute

echo "Hello from SLURM!"
pwd
ls -l

with the following similar error:
"sbatch test.sbatch
SBATCH ERROR:
The directory of the job output file ("cl_uotphy1610/lcl_uotphy1610s1049")
does not exists. (test.sbatch, line #4)
SBATCH: 1 error was found.
SBATCH: Job not submitted because of this error.
SBATCH: For more info see https://docs.scinet.utoronto.ca/index.php/Teach"

Is this a SLURM issue?
In reply to Anuj Chavan

Re: Error in job submission

by Ramses van Zon -
Yes, you hit upon a bug in sbatch with the "--error" option. This should be fixed now.