rose command not found when running a bash script from PUMA2

Hi,

I am finding the bizarre below rose command not found when running an sh script from PUMA2.

I was wondering if I need to load somehow through a source command the rose commands and how?

See the error fix below

Emanuele

[egentile@puma2 u-cm655]$ ./submit_tests.sh

SUBMIT_CASE: Running command

rose suite-run -O CANARI_naew-11 -n u-cm655_da191_20081229-W_naew-11 --define [jinja2:suite.rc]BASIS=2008,12,01,00,00,00 --define [jinja2:suite.rc]RUNLEN=0,0,60,0,0,0 --define [jinja2:suite.rc]DUMPDAY=25 --define [jinja2:suite.rc]CANARI_GCM_ENS_NUMBER=“23” --define [jinja2:suite.rc]CANARI_GCM_VARIANT_LABEL=“r23i5p2f1” --define [jinja2:suite.rc]CANARI_GCM_ID=“da191” --define [jinja2:suite.rc]CANARI_CASE_ID=‘20081229-W’ --define [jinja2:suite.rc]SCENARIO=‘historical’

[INFO] export CYLC_VERSION=7.8.12

[INFO] export ROSE_ORIG_HOST=puma2.archer2.ac.uk

[INFO] export ROSE_SITE=

[INFO] export ROSE_VERSION=2019.01.3

[INFO] create: log.20250805T174028Z

[INFO] delete: log

[INFO] symlink: log.20250805T174028Z <= log

[INFO] log.20250805T173553Z.tar.gz <= log.20250805T173553Z

[INFO] delete: log.20250805T173553Z/

[INFO] create: log/suite

[INFO] create: log/rose-conf

[INFO] symlink: rose-conf/20250805T184028-run.conf <= log/rose-suite-run.conf

[INFO] symlink: rose-conf/20250805T184028-run.version <= log/rose-suite-run.version

[INFO] REGISTERED u-cm655_da191_20081229-W_naew-11 → /home/n02/n02/egentile/cylc-run/u-cm655_da191_20081229-W_naew-11

[FAIL] ssh -oBatchMode=yes -oStrictHostKeyChecking=no -oConnectTimeout=8 -n ln03 env\ ROSE_VERSION=2019.01.3\ CYLC_VERSION=7.8.12\ bash\ -l\ -c\ '"$0"\ "$@"'\ rose\ suite-run\ -vv\ -n\ u-cm655_da191_20081229-W_naew-11\ –run=run\ –remote=uuid=b357fcd6-f0e5-46c8-a494-3e7272ee0993,now-str=20250805T174028Z,root-dir='$DATADIR',root-dir{share}='/mnt/lustre/a2fs-nvme/work/n02/n02/$USER',root-dir{work}='/mnt/lustre/a2fs-nvme/work/n02/n02/$USER' # return-code=127, stderr=

[FAIL] rose: rose: command not found

Hi,

Is this the first suite you are running? Have you followed the setup instructions from here: Unified Model on ARCHER2,

especially :

Setup your ARCHER2 environment. Ensure you have the following line in your ~/.bash_profile on ARCHER2:
. /work/y07/shared/umshared/bin/rose-um-env-puma2

Hi,

This is my ~/.bash_profile, but I create it in puma2 not in archer. IN archer I only have login node

Ensure persistent ssh-agent

. $HOME/.ssh/ssh-setup

[[ $- == i ]] && . ~/.bashrc

. /work/y07/shared/umshared/bin/rose-um-env-puma2

Yes first time running it

Emanuele

Ok, for first time use/ set up the central .profile needs to be copied over on ARCHER2 also, see here (and the other set up instructions).

Mohit

Hi I managed to fix it now!

Thanks for the help feel free to close the ticket!

Emanuele