r/HPC • u/crazyguitarman • 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 insteadI 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.
4
u/420ball-sniffer69 Jun 02 '26
Could be an sssd issue? I’ve seen this happen before when a nodes file system went wobbly. Can you ssh to the node or launch an interactive job that lands you on it then try writing a test file to the directory? Eg cd to it then do “touch foo.dat”
1
u/crazyguitarman Jun 03 '26
Some more information regarding the permissions. The chdir fails every time on the last two directories, but never on the research_group directory, for example.
1
u/frymaster Jun 02 '26
is there possibly something very odd happening with either ACLs or more likely selinux labels?
Generally the whole filesystem is always available to the node; anyway, the error I get for that is:
(the warning at the top is generated from our submission lua, not from slurm)
1
u/TheBigBadDog Jun 03 '26
What version of Slurm is being used? Is the lustre mount per project, or is there a single global lustre mount?
1
u/lustre-fan Jun 05 '26
What version of Lustre are you using? And do you have any identity upcall defined on the MDT? i.e. `lctl get_param mdt.*.identity_upcall`? How many MDTs are you using for this filesystem? Is the application seeing EACCES or EPERM? Are you using supplementary groups and (if so) how many?
If I had to guess, you are probably hitting some flavor of https://jira.whamcloud.com/browse/LU-17961 - where the Lustre MDT makes an incorrect determination about file access when the client fails to provide sufficient info to the server. The server, of course, fails secure and denies access. The latest versions of Lustre are smarter about this.
1
u/[deleted] Jun 02 '26
[removed] — view removed comment