Skip to content

Error message when running on the wrong project could be clearer? #669

@chrisb13

Description

@chrisb13

So I was just doing a run of this:

And Angus runs on project g40 (link) whereas I need to run on tm70, once I changed this everything worked fine:

[cyb561.gadi-login-03: angus-global-8km]$ payu run
laboratory path:  /scratch/x77/cyb561/access-om3
binary path:  /scratch/x77/cyb561/access-om3/bin
input path:  /scratch/x77/cyb561/access-om3/input
work path:  /scratch/x77/cyb561/access-om3/work
archive path:  /scratch/x77/cyb561/access-om3/archive
Found experiment archive: /scratch/x77/cyb561/access-om3/archive/angus-global-8km-expt-cdc850ab
Loading input manifest: manifests/input.yaml
Loading restart manifest: manifests/restart.yaml
Loading exe manifest: manifests/exe.yaml
payu: Found modules in /opt/Modules/v4.3.0
qsub -q normalsr -P tm70 -l walltime=05:00:00 -l ncpus=4992 -l mem=24576GB -l jobfs=10GB -N 8km_jra_ryf -l wd -j n -v PAYU_PATH=/g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin,MODULESHOME=/opt/Modules/v4.3.0,MODULES_CMD=/opt/Modules/v4.3.0/libexec/modulecmd.tcl,MODULEPATH=/g/data/vk83/modules:/etc/scl/modulefiles:/opt/Modules/modulefiles:/opt/Modules/v4.3.0/modulefiles:/apps/Modules/modulefiles -l storage=gdata/vk83+gdata/x77+scratch/x77 -- /g/data/vk83/./apps/conda_scripts/payu-1.2.1.d/bin/launcher.sh /g/data/vk83/./apps/base_conda/envs/payu-1.2.1/bin/python3.10 /g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin/payu-run
158862370.gadi-pbs

but I had this error when originally trying on Angus' g40:

[cyb561.gadi-login-03: angus-global-8km]$ payu run
laboratory path:  /scratch/x77/cyb561/access-om3
binary path:  /scratch/x77/cyb561/access-om3/bin
input path:  /scratch/x77/cyb561/access-om3/input
work path:  /scratch/x77/cyb561/access-om3/work
archive path:  /scratch/x77/cyb561/access-om3/archive
Found experiment archive: /scratch/x77/cyb561/access-om3/archive/angus-global-8km-expt-cdc850ab
Loading input manifest: manifests/input.yaml
Loading restart manifest: manifests/restart.yaml
Loading exe manifest: manifests/exe.yaml
payu: Found modules in /opt/Modules/v4.3.0
qsub -q normalsr -P g40 -l walltime=05:00:00 -l ncpus=4992 -l mem=24576GB -l jobfs=10GB -N 8km_jra_ryf -l wd -j n -v PAYU_PATH=/g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin,MODULESHOME=/opt/Modules/v4.3.0,MODULES_CMD=/opt/Modules/v4.3.0/libexec/modulecmd.tcl,MODULEPATH=/g/data/vk83/modules:/etc/scl/modulefiles:/opt/Modules/modulefiles:/opt/Modules/v4.3.0/modulefiles:/apps/Modules/modulefiles -l storage=gdata/vk83+gdata/x77+scratch/x77 -- /g/data/vk83/./apps/conda_scripts/payu-1.2.1.d/bin/launcher.sh /g/data/vk83/./apps/base_conda/envs/payu-1.2.1/bin/python3.10 /g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin/payu-run
Traceback (most recent call last):
  File "/g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin/payu", line 10, in <module>
    sys.exit(parse())
  File "/g/data/vk83/apps/base_conda/envs/payu-1.2.1/lib/python3.10/site-packages/payu/cli.py", line 49, in parse
    run_cmd(**args)
  File "/g/data/vk83/apps/base_conda/envs/payu-1.2.1/lib/python3.10/site-packages/payu/subcommands/run_cmd.py", line 116, in runcmd
    job_id = cli.submit_job('payu-run', pbs_config, pbs_vars)
  File "/g/data/vk83/apps/base_conda/envs/payu-1.2.1/lib/python3.10/site-packages/payu/cli.py", line 173, in submit_job
    result = subprocess.run(shlex.split(cmd), capture_output=True, check=True)
  File "/g/data/vk83/apps/base_conda/envs/payu-1.2.1/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['qsub', '-q', 'normalsr', '-P', 'g40', '-l', 'walltime=05:00:00', '-l', 'ncpus=4992', '-l', 'mem=24576GB', '-l', 'jobfs=10GB', '-N', '8km_jra_ryf', '-l', 'wd', '-j', 'n', '-v', 'PAYU_PATH=/g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin,MODULESHOME=/opt/Modules/v4.3.0,MODULES_CMD=/opt/Modules/v4.3.0/libexec/modulecmd.tcl,MODULEPATH=/g/data/vk83/modules:/etc/scl/modulefiles:/opt/Modules/modulefiles:/opt/Modules/v4.3.0/modulefiles:/apps/Modules/modulefiles', '-l', 'storage=gdata/vk83+gdata/x77+scratch/x77', '--', '/g/data/vk83/./apps/conda_scripts/payu-1.2.1.d/bin/launcher.sh', '/g/data/vk83/./apps/base_conda/envs/payu-1.2.1/bin/python3.10', '/g/data/vk83/apps/base_conda/envs/payu-1.2.1/bin/payu-run']' returned non-zero exit status 32.

Maybe this error could be clearer? This strikes me as the kind of thing new users run up against all the time.

I had a skim through the issues but couldn't see anything related to this -- sorry if I missed it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueRelatively simple issue that would be a good someone who is new to payu

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions