Skip to content

[bug] "Error with azhpc-scp command in apps/wrf/readme.md : -r flag unrecognized" #711

@negin513

Description

@negin513

Describe the bug

We have identified an issue in the apps/wrf/readme.md file related to the azhpc-scp command.
The following line is causing errors when attempting to copy files to the Azure HPC cluster.

azhpc-scp -r $azhpc_dir/apps/. hpcuser@headnode:.

The resulting error message indicates that the -r flag is not recognized by azhpc-scp:

azhpc-scp -r $azhpc_dir/apps/. hpcuser@headnode:.

usage: azhpc [-h]
             {build,connect,destroy,run_install,get,init,preprocess,run,scp,status,slurm_resume,slurm_suspend}
             ...
azhpc: error: unrecognized arguments: -r

Solution

After further testing different combinations, we have determined that adding -- before the-r flag resolves the issue. Therefore, we recommend modifying this command in the README.md file as follows:

azhpc-scp -- -r $azhpc_dir/apps/. hpcuser@headnode:.

To Reproduce
After creating a cluster, following the the app/wrf/README.md file, attempt to copy files to the Azure HPC cluster using the command provided in the README

Additional context
Another way around this is using a simple scp -r.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions