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

OF2012: Fatal Error: Couldn't create directory during simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By TeresaT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2022, 03:30
Default OF2012: Fatal Error: Couldn't create directory during simulation
  #1
Member
 
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 11
TeresaT is on a distinguished road
Dear all,

I fail to understand a problem that occurred two times on different occasions during simulations on a linux cluster

Quote:
[9] --> FOAM FATAL ERROR: (openfoam-2012)
[9] Couldn't create directory "/aName/aName/aName/caseName/processor9/3e-05/uniform/functionObjects"
[9]
[9] From bool Foam::mkDir(const Foam::fileName&, mode_t)
[9] in file POSIX.C at line 664.
[9]
FOAM parallel run exiting
The folder names are changed for privacy.

I tried to create the folder manually using mkdir and it worked as intended.
The folder was created correctly during the two prior timesteps.
There is plenty of free disk space.

Edit: one more thing, functions {} in contolDict looks basically like this:
functions
{
/*
lots of turned of stuff
*/
}

What else can I do to understand this problem?
Kind Regards,
Teresa

Last edited by TeresaT; May 20, 2022 at 06:04.
TeresaT is offline   Reply With Quote

Old   May 23, 2022, 03:55
Default
  #2
Member
 
Teresa
Join Date: Nov 2015
Location: germany
Posts: 63
Rep Power: 11
TeresaT is on a distinguished road
Dear all,

some information in case someone encounters something similar:

- solver is icoReactingMultiphaseInterFoam
- simulation redos crashed at different timeSteps with the same error msg
- simulation redo on a different filesystem on the same cluster worked without errors
- simulation redo on same filesystem deleting " functionObjects{}" worked without errors

- our current idea is a problem with the network file system
v1912:Updated file modification skew

Regards,
Teresa
Juan Daniel likes this.
TeresaT is offline   Reply With Quote

Old   July 22, 2024, 04:05
Default
  #3
New Member
 
Benjamin
Join Date: Jul 2024
Location: Germany
Posts: 2
Rep Power: 0
BenjaminK is on a distinguished road
Hi TeresaT,

were you able to solve that problem?
I encounter the same problem on a new cluster too.

In most steps it works fine, but then sometimes and randomly the simulation get stuck. If I attach a debugger to the stuck job I get the same error as you.

If I run a large and long job, it rarely ends successful.

OpenFoam version is v2212,
built with AOCC or different GCC Compilers.
BenjaminK is offline   Reply With Quote

Old   July 22, 2024, 04:40
Default
  #4
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
Some clusters enforce hard limits on number of files that a certain user is able to create. Maybe you run into it with large simulations because of all the files/folders that are generated during the decomposition and running in parallel?
Otherwise it seems like a case to contact the provider of the cluster and ask. I doubt it's an OpenFOAM problem.
AtoHM is offline   Reply With Quote

Old   July 22, 2024, 11:02
Default
  #5
New Member
 
Benjamin
Join Date: Jul 2024
Location: Germany
Posts: 2
Rep Power: 0
BenjaminK is on a distinguished road
Luckily, there is no files/folders limit on the system.

The problem of not being able to create a folder only appears running OpenFoam, interestingly only 1 thread wasn't able to create a folder, while all other processes proceeded and were able to create the folder.
The error occured randomly during the write steps.
Some times it may occur after the 8th write interval, at other times after the 25th write interval.
Also on random nodes or processes.
BenjaminK is offline   Reply With Quote

Reply

Tags
openfoam-2012


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
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 15:19.