Personal tools
You are here: Home Forum Use Clean salome ports

Clean salome ports

Up to Use

Clean salome ports

Posted by alexandre at June 24. 2015

Hi,

this post continue my previous post here

As I said in my previous post, I had a message error when during a mesh generation without GUI: salome can't kill local port a the end of the script:

Terminating SALOME on port 2897...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/choco/salome_7.5.1/Python-2.7.3/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/home/choco/salome_7.5.1/Python-2.7.3/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/choco/salome_7.5.1/KERNEL_7.5.1/bin/salome/killSalomeWithPort.py", line 192, in shutdownMyPort
    **kwargs)
  File "/home/choco/salome_7.5.1/KERNEL_7.5.1/bin/salome/salome_utils.py", line 272, in generateFileName
    from launchConfigureParser import verbose
ImportError: No module named launchConfigureParser

problem in killLocalPort()

Now, there is no free port avaliable!! Even after a computer reboot...

I can launch Salome with GUI (currently on port 2820), but I can't without GUI

I tried :

./runAppli -k

./runAppli -p

./runAppli --ns-port-log=salomePortLog.txt

and I have alwayse the same message: 

Can't find a free port to launch omniNames

Try to kill the running servers and then launch SALOME again.

It seems that there is no avaliable port for the without GUI mode.

 

Is a way exists to clean salome port ?

 

I saw this

post but I hope there is another solution but reinstall salome 7.5.1...

 

Thanks,

 

Alex.

 

 

 

Re: Clean salome ports

Posted by Vadim SANDLER at June 24. 2015

Hello Alex,

This seems to be a bug of a SALOME launcher - we'll check that.

Meantime, removal of .omniORB_PortManager.cfg file from your home directory should solve the problem.

Regards,
Vadim.

Re: Clean salome ports

Posted by alexandre at June 24. 2015

Helo Vadim, 

I tried either removing tne .omniORP_PortManager.cfg and all .omniORB* files in my home but it doesn't work.

I solved my problem adding "busy_ports = []" after the  "busy_ports = config["busy_ports"]" (line 129 in salome_7.5.1/salome_appli_7.5.1/bin/salome/Portanager.py).

It's not the cleanest solution but it works!!

It seams salome not update properly the list of free ports.

Regards.

Alex.

 

Re: Clean salome ports

Posted by Vadim SANDLER at June 24. 2015

Hello Alex,

Yes,exactly - as I said, there's a bug in SALOME launcher, namely in a port manager. It is to be analyzed.

Regarding your case, I have forgotten that in case of using application skeleton scripts, i.e. runAppli, runSession etc the .omniORP_PortManager.cfg is created not in the home directory but in the USERS subfolder of your application skeleton directory. I.e. if you installed SALOME 7.5.1 from universal binaries, see appli_V7_5_1/USERS directory.

Regards,
Vadim.

Re: Clean salome ports

Posted by MZX at September 25. 2015

Hi Vadim and Alex,

I have pretty much the same problem but under Windows 7 (see here).

Removing .omniORP_PortManager.cfg located in \TMP did not help. I did not find any other file with same name in other folders.

Modifying \SALOME-7.5.1-WIN64\MODULES\KERNEL\bin\salome\PortManager.py did not help either.

I appreciate your advice.

Thanks,

MZ 

Re: Clean salome ports

Posted by Saint Michael at September 25. 2015

Hi

I did not find any other file with same name in other folders.

Have you checked TEMP directory within SALOME installation for *.cfg files?

You need to find files named like .omniORB_*_2810.cfg.

St.Michael

Re: Clean salome ports

Posted by MZX at September 25. 2015

in D:\SALOME-7.5.1-WIN64\TMP I have three .cfg files:

.omniORB_ana_anastex_2811.cfg

.omniORB_ana_last.cfg

.omniORB_PortManager.cfg

I deleted all and nothing happened.

 

Re: Clean salome ports

Posted by MZX at September 25. 2015

I don't know if this would help or not but I have different versions of Salome on my PC: 7.3, 7.4, 7.5, 7.6. I just tested the other versions and I should say that 7.3 and 7.4 work fine but both 7.5 and 7.6 have this issue.

Re: Clean salome ports

Posted by Clémence Gellée at July 13. 2018

Hello everyone, 

I have the same problem, when I try to launch SALOME with the command (' ~/salome/appli_V7_7_1/runAppli') the following error message appears on the screen:

RuntimeError: 

Can't find a free port to launch omniNames

Try to kill the running servers and then launch SALOME again.

I don't know what happened as yesterday it was working perfectly. 

 

 I have posted this problem on a previous post also but this one seems  more recent. 

 

I work on the following OS version :

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=16.04

DISTRIB_CODENAME=xenial

DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

 

I tried several things: 

 

When I run the killSalome.py script, nothing is prompted on the screen and the problem is still present. 

I also tried the command 'ps x | grep salome' to see if SALOME runs and the following message prompts : 

 4433 pts/5    S+     0:00 grep --color=auto salome

 

Strangely enough when I do nothing but relaunch this same command I get : 

 4435 pts/5    S+     0:00 grep --color=auto salome

 

As if the port number was always changing and was not killed by the killSalom.py script. 

I tried the command killSalomeWithPort.py and name of the port but when I run the 'ps x | grep salome'  again there is still a a port used by SALOME. 

 

I tried to follow each step specified in the post here : http://academic.bancey.com/successfully-clearing-ports-in-salome-code-aster/ 

But some of the advises either do not work or I do not find the same things as the author, notably I cannot find any of the files cited before : 

.omniORB_ana_anastex_2811.cfg

.omniORB_ana_last.cfg

.omniORB_PortManager.cfg 

I am a bit afraid of uninstalling and reinstaling SALOME as I am not sure how to proceed and fear to worsen the problem. If it is the only problem could you please help me on how to uninstall and reinstall correctly the software ? 

 

Thanks in advance if someone can help me, 

 

Best regards, 

 

Clémence Gellée 

Powered by Ploneboard
Document Actions