View Issue Details

IDProjectCategoryView StatusLast Update
0002990OpenFOAMBugpublic2018-06-25 08:30
Reportersandipanp Assigned Tochris  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version13.1
Summary0002990: The parent directory does not allow write permission to the process
DescriptionI was trying to execute the command 'blockMesh' in the Lid-driven cavity problem given in the user guide and got the following error:

"The parent directory does not allow write permission to the process or one of the directories in '..run/tutorials/incompressible/icoFoam/cavity/cavity/constant/polyMesh' did not allow earch (execute) permission.

How do i resolve this error? Thanks.
Steps To ReproduceI tried the same command mentioned over and over again and got it.
TagsblockMesh

Activities

wyldckat

2018-06-24 01:08

updater   ~0009813

You've omitted a considerable amount of information, namely: What were the exact steps you've taken to reach the point you are at?

I'm assuming you started following the OpenFOAM v4 User Guide at least since the start of Chapter 2: https://cfd.direct/openfoam/user-guide/v4-tutorials/#x4-30002

Furthermore, I'm assuming that you've used "sudo" to copy the 'tutorials' folder... for example, if you ran something like the following commands:

   mkdir -p $FOAM_RUN
   cd $FOAM_RUN
   sudo cp -r $FOAM_TUTORIALS .

this would explain why it's not working as intended. None of the official instructions should have told you to do this, therefore it would be very helpful if you please indicate which instructions you were following.

If my assumptions/guesses are correct, the solution is rather simple, namely run the following command:

   sudo chown -R $(id -un):$(id -gn) $WM_PROJECT_USER_DIR
   echo $WM_PROJECT_USER_DIR

The first command will restore the ownership of the path that is given by the second command.


Please let us know if this solves your problem. Please also indicate which exact instructions you've followed and which steps you've taken to get here.

sandipanp

2018-06-24 17:59

reporter   ~0009815

Since I am running Openfoam on university cluster, I am not allowed to use the command 'sudo'. Is there any way to resolve this issue without using 'sudo'?

Thanks,
Sandipan

sandipanp

2018-06-24 18:05

reporter   ~0009816

Also, I used the instructions mentioned in https://cfd.direct/openfoam/user-guide/v4-tutorials/#x4-30002 and then I used
  mkdir -p $FOAM_RUN
  cd $FOAM_RUN
  cp -r $FOAM_TUTORIALS .

I did not use sudo to copy the files.

wyldckat

2018-06-24 20:43

updater   ~0009817

That's what happens when we have to assume a few things...

Please provide the following information:

1. Run the following command and show us what it gives you:

     cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
     ls -l


2. Then run the following commands:

     touch test_create_file
     ls -l test_create_file
   
   What does it show you?


3. Run the following command once again:

     blockMesh

   Then please provide the complete output of what it gives you.

sandipanp

2018-06-25 01:02

reporter   ~0009818

Here is what I got. Thanks.
error.png (62,051 bytes)   
error.png (62,051 bytes)   

chris

2018-06-25 08:29

manager   ~0009819

r-xr-xr-x means you don't have permission to write files to your system.

This is a basic Linux system administration issue, it has nothing to do with OpenFOAM.

Read an introduction to Linux, and/or get the administrator of your university cluster to help. Your system appears to be messed up, e.g. some incorrect umask settings, which is the responsibility of your sysadmin.

chris

2018-06-25 08:30

manager   ~0009820

User error

Issue History

Date Modified Username Field Change
2018-06-23 23:13 sandipanp New Issue
2018-06-23 23:13 sandipanp Tag Attached: blockMesh
2018-06-24 00:58 wyldckat Priority urgent => normal
2018-06-24 01:08 wyldckat Note Added: 0009813
2018-06-24 17:59 sandipanp Note Added: 0009815
2018-06-24 18:05 sandipanp Note Added: 0009816
2018-06-24 20:43 wyldckat Note Added: 0009817
2018-06-25 01:02 sandipanp File Added: error.png
2018-06-25 01:02 sandipanp Note Added: 0009818
2018-06-25 08:29 chris Note Added: 0009819
2018-06-25 08:30 chris Assigned To => chris
2018-06-25 08:30 chris Status new => closed
2018-06-25 08:30 chris Resolution open => fixed
2018-06-25 08:30 chris Note Added: 0009820