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

Dakota - Fork application failure

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By carl_r

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2020, 16:40
Default Dakota - Fork application failure
  #1
New Member
 
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15
carl_r is on a distinguished road
Hi,
I am currently struggling to resolve the below error:

Warning: analysis driver "rosenbrock" not found.
Fork application failure, aborting.
System error message: Permission denied

The interface definition of the input file is:

interface
analysis_drivers = 'rosenbrock'
fork
parameters_file = 'params.in'
results_file = 'results.out'




OS: Ubuntu 18.04.4 LTS (running on windows power shell)
Dakota 6.12.0

Example problem: Files copied from DAKOTA/examples/user/rosen_syscall.*
Code:
carl@DESKTOP-SDA6914:~/OpenFOAM/carl-7/run/dakotaTutorial/rosenbrock/rosenSyscall$ ls -l
total 92
-rwxrwxrwx 1 carl carl     0 Sep  9 10:07 dakota.rst
-rwxrwxrwx 1 carl carl    65 Sep  9 10:07 rosen_syscall.dat
-rwxrwxrwx 1 carl carl  5404 Sep  4 13:15 rosen_syscall.dat.sav
-rwxrwxrwx 1 carl carl   740 Sep  4 13:15 rosen_syscall.in
-rwxrwxrwx 1 carl carl  1474 Sep  9 10:07 rosen_syscall.out
-rwxrwxrwx 1 carl carl 61623 Sep  4 13:15 rosen_syscall.out.sav
-rwxrwxrwx 1 carl carl   601 Sep  9 10:07 rosen_syscall.stdout 
-rwxrwxrwx 1 carl carl  5265 Sep  4 13:15 rosen_syscall.stdout.sav
Environment variables (.bashrc):
[/HTML]
# Dakota Variables
INSTALL_DIR=/home/carl/DAKOTA/dakota-6.12.0

export PATH=$PATH:$INSTALL_DIR/bin:$INSTALL_DIR/test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INSTALL_DIR/bin:$INSTALL_DIR/lib

# All versions, to use the dakota.interfacing Python module:
export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/share/dakota/Python

export PATH="/root/perl5/perlbrew/perls/perl-5.26.1/bin:$PATH"
export PATH="$PATH:."
[/HTML]

Background:
I installed Dakota for the first time, building it from source files. I ran the test suite and it seemed to work.
I have then copied the example rosenbrock problems from the examples folder. The examples using the "direct" interface run correctly. But the problems using the simulation interface do not.

I also have another simple Dakota example that uses the simulation interface. I wanted to get this running, however, this results in the same problem as with the example case. Therefore I'm focusing on getting the example case running in the hope that the solution will fix this case as well.

Investigations:
I've run the test suite and it seems to work
I've tried all the direct interface training tutorials - They work
I've tried running the problem from the original examples directory in case the file paths were missing. This gave the same error.


Any help would be appreciated.
carl_r is offline   Reply With Quote

Old   September 10, 2020, 07:56
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

without reading your whole post, you can easily take the interface provided within my tutorials on my website. I guess you should be able to resolve your problem while comparing the cases or directly use and rewrite the interface.

This is actually not an OpenFOAM problem
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 10, 2020, 12:37
Default
  #3
New Member
 
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15
carl_r is on a distinguished road
Tobi,
Agreed, this is not an OpenFoam issue, rather a Dakota one, however, I was hoping someone here might have the knowledge to assist. The Dakota support system is not as well developed as OF (at least for public users). I've sent a support request to the Dakota user group, but as I'm not part of a government lab I'm likely bottom of the pile for support.

I have your example (very helpful) and I get the same error with your case, as with the simulation interface examples from the Dakota tutorials, therefore I suspect its some system/installation issue. I'm just out of ideas and expertise as to what it is or how to trace it.
carl_r is offline   Reply With Quote

Old   September 10, 2020, 17:40
Default
  #4
New Member
 
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15
carl_r is on a distinguished road
I've managed to get dakota to run the tutorial cases by deleting and re-installing dakota 6.12.0.
I'm not sure what the difference was in the install. The only thing that I can think of is that during trying to debug the first installation I had to install some additional libraries/packages. maybe, these being present at the start in some way fixed the installation the second time around.
Tobi likes this.
carl_r is offline   Reply With Quote

Old   August 11, 2023, 13:10
Default
  #5
Senior Member
 
Join Date: Mar 2010
Posts: 173
Rep Power: 17
Jonathan is on a distinguished road
Quote:
Originally Posted by carl_r View Post
I've managed to get dakota to run the tutorial cases by deleting and re-installing dakota 6.12.0.
I'm not sure what the difference was in the install. The only thing that I can think of is that during trying to debug the first installation I had to install some additional libraries/packages. maybe, these being present at the start in some way fixed the installation the second time around.
Hi, I also have a similar, if not the same problem with Dakota and OF.
Basically, when Dakota comes to forking the parent process for the individual runs, i get the

Code:
Fork application failure, aborting.
System error message: Permission denied
error. I am using Ubuntu, which is not supported as far as I could tell, so I compiled this from source, using WolfDynamics tutorials. I have run all the smoke tests and unit tests, on the comiled install, and these all appear to pass without any problems.

So i was wondering,
1) did the OP install the RELH binaries, or compile his own? Sounds like he is on Ubuntu but used the precompiled binaries
2) Can anyone else think of why the OS might be preventing the fork process (with the permission denied) message? Perhaps there is something special on Ubuntu that doesnt let the app make the fork syscall?

Any help would be greatly appreciated.
TIA
Cheers
JB
Jonathan is offline   Reply With Quote

Old   August 11, 2023, 13:33
Default
  #6
Senior Member
 
Join Date: Mar 2010
Posts: 173
Rep Power: 17
Jonathan is on a distinguished road
Quote:
Originally Posted by Jonathan View Post
Hi, I also have a similar, if not the same problem with Dakota and OF.
Basically, when Dakota comes to forking the parent process for the individual runs, i get the

Code:
Fork application failure, aborting.
System error message: Permission denied
error. I am using Ubuntu, which is not supported as far as I could tell, so I compiled this from source, using WolfDynamics tutorials. I have run all the smoke tests and unit tests, on the comiled install, and these all appear to pass without any problems.

So i was wondering,
1) did the OP install the RELH binaries, or compile his own? Sounds like he is on Ubuntu but used the precompiled binaries
2) Can anyone else think of why the OS might be preventing the fork process (with the permission denied) message? Perhaps there is something special on Ubuntu that doesnt let the app make the fork syscall?
Ok, for anyone else wondering / struggling with this, the solution (for me) was to ensure that the

Code:
simulator_script.sh
which is called by the forking process was ... executable (duh!). Of course, you generally write this script yourself and i had forgotten to allow +x on it, so when Dakota tried to execute (via fork) it failed.

Glad is was something simple and not deeper in the code / compilation.
Jonathan 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
OpenFOAM - Dakota coupling/Issues with Dakota parameters file ilaj OpenFOAM Programming & Development 0 February 4, 2020 12:34
Error in compute process - No Active Application yetlyg FLUENT 8 October 27, 2018 22:30
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 11:52
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[OpenFOAM] could not open file .vtk in paraview ali_atrian ParaView 8 August 27, 2014 10:31


All times are GMT -4. The time now is 04:42.