wrf-coop icon indicating copy to clipboard operation
wrf-coop copied to clipboard

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

Open mmelendezb opened this issue 4 years ago • 3 comments

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

mmelendezb avatar Jul 29 '20 20:07 mmelendezb

@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.

davegill avatar Jul 29 '20 20:07 davegill

@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!

mmelendezb avatar Jul 29 '20 20:07 mmelendezb

@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.

davegill avatar Jul 29 '20 21:07 davegill