(INTERNAL) (Win) License manger service debug log error: "(lmgrd) idl_lmgrd exited with status 58()"
Anonym
Topic:
The following ITT FLEXnet license manager service debug log error was encountered by an ITT VIS customer, where the license manager was briefly running and then suddenly exited:
16:19:41 (lmgrd)
16:19:41 (lmgrd)
16:19:41 (lmgrd) pid 3760
16:19:41 (lmgrd) Done rereading
16:19:41 (lmgrd) FLEXnet Licensing (v11.4.100.0 build 50818 i86_n3) started on temp-mmb-d1 (IBM PC) (7/20/2010)
16:19:41 (lmgrd) Copyright (c) 1988-2007 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
16:19:41 (lmgrd) US Patents 5,390,297 and 5,671,412.
16:19:41 (lmgrd) World Wide Web: http://www.macrovision.com
16:19:41 (lmgrd) License file(s): C:\Program Files\ITT\License\license.dat
16:19:41 (lmgrd) lmgrd tcp-port 1700
16:19:41 (lmgrd) Starting vendor daemons ...
16:19:41 (lmgrd) Started idl_lmgrd (pid 3144)
16:19:41 (idl_lmgrd) FLEXnet Licensing version v11.4.100.0 build 50818 i86_n3
16:19:44 (idl_lmgrd) Server started on temp-mmb-d1 for: envi
16:19:44 (idl_lmgrd) envi_cartosat idl idl_bridge_assist
16:19:44 (idl_lmgrd) idl_wavelet envi_fx envi_ex
16:19:44 (idl_lmgrd) idl_rt
16:19:44 (idl_lmgrd) EXTERNAL FILTERS are OFF
16:19:44 (lmgrd) idl_lmgrd using TCP-port 1100
16:21:06 (lmgrd) idl_lmgrd exited with status 58 ()
16:21:06 (lmgrd) Since this is an unknown status, license server
16:21:06 (lmgrd) manager (lmgrd) will attempt to re-start the vendor daemon.
16:21:06 (lmgrd) EXITING DUE TO SIGNAL 1
If the license manager is running on a Windows 2008 Server or other Windows terminal server machine, then the problem may be caused by the Windows DEP (Data Execution Prevention) service running on the server.
Here are steps to solve the problem:
- Stop the ITT FLEXlm License Manager service from LMTOOLS.EXE or via the Windows Services utility.
- Stop any lmgrd.exe and idl_lmgrd.exe process in Task Manager.
- Start the DEP program from Control Panel > System > Advanced > Performance Settings > Data Excution Prevention.
- Add an exception for "LMGRD.EXE" and possibly also "LMUTIL.EXE", "LMTOOLS.EXE" and "IDL_LMGRD.EXE" for where the license manager binaries are installed (e.g., "C:\Program Files\ITT\idl71\bin\bin.x86\", "C:\Program Files\ITT\idl71\bin\bin.x86_64\", "C:\Program Files\ITT\IDL\idl80\bin\bin.x86\" or "C:\Program Files\ITT\IDL\idl80\bin\bin.x86_64\").
- Restart the license manager service.
This solution was found in a web article posted to resolve the problem for another vendor's license manager service. For interesting reading, included below is a copy of the entire article, available for internal use.
Here are some additional FLEXnet errors that could be encountered, possibly related to this DEP problem:
The TCP port number in the license, [portnumber], is already in use.
(idl_lmgrd) Unable to initialize access to trusted storage: 1
(idl_lmgrd) Failed to open socket to lmgrd, Exiting
(idl_lmgrd) EXITING DUE TO SIGNAL 28 Exit reason 5
(lmgrd) Can't send reread to idl_lmgrd: Cannot read data from license server system.
(-16,10009:10054 "WinSock: Connection reset by peer")
(lmgrd) idl_lmgrd exited with status 28 (Communications error)
(lmgrd) Since this is an unknown status, license server
(lmgrd) manager (lmgrd) will attempt to re-start the vendor daemon.Discussion:
The following article information relates the problem described above, but encountered with another vendor's license manager service. The original article can be found at:
FlexNet lmgrd.exe problem solved
During the start of evaluating JTB FlexReport one customer got a problem with FlexNet (FLEXlm) that eventually was solved.
The following command was run on the server where FlexNet license manager is installed. The server is a virtualized Windows 2008 std server.
lmutil.exe lmstat -a -c 27000@server
Output returned:
[Detecting lmgrd processes...
Error getting status: Cannot connect to license server system. (-15,10:10061 "Winsock: Connection refused")
The FlexNet debug log also had this information.
16:27:23 (lmgrd) adskflex exited with status 58 ()
16:27:23 (lmgrd) Since this is an unknown status, license server
16:27:23 (lmgrd) manager (lmgrd) will attempt to re-start the vendor daemon.
16:27:23 (lmgrd) EXITING DUE TO SIGNAL 1
There were no problems with the ports and firewalls as they were opened. LMTOOLS.EXE did not show any problem on the status.
Using IP instead of server name resulted in this message:
lmutil - Copyright (c) 1989-2007 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Tue 10/20/2009 15:49
[Detecting lmgrd processes...]
Error getting status: Cannot find license file. (-1,359:2 "No such file or directory")
Other errors that also might show up are some or all of these:
The TCP port number in the license, [portnumber], is already in use.
(adskflex) Unable to initialize access to trusted storage: 1
(adskflex) Failed to open socket to lmgrd, Exiting
(adskflex) EXITING DUE TO SIGNAL 28 Exit reason 5
(lmgrd) Can't send reread to adskflex: Cannot read data from license server system. (-16,10009:10054 "WinSock: Connection reset by peer")
(lmgrd) adskflex exited with status 28 (Communications error)
(lmgrd) Since this is an unknown status, license server
(lmgrd) manager (lmgrd) will attempt to re-start the vendor daemon.
Eventually the solution found. The problem was caused because of Windows DEP (Data Execution Prevention) on the server. DEP simply killed lmgrd from doing its job.
The solution is:
- Stop the licenseservice using LMTOOLS.EXE or in Windows Services.
- Stop any process in Task Manager like lmgrd.exe and adskflex.exe (or whatever the vendor daemon is named).
- Start the DEP program from Control Panel > System > Advanced > Performance Settings > Data Excution Prevention.
- Add an exception for LMGRD.exe and possibly also LMUTIL.EXE, LMTOOLS.EXE and the vendor EXE where the license manager is installed.
- Restart the service and it should work.
DEP might also have the effect that LMTOOLS.EXE crashes or that you just notice that the license service is stopped after a while and you cannot check out any licenses. The problem is not only on Windows 2008 server but has been seen also on Windows 2003 server.
|
Solution:
[Edit this field in the IDL-based Tech Tip Editor, v70]