# Cannot run ff-mpirun on ubuntu 20.04

**URL:** <https://community.freefem.org/t/cannot-run-ff-mpirun-on-ubuntu-20-04/1095>\
**Category:** FreeFEM installation\
**Created:** [July 13, 2021, 2:25pm UTC](https://community.freefem.org/t/cannot-run-ff-mpirun-on-ubuntu-20-04/1095 "2021-07-13T14:25:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdelhakTouiti](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AbdelhakTouiti](https://community.freefem.org/u/AbdelhakTouiti)\
**Post date:** [July 13, 2021, 2:25pm UTC](https://community.freefem.org/t/cannot-run-ff-mpirun-on-ubuntu-20-04/1095/1 "2021-07-13T14:25:23Z")

</div>

Hello,

ff-mpirun is aborted whenever I try to run a script with “ff-mpirun -np 4 script.edp” and I get the below message.

freefem++ and mpicc work without a problem in my machine.

The same ff-mpirun scripts are working when using another machines.

Does anyone have any idea about the problem?

Thank you for the help,

Abdelhak.

**command error message:**

## /usr/bin/mpiexec’ --oversubscribe -np 2 /usr/local/bin/FreeFem+±mpi -nw ‘elas.edp’

It looks like MPI\_INIT failed for some reason; your parallel process is  
likely to abort. There are many reasons that a parallel process can  
fail during MPI\_INIT; some of which are due to configuration or environment  
problems. This failure appears to be an internal failure; here’s some  
additional information (which may only be relevant to an Open MPI  
developer):

## ompi\_mpi\_init: ompi\_rte\_init failed → Returned “(null)” (-43) instead of “Success” (0)

## \*\*\* An error occurred in MPI\_Init\_thread \*\*\* on a NULL communicator \*\*\* MPI\_ERRORS\_ARE\_FATAL (processes in this communicator will now abort, \*\*\* and potentially your MPI job) [abdel:577414] Local abort before MPI\_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!

It looks like MPI\_INIT failed for some reason; your parallel process is  
likely to abort. There are many reasons that a parallel process can  
fail during MPI\_INIT; some of which are due to configuration or environment  
problems. This failure appears to be an internal failure; here’s some  
additional information (which may only be relevant to an Open MPI  
developer):

## ompi\_mpi\_init: ompi\_rte\_init failed → Returned “(null)” (-43) instead of “Success” (0)

## \*\*\* An error occurred in MPI\_Init\_thread \*\*\* on a NULL communicator \*\*\* MPI\_ERRORS\_ARE\_FATAL (processes in this communicator will now abort, \*\*\* and potentially your MPI job) [abdel:577415] Local abort before MPI\_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!

## Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.

* * *

mpiexec 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: [[54695,1],0]  
Exit code: 1

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [July 13, 2021, 7:24pm UTC](https://community.freefem.org/t/cannot-run-ff-mpirun-on-ubuntu-20-04/1095/2 "2021-07-13T19:24:13Z")

</div>

First the sequential version run or not.  
just  
FreeFem++

---

<div class="post-metadata">

**Author:** ![AbdelhakTouiti](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AbdelhakTouiti](https://community.freefem.org/u/AbdelhakTouiti)\
**Post date:** [July 15, 2021, 9:50am UTC](https://community.freefem.org/t/cannot-run-ff-mpirun-on-ubuntu-20-04/1095/3 "2021-07-15T09:50:09Z")

</div>

yes it runs without any problem.
