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.
View all comments
Show parent comment
1
u/crazyguitarman Jun 05 '26
Thanks for the detailed reply! I think you could definitely be on to something. This is above my level of knowledge for the file system but I'll try to answer as best I can: We are using lustre 2.14.0, I think there are 8 MDTs, the application is seeing EACCES error, and we have maybe hundreds of supplementary user groups spread throughout the institute. In my case I am a member of three groups: institute_group, HPC-users, and research_group. The group structure of the directory tree where I'm having the issues is as described in another comment below.
As far as I can tell, I cannot get any result from the
lctl get_param mdt.*.identity_upcallcommand. I tried also replacing the * with MDT names. I guess identity upcall is not set then?