MS 2020 slurm jobs failing

Hi everyone. I'm running MS 2020 server (rev 20.1.0.2728) on CentOS 7.9 and having issues with jobs failing when running through slurm queuing system (version 18.08.8).

The output from slurm.out is

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_GB.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Run: /home/msi/BIOVIA/MaterialsStudio20.1/bin/perl /home/msi/BIOVIA/MaterialsStudio20.1/etc/Gateway/root_default/dsd/servers/MatServer.pl -standalone -fromdsd fromdsd.txt -todsd todsd.txt
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_GB.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

but I checked my perl locale settings very carefully (as user msi, who is running slurm jobs) and the relevant environment variables are correctly set (both manually and in .bashrc for user msi)

# enable en_GB locale w/ UTF-8 encodings if not already configured
: \${LANG:="en_GB.UTF-8"}
: \${LANGUAGE:="en"}
: \${LC_CTYPE:="en_GB.UTF-8"}
: \${LC_ALL:="en_GB.UTF-8"}
export LANG LANGUAGE LC_CTYPE LC_ALL

I can also run command ./perl -e exit

without any error using either Gateway or system versions of perl.

The error seems to only affect jobs which rely on MatServer.pl to run. I can run jobs like CASTEP fine (although these give the same locale error as shown above). This leads me to suspect that error is not due to locale settings.

If anyone can help, I'd be happy to PM you the gateway address so you can take a look at the full input/output.

thanks.

James