CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] unable to find the specified executable file - likely env vars

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2020, 15:03
Default unable to find the specified executable file - likely env vars
  #1
New Member
 
Erik
Join Date: Jan 2020
Posts: 1
Rep Power: 0
thoraxe is on a distinguished road
I'm helping a friend get mpirun in parallel (multiple hosts) going. Things seem to work just fine on a single host.


I realize that openfoam5 is old, but that's what he's got installed.


openfoam is installed to /opt/openfoam5 on all hosts, and we have NFS mounting the test files/data in the same place on all hosts


I'm trying to run the incompressible/simpleFoam/motorBike tutorial from the installation just to validate that multiple machines work.


passwordless SSH works in all directions.


Here's the machines file:


Code:
localhost slots=3
10.0.0.113 slots=3
Here's the mpirun invocation:


Code:
Cleaning /home/rob/cases/incompressible/simpleFoam/motorBike case
Running surfaceFeatureExtract on /home/rob/cases/incompressible/simpleFoam/motorBike
Running blockMesh on /home/rob/cases/incompressible/simpleFoam/motorBike
Running decomposePar on /home/rob/cases/incompressible/simpleFoam/motorBike
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-68e8507efb72
Exec   : snappyHexMesh -overwrite
Date   : Jan 24 2020
Time   : 14:48:59
Host   : "solver10"
PID    : 61205
I/O    : uncollated
Case   : /home/rob/cases/incompressible/simpleFoam/motorBike
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Read mesh in = 0 s

Overall mesh bounding box  : (-5 -4 0) (15 4 8)
Relative tolerance         : 1e-06
Absolute matching distance : 2.29783e-05

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-68e8507efb72
Exec   : snappyHexMesh -overwrite
Date   : Jan 24 2020
Time   : 14:48:59
Host   : "solver10"
PID    : 61206
I/O    : uncollated
Case   : /home/rob/cases/incompressible/simpleFoam/motorBike
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Read mesh in = 0 s

Overall mesh bounding box  : (-5 -4 0) (15 4 8)
Relative tolerance         : 1e-06
Absolute matching distance : 2.29783e-05

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 5.x-68e8507efb72
Exec   : snappyHexMesh -overwrite
Date   : Jan 24 2020
Time   : 14:48:59
Host   : "solver10"
PID    : 61207
I/O    : uncollated
Case   : /home/rob/cases/incompressible/simpleFoam/motorBike
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Read mesh in = 0 s

Overall mesh bounding box  : (-5 -4 0) (15 4 8)
Relative tolerance         : 1e-06
Absolute matching distance : 2.29783e-05

--------------------------------------------------------------------------
mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 3; it may have occurred for other processes as well.

NOTE: A common cause for this error is misspelling a mpirun command
      line parameter option (remember that mpirun interprets the first
      unrecognized command line token as the executable).

Node:       10.0.0.113
Executable: /opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh
--------------------------------------------------------------------------
3 total processes failed to start
I think this has to do with ssh environment sourcing.



Code:
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:    18.04
Codename:    bionic
I am sourcing the correct bashrc file in .bashrc for the user:


Code:
source /opt/openfoam5/etc/bashrc
And locally, all the paths and env-vars are working just fine. All the WM stuff and the PATH and etc are there.


If I try to do the following:


Code:
ssh rob@10.0.0.113 /opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh
I don't get a "file not found" type error, but rather a library missing error, which is undoubtedly due to the missing paths and other environment variables.


So, I'm not entirely sure where to go from here. Any thoughts?


Trying to pass environment variables with PermitUesrEnv / AcceptEnv /SendEnv didn't quite seem to do the trick (couldn't get PATH working right).


Trying to use .profile/.bash_profile/etc to source also didn't seem to work


PermitUserRC and trying to source the bashrc resulted in other weird problems (for example -- the source command couldn't be found)....


I'm kind of out of thoughts here...
thoraxe 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.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42


All times are GMT -4. The time now is 02:40.