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

cp: cannot create regular file '/wrf/wrfoutput/wrfout_d01_2000-01-24_12:00:00': Permission denied #6

Open
mmelendezb opened this issue Jul 29, 2020 · 3 comments

Comments

@mmelendezb
Copy link

mmelendezb commented Jul 29, 2020

Whenever I try to copy the wrfout_d01_2000-01-24_12:00:00file generated in the sample test run (conus example), the container doesn't allow me to copy the files:
cp wrfout_d01_2000-01-24_12:00:00 /wrf/wrfoutput/
[wrfuser@5a53f7adcedd em_real]$ cp wrfout_d01_2000-01-24_12:00:00 /wrf/wrfoutput/
cp: cannot create regular file '/wrf/wrfoutput/wrfout_d01_2000-01-24_12:00:00': Permission denied
Any suggestions will be really appreciated.
Cheers,
Mishel

@davegill
Copy link
Owner

@Mishelm2
Mishel,
What I have found on some machines is that I need to set the permissions to 777 outside of the container in the targeted directory.

@mmelendezb
Copy link
Author

@Mishelm2
Mishel,
What I have found on some machines is that I need to set the permissions to 777 outside of the container in the targeted directory.

So am I able to solve that by myself following an specific procedure?
Thanks!

@davegill
Copy link
Owner

@Mishelm2
Mishel,
Take a look at this section of the instructions:
https://github.com/davegill/wrf-coop/blob/master/README_user.md#Constrcutcontainers

When you issue the command

docker run -it --name ARW -v /users/gill/DOCKER_STUFF:/wrf/wrfoutput wrf_regtest /bin/tcsh

The first argument after the -v is the host operating system's mapped directory to the container's /wrf/wrfoutput directory. For my example, the host operating system's mapped directory is /users/gill/DOCKER_STUFF.

For me, I would change the permissions of that directory, and then all of the files in that directory.

cd /users/gill/
chmod 777 DOCKER_STUFF
cd DOCKER_STUFF
chmod 777 *

Let me know if this works. I'll modify the instructions when we know what to do.

kkeene44 added a commit to kkeene44/wrf-coop that referenced this issue Oct 4, 2022
Updated files in the "regression+feature" branch to the latest containers available from kkeene44/wrf-coop:version16, using an updated Dockerfile-first_part file, and to use the wrf-model github repositories, instead of from davegill. I also updated the maintainer to Kelly W. The following files were updated:

M    Dockerfile
M    Dockerfile-first_part
M    Dockerfile-second_part
M    Dockerfile-sed
M    README_add_feature_test.md
M    README_user.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants