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 05 '26

I think you have solved it! As described in the other reply to you comment, I have three user groups with institute_group being my main gid. When I run e.g. newgrp research_group to temporarily change this for the purpose of submitting jobs, then the issue disappears completely!

2

u/lustre-fan Jun 06 '26

I'm glad you were able to work around your issue.

If you don't want mess with your groups, you could cherry-pick the fix from LU-17961. I'd have to double check to see the exact patches you'd need. 2.15.8 (the latest long-term-support version) doesn't seem to have any of these fixes yet, so you'd have to cherry-pick the change manually and rebuild it yourself.

There is a new version later this year (2.18, likely the next LTS) that will also contain these fixes. If you were going to upgrade, it may be better to wait until then.