# Migration to MASS failed due to undefined ROSE\_TASK\_CYCLE\_TIME

**URL:** https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127
**Category:** Rose/Cylc and FCM
**Created:** [15 July 2021 11:13 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127 "2021-07-15T11:13:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![vanniere](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vanniere](https://cms-helpdesk.ncas.ac.uk/u/vanniere)
#### Post date: [15 July 2021 11:13 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/1 "2021-07-15T11:13:06Z")

</div>

Hi CMS

I am running the suite u-cg162 on the ecmwf machine. After post-processing, the outputs should be moved to MASS. The transfer to MASS failed due to an undefined environment variable :

[FAIL] [UNDEFINED ENVIRONMENT VARIABLE] ROSE\_TASK\_CYCLE\_TIME

u-cg162 is a copy of u-bv806 with minor changes in the um physical settings. u-bu806 had no trouble executing the file transfer with moose a few months ago.

I found that the ticket [#3055](http://cms.ncas.ac.uk/ticket/3055) reported a similar error on Archer, which was due to an update of the rose version. I am not sure how to check the consistency of the rose version I use.

Many thanks  
Benoit

---

<div class="post-metadata">

### Author: ![AnnetteOsprey](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/annetteosprey/32/27_2.png) [@AnnetteOsprey](https://cms-helpdesk.ncas.ac.uk/u/AnnetteOsprey)
#### Post date: [15 July 2021 12:43 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/2 "2021-07-15T12:43:05Z")

</div>

Hi Benoit,

The issue with that ticket was a mismatch in rose version from the machine where you submit the suite (puma), and the HPC (Archer). So it might be a similar issue for you. I can’t seem to log in to ECMWF right now. Can you try checking the rose versions on ecgate and the HPC by running the following on both machines:

`rose -V`

Annette

---

<div class="post-metadata">

### Author: ![vanniere](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vanniere](https://cms-helpdesk.ncas.ac.uk/u/vanniere)
#### Post date: [15 July 2021 13:09 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/3 "2021-07-15T13:09:54Z")

</div>

Hi Annette

rose -v gives the same version of rose on both sides ( ecgate / hpc ) :  
Rose 2019.01.3 (/perm/ms/gb/frmi/rose-2019.01.3)

This is the same version that appears at the start of both jobs (the one which worked a few months ago and the one which fails now).

Thanks  
Benoit

---

<div class="post-metadata">

### Author: ![AnnetteOsprey](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/annetteosprey/32/27_2.png) [@AnnetteOsprey](https://cms-helpdesk.ncas.ac.uk/u/AnnetteOsprey)
#### Post date: [19 July 2021 10:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/4 "2021-07-19T10:12:31Z")

</div>

Hi Benoit,

I have had a look on ECMWF and I’m not quite sure what is going on. Can you try adding a couple of debugging lines to that job script and re-running it directly.

Go to the directory `~ukbv/cylc-run/u-cg162/log/job/20160801T0000Z/moose_only/04`

And edit the `job` file to add some lines just before the `rose task-run` line, as follows:

```auto
# SCRIPT:
env
rose -V
rose task-run ...

```

Then just submit the job script: `qsub job`. It should overwrite the previous `job.out` and `job.err` when it’s done.

Annette

---

<div class="post-metadata">

### Author: ![vanniere](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vanniere](https://cms-helpdesk.ncas.ac.uk/u/vanniere)
#### Post date: [19 July 2021 12:47 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/5 "2021-07-19T12:47:09Z")

</div>

Hi Annette

I think the job is failing before reaching #SCRIPT as I didn’t get any change when I added the extra commands after #SCRIPT. So I added “env” and “rose -V” after # ENV-SCRIPT too.

Among the environment variables is listed :  
ROSE\_VERSION=2019.01.3  
However, ROSE\_TASK\_CYCLE\_TIME is not listed.

rose -V gives  
Rose 2019.01.3 (/perm/ms/gb/frmi/rose-2019.01.3)

Thanks  
Benoit

---

<div class="post-metadata">

### Author: ![AnnetteOsprey](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/annetteosprey/32/27_2.png) [@AnnetteOsprey](https://cms-helpdesk.ncas.ac.uk/u/AnnetteOsprey)
#### Post date: [22 July 2021 15:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/6 "2021-07-22T15:06:56Z")

</div>

Hi Benoit,

After a lot of investigating, the problem seems to be due to a recent upgrade to the default python2 module. The new version works OK on the normal nodes, but not the moose nodes which are a different architecture.

The simplest solution would just be to revert to the older module. Edit your `.user_profile` to specify:

```auto
module load python/2.7.15-01

```

Annette

---

<div class="post-metadata">

### Author: ![vanniere](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vanniere](https://cms-helpdesk.ncas.ac.uk/u/vanniere)
#### Post date: [22 July 2021 15:15 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/7 "2021-07-22T15:15:34Z")

</div>

Hi Annette

Thank you very much for your time on that issue!  
I’ll make that change.

All the best  
Benoit

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)
#### Post date: [24 July 2021 15:15 UTC](https://cms-helpdesk.ncas.ac.uk/t/migration-to-mass-failed-due-to-undefined-rose-task-cycle-time/127/8 "2021-07-24T15:15:34Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
