Permission denied Error during SAm_4km_RA2T_um_surf_ostia step

I am running suite u-dx731 on ARCHER2, which is itself a copy of u-ds822, which runs fine on my colleagues’ setup.

When I run u-dx731, I get the following error during the SAm_4km_RA2T_um_surf_ostia step of the workflow. This is the entirety of the job.err file:

The following have been reloaded with a version change:
  1) cce/16.0.1 => cce/15.0.0     2) cray-mpich/8.1.27 => cray-mpich/8.1.23

[FAIL] [Errno 13] Permission denied: './rose-app-run.confUXDj4n'
2026-03-19T14:38:40Z CRITICAL - failed/ERR

It seems to have a permission error when writing a temporary file. I assume there must be an incorrect setting somewhere in my configuration which is causing it to try and write to a directory I do not own, but I can’t work out even which directory it is trying to write to.

Any help or suggestions welcome.

Scott

Hi Scott,

Can you point to the log file where you see this error?

Thanks,

Annette

Hi Annette,

Thank you for getting back so quickly.

You can find it here on ARCHER2:

/home/n02/n02/scottan/cylc-run/u-dx731/run1/log/job/20091009T0000Z/SAm_4km_RA2T_um_surf_ostia/03

Many thanks,

Scott

Hi Annette,

I’ve been able to identify what the issue was and get past this step.

The job script, generated from /home/n02/n02/scottan/roses/u-dx731/suite-runtime/lam.rc contained this line:

cd /work/n02/n02/lowe/ancils/original_run/u-cr358 && . ./ancil_versions

Which seems necessary because ancil_versions uses pwd to work out the path to the ancils. I would have thought avoiding use of pwd in ancil_versions would be cleaner code and avoid these kinds of errors.

Anyway, it doesn’t seem to leave that directory and I don’t have write access to it, so at some point it fails. I added the line:

cd ${CYLC_RUN_DIR}/${CYLC_WORKFLOW_ID}

afterwards which seems to have worked - it’s ended up making a copy of rose-app-run.conf in /work/n02/n02/scottan/cylc-run/u-dx731/run1 which I hope is harmless.

This let me get past this error anyway, but let me know if you can think of a cleaner solution.