CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Fatal Error in file POSIX.C

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Eslam Reda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2010, 07:49
Default Fatal Error in file POSIX.C
  #1
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi foamers,

When I run "decomposePar" to my case, I got error stories again as follow:

--> FOAM FATAL ERROR:

Couldn't creat directory "/home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1"

From function Foam::mkDir(const fileName&, mode_t)
in file POSIX.C at line 423.FOAM exiting



I check the POSIX.C file at line 423, the code were written as follows:

default:
{
FatalErrorIn("Foam::mkDir(const fileName&, mode_t)")
<< "Couldn't create directory " << pathName
<< exit(FatalError);

return false;
}



What is wrong with it? Who can help me out? Thanks.

Sandy
sandy is offline   Reply With Quote

Old   February 7, 2010, 18:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Sandy,

Have you tried making the directory manually? There might already be a file named "processor1" or you might have reduced permissions on the case folder, for some strange reason...

So, try this:
Code:
mkdir /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1
If that also gives an error, than try:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
If that also gives out and error saying "not found", than there might be some misconfiguration somewhere... like for example:
  • your user name in your Linux box isn't "user", and for some reason, the environment variables got mixed when defined by the bashrc script at $HOME/OpenFOAM/OpenFOAM-1.6.x/etc;
  • the file decomposeParDict (if I'm not mistaken) has the address to the case folder mistyped;
  • you might have launched decomposePar with the -case argument, and didn't provide the correct address.
Now, in case the command ls -la does give you a list of files and folders, check for the existence of a file or folder processor1, or check the permissions and ownership of the files and folders present there.

Additionally, in case you edited out your true user name and put in "user", it could be due to your user name having special characters or spaces in the name, thus making OpenFOAM to throw an error... although in Linux that shouldn't be an issue.

Best regards,
Bruno Santos
wyldckat is offline   Reply With Quote

Old   February 7, 2010, 19:34
Default
  #3
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Sandy,

Have you tried making the directory manually? There might already be a file named "processor1" or you might have reduced permissions on the case folder, for some strange reason...

So, try this:
Code:
mkdir /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1
If that also gives an error, than try:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
If that also gives out and error saying "not found", than there might be some misconfiguration somewhere... like for example:
  • your user name in your Linux box isn't "user", and for some reason, the environment variables got mixed when defined by the bashrc script at $HOME/OpenFOAM/OpenFOAM-1.6.x/etc;
  • the file decomposeParDict (if I'm not mistaken) has the address to the case folder mistyped;
  • you might have launched decomposePar with the -case argument, and didn't provide the correct address.
Now, in case the command ls -la does give you a list of files and folders, check for the existence of a file or folder processor1, or check the permissions and ownership of the files and folders present there.

Additionally, in case you edited out your true user name and put in "user", it could be due to your user name having special characters or spaces in the name, thus making OpenFOAM to throw an error... although in Linux that shouldn't be an issue.

Best regards,
Bruno Santos
If that, sir, how and when I can get the passport, you think?
sandy is offline   Reply With Quote

Old   February 7, 2010, 23:00
Default
  #4
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
Your error message, openfoam cannot create a directory, and Bruno Santos is telling you to create this folder manually and see what is wrong there
Ahmed is offline   Reply With Quote

Old   February 8, 2010, 06:25
Thumbs up
  #5
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
WOW, it is amazing ... I solved them! Thanks, anyway...

Last edited by sandy; February 8, 2010 at 07:58.
sandy is offline   Reply With Quote

Old   February 8, 2010, 15:49
Default
  #6
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
Lee
I do not read private messages, you have anything to say, say it here.
Again, the openfoam error message is very clear, the programme cannot create the folder, see why
Ahmed is offline   Reply With Quote

Old   February 8, 2010, 18:31
Default
  #7
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by Ahmed View Post
Lee
I do not read private messages, you have anything to say, say it here.
Again, the openfoam error message is very clear,
Hi Ahmed, Children can not know even simple words, Who can teach them, you think?


Quote:
Originally Posted by Ahmed View Post
the programme cannot create the folder, see why
Why? ..
sandy is offline   Reply With Quote

Old   February 9, 2010, 06:05
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sandy,

Can you run:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
And post the output here?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 12, 2016, 13:52
Default
  #9
Member
 
Peng Liang
Join Date: Mar 2014
Posts: 59
Rep Power: 12
tjliang is on a distinguished road
Quote:
Originally Posted by sandy View Post
Hi foamers,

When I run "decomposePar" to my case, I got error stories again as follow:

--> FOAM FATAL ERROR:

Couldn't creat directory "/home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1"

From function Foam::mkDir(const fileName&, mode_t)
in file POSIX.C at line 423.FOAM exiting



I check the POSIX.C file at line 423, the code were written as follows:

default:
{
FatalErrorIn("Foam::mkDir(const fileName&, mode_t)")
<< "Couldn't create directory " << pathName
<< exit(FatalError);

return false;
}



What is wrong with it? Who can help me out? Thanks.

Sandy

Helli Sandy,

I have now the same problem with you and it also runs in parallel, coule you please tell me what's wrong with that?

Best Regards,

Peng
tjliang is offline   Reply With Quote

Old   May 22, 2017, 13:34
Default Unexpected Crash
  #10
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15
Alhasan is on a distinguished road
Hello All,

My simulations have been suddenly crashing with the following error and these are very expensive simulations on the cluster and I have no idea what is making them crash with this error any suggestions, they run well for a week or so and they then crash

Code:
[10] 
[10] 
[10] 
[10] --> FOAM FATAL ERROR: 
[10] Couldn't create directory "/panfs/panasas01/aero/mk14466/WorkSpace/5.5Deg-Ref-DynSmag/processor10/0.0578987"
[10] 
[10]     From function Foam::mkDir(const fileName&, mode_t)
[10]     in file POSIX.C at line 555.
[10] 
FOAM parallel run exiting
[10] 
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 10 in communicator MPI_COMM_WORLD 
with errorcode 1.
Thanks for your help,
Hasan K.J
__________________
"Real knowledge is to know the extent of one's ignorance." - Confucius
Alhasan is offline   Reply With Quote

Old   February 20, 2021, 00:46
Default disk size issue
  #11
New Member
 
Eslam Reda
Join Date: Jun 2009
Posts: 19
Rep Power: 16
Eslam Reda is on a distinguished road
It is a disk size issue, free some space for the new files
Santhosh91 likes this.
Eslam Reda is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 2 June 25, 2021 08:10
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 04:26
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 00:21.