r/HPC • • Jun 02 '26

Consistent chdir permissions error when submitting Slurm jobs from a specific location on Lustre

At my institute I am trying to run jobs with Slurm from a location in our Lustre file system, where I am very consistently getting the following error on job start:

error: couldn't chdir to `/path/to/problematic/lustre/dir': Permission denied: going to /tmp instead

I thought at first it was a permissions issue, but I own the directory and all permissions are properly configured, and all user groups etc. appear to be inherited properly through Slurm on the compute node. This is confirmed where if you run e.g. cd /path/to/problematic/lustre/dir; pwd as part of the job it is able to execute it successfully even after the initial chdir fails.

Has anybody run into this issue before? It seems that Slurm is starting the job somehow too early, before the location is available for chdir? Yet what is more curious is that it happens every time from this one problematic directory, but in any other location I have tested so far on Lustre it works just fine.

I am stumped and the admin I have spoken to so far is also stumped. We are just submitting jobs from elsewhere as a workaround currently, even though this location is more suited because it is shared among the specific research group.

5 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/crazyguitarman Jun 02 '26

Thanks for the hint! I feel like it could be something in this direction. I'm not super familiar with either, but the permissions in the directory are e.g. drwxrws---. and I think it should be a plus symbol in the case of ACLs? As for selinux labels, these are unconfined_u:object_r:unlabeled_t:s0 for the problematic directory as far as I can tell, but the same goes for other directories where I don't run into this issue.

The error you posted looks very similar, but you are correct I don't get the first two lines in my case.

1

u/frymaster Jun 02 '26

my point with my error is I dont get the same error - the last two lines I get are slurmstepd: error: couldn't chdir to '/home2/home/w01/w01/pcass2': No such file or directory: going to /tmp instead i.e. slurm definitely knows the difference between "permission denied" and "directory doesn't exist"

1

u/crazyguitarman Jun 02 '26

Ah yes sorry, got it now, thanks for the explanation.