Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
negin513 opened this issue Mar 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@negin513
Copy link

negin513 commented Mar 24, 2023

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.

@negin513 negin513 added the bug Something isn't working label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant