Launch omniNames

I have a problem using Salome-9.6.0 where Salome can’t find a free port to lauch omniNames.Does anyone know how to solve it?

Process Process-1:
Traceback (most recent call last):
  File "/home/awgomes/SALOME-9.6.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/multiprocessing/", line 258, in _bootstrap
  File "/home/awgomes/SALOME-9.6.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/multiprocessing/", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/awgomes/SALOME-9.6.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/", line 68, in searchFreePort_withPortManager
    port = getPort(use_port)
  File "/home/awgomes/SALOME-9.6.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/", line 191, in getPort
    raise RuntimeError(msg)
Can't find a free port to launch omniNames
Try to kill the running servers and then launch SALOME again.

You open htop and you need to kill the Salome process that you already runned and kept running in the background. You can filter them in htop by Salome. From your other post that you just did, I guess that you are using Salome by scripts only, you should add a few lines in the end to kill the process when the script is finished. Have a look at one of my post about this.

1 Like

you need to first kill all your SALOME instances:

    pkill -u $USER -f omniNames
    pkill -u $USER -f SALOME_ConnectionManagerServer
    pkill -u $USER -f SALOME_Session_Server
    pkill -u $USER -f SALOME_LauncherServer

Then, you need to delete these files:


Finally restart SALOME which should in principle use port 2810.