azurehpc icon indicating copy to clipboard operation
azurehpc copied to clipboard

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

Open negin513 opened this issue 1 year ago • 0 comments

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.

https://github.com/Azure/azurehpc/blob/4564233cbef51adf0cd99bee47e30b68a754fcf6/apps/wrf/readme.md?plain=1#L15

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.

negin513 avatar Mar 24 '23 16:03 negin513