View Full Version : Service created by LMTools v11.15 will not start

Ramon Kroese
02-20-2018, 09:27 AM
When I create a new license service with the 11.15 version of lmtools.exe the license service will not start and no lmgrd log file is created. After the creation of the service I got the error "Windows preferred paths <SystemDrive? \ProgramData to store service data is not set.".

When I create the same service with lmtools v11.12 the service can be started.

Can anyone explain why the service will NOT start?

P.S. I tried to troubleshoot the issue myself but I could not find any events in the application and/or system event logs. I have exported the service registry keys and compared them (hexidecimals converted to strings):

LMTools v11.15 LMTools v11.12
Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Test] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Test]
"Type"=dword:00000010 "Type"=dword:00000010
"Start"=dword:00000002 "Start"=dword:00000002
"ErrorControl"=dword:00000001 "ErrorControl"=dword:00000001
"ImagePath"="C:\Program Files\FLEXlm\lmgrd.exe" "ImagePath"=C:\Program Files\FLEXlm\lmgrd.exe
"DisplayName"="Test" "DisplayName"="Test"
"DependOnGroup"=NetworkProvider "DependOnGroup"=NetworkProvider
"ObjectName"="NT AUTHORITY\\LocalService" "ObjectName"="LocalSystem"
"DependOnService"=WinMgmt "DependOnService"=WinMgmt,wmiApSrv
"DelayedAutostart"=dword:00000001 "DelayedAutostart"=dword:00000001

Also there was a slight difference in the FLEXlm License Manager registry values:

LMTools v11.15 LMTools v11.12
Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00

"Lmgrd"="C:\\Program Files\\FLEXlm\\lmgrd.exe""Lmgrd"="C:\\Program Files\\FLEXlm\\lmgrd.exe"
"LMGRD_LOG_FILE"="C:\\Program Files\\FLEXlm\\Licenses\\Test.log""LMGRD_LOG_FILE"="C:\\Program Files\\FLEXlm\\Licenses\\Test.log"
"License"="C:\\Program Files\\FLEXlm\\Licenses\\Test.dat""License"="C:\\Program Files\\FLEXlm\\Licenses\\Test.dat"


03-01-2018, 12:52 PM
I've never seen that particular error before, but one of the more recent changes is that the service gets run as a more restricted user than before. So it is likely that the process doesn't have permissions to either read the directory where lmgrd.exe is, or write to the log file.
It's likely the log file. You generally shouldn't be writing into C:\Program Files\. Try changing that to a directory that is writable to everyone (or at least to the service that is running).

Ramon Kroese
03-05-2018, 06:30 AM
Thank you for your reply. I can confirm that the problem was caused by the debug log file. I configured a new license en set the debug log file to 'C:\ProgramData\FLEXlm\lmgrd\test.log'. The new license service could be started and the log file was created.