License Service Starts Then Stops

« Go Back

Information

 
QuestionWhy does the license service start then stop automatically?
Answer
This article applies to those using STK 12.2 and earlier or ODTK 7.2 and earlier and encountering one of the following errors:
1. You use the Windows -> Services panel to start the STK License Server service and receive this error message:
 
"The STK License Server service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
User-added image

2. You use lmtools.exe to start the STK License Server service, and the 'Perform Status Enquiry' returns a message saying 'FlexNet Licensing error:-15,10.  System Error: 10061 "WinSock: Connection refused"'.

These errors are most likely caused by the service being unable to read paths that are saved into the Windows Registry here:
 
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\FLEXlm License Manager\STK License Server]
or here
[HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\STK License Server]

Another indication of this being the cause of the error is that you can successfully start lmgrd manually from a command prompt, which does not run as a service nor rely on paths saved into the Registry. You may also see an 'STKD exited with status 58 ()' error/message in the debug log file. 
 
The fix is simple: select lmtools.exe and 'Run as administrator'.
User-added image
Open the Config Services tab and select the STK License Server. Verify the paths and select the "Use Services" check box. Then click the Save Service button.  This should rewrite the missing paths into the Window's Registry.
 
User-added image
Ref: Error Starting License Server

 
TitleLicense Service Starts Then Stops
URL NameLicense-service-starts-then-stop

Related Files