CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

mpirun permission error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2021, 05:24
Default mpirun permission error
New Member
Join Date: Jun 2021
Posts: 2
Rep Power: 0
Ezzi is on a distinguished road
I am reasonably new to openfoam but I have recently been putting together a new pc to run openfoam in WSL using ubuntu in windows 10.

I have set up all of the conditions as I have before on my other computers but when running the command line:

mpirun -np 20 interFoam -parallel > log &

I get a major error:

[[13102,1],0][btl_tcp_component.c:945:mca_btl_tcp_component_crea te_listen] bind() failed: Permission denied (13)

This error is displayed for each processor core and then ends with the following:

Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

Process name: [[13102,1],11]
Exit code: 145

I have looked around in various forums for help but I can either not understand what they are talking about or the posts are not relevant to my openfoam situation. Note that meshing etc works perfectly fine as far as I can tell and I'm trying to run in parallel on a single machine.

Any help would be much appreciated.


Problem was solved by a friend, I simply had to run ubuntu as administrator and use the following command:

$ echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

Solved that problem right away, apparently it is something to do with WSL and the firewall.

Last edited by Ezzi; June 15, 2021 at 10:49. Reason: Problem solved
Ezzi is offline   Reply With Quote


-parallel, mpirun, openfoam8

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24

All times are GMT -4. The time now is 01:24.