Operating System - HP-UX
1821062 Members
2453 Online
109631 Solutions
New Discussion юеВ

(lmgrd) Failed to open the TCP port number in the license.

 
SOLVED
Go to solution
LV2DIVE
Frequent Advisor

(lmgrd) Failed to open the TCP port number in the license.

FLEXlm license cannot be restarted unless it is rebooted.

Is there a way to refresh the port or stop and start the port?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: (lmgrd) Failed to open the TCP port number in the license.

First try executing the "lmdown" command. If that failes then examine your license.dat file; the last field in the SERVER line is the port number, e.g. 7788. Now do an "lsof | grep 7788" and you should see a process associated with this port number. Kill the process.

If it ain't broke, I can fix that.
LV2DIVE
Frequent Advisor

Re: (lmgrd) Failed to open the TCP port number in the license.

# ps -ef | grep 26000
root 493 29014 1 15:23:27 pts/0 0:00 grep 26000

# netstat -na| grep 27000
tcp 0 0 192.168.2.7.27000 192.168.2.128.57830 CLOSE_WAIT
tcp 0 0 192.168.2.7.27000 192.168.2.129.57880 CLOSE_WAIT
tcp 0 0 192.168.2.7.27000 192.168.2.130.54949 CLOSE_WAIT

Should I kill these? If so, how, without rebooting?
A. Clay Stephenson
Acclaimed Contributor

Re: (lmgrd) Failed to open the TCP port number in the license.

If those correspond to the processes then you should kill them but since netstat does not indicate the process id, how are you going to kill them? Rebooting will do the trick since other than using "The Force" you don't have a PID BUT if you use lsof as I suggested THEN you have PID's associated with these port numbers and killing becomes possible. Don't have lsof on your box (and no UNIX box should be without this very useful tool) then get it from here:

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Unable-to-launch-the-license-server-Server-log-shows-lmgrd-Failed-to-open-the-TCP-port-number-in-the-license.html,https://kb.awr.com/display/lic/Failed+to+open+the+TCP+port+number#:~:text=This%20error%20occurs%20when%20a,being%20used%20by%20other%20program. 

If it ain't broke, I can fix that.
LV2DIVE
Frequent Advisor

Re: (lmgrd) Failed to open the TCP port number in the license.

I have downloaded the lsof tar and going to try it. I will reboot after everyone has gone home to have a fresh start in the morning.

Thany you for your help.