- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Problem: A few people, including myself, have come across this error in more recent versions of LMTOOLS (since 11.13.x) where when configuring the Service an error message pops up stating Windows preferred path <SystemDrive>\ProgramData to store service data is not set.
LMTOOLS Warning
And may also be accompanied by this warning message in the status bar when trying to start the service:
VD is starting, please check vendor daemon's status in debug log
As a result, the service fails to start. The adskflex.exe vendor daemon file is not running in Task Manager and the server status enquiry shows that the license manager is not running. Subsequently, there may not be a debug.log file created or the log file contains little to no data.
Log On uses Local ServiceReason: As it turns out, recent changes to the LMTOOLS permissions when creating the service have attributed to this error. It is also more likely to occur when using Windows Server 2012/2016, which has much more strict permissions constraints than client OS machines or Windows Server 2008. As a result of this change, the service is created with LocalService rights rather than LocalSystem, as it has been in the past. This minor change in permissions is enough to prevent your license manager from starting properly. This is why LMTOOLS has recently defaulted the location for the debug.log file to the C:\ProgramData folder because that is where LocalService has its write privileges.
Work-Around: As it turns out, many of us do not prefer the debug.log file to be in some random hidden folder used by the operating system. However, since the LocalService doesn't have the same write privileges as LocalSystem or your own administrative group user, you will often run into one of these errors and your NLM simply will not start. Whereas I suspect you could simply change the Log On properties to LocalService, I prefer a much easier solution.
1. Create a new folder in the root of C:\ called C:\FlexLM and copy all of your license manager files (lmgrd.exe, lmtools.exe, lmutil.exe, adskflex.exe, <yourlicensefile>.lic) into this folder. Note: Since recent releases of FlexLM, the default location of C:\Program Files has been changed due to the restrictive permissions of recent Windows Server Operating Systems. It is now best practice to install in a root directory of your choosing. If you do choose to keep it under Program Files, then the following steps will still apply.
2. Right-click the folder and choose Properties from the context menu. In the folder properties, choose the Security tab and then click the Edit... button to change permissions.
Click Edit...3. In the Permissions properties window, click the Add... button. In the next window, type Everyone into the object names box, then click Check Names to verify. Then click OK to continue.
Click Add...
Type Everyone then click Check Names
4. On the Permissions window, Everyone should now be listed under Group or user names. Make sure it selected and then check the box for Full control under Permissions. Click OK and then OK again to close all property windows.
Highlight Everyone and then check Full controlNote: If you have subfolders and intend to use them for the debug.log file, you should click the Advanced button and Change Permissions... to check the box to Replace all child object permissions with inheritable permissions from this object.
5. Now configure your Autodesk Network License Manger service using this new configured C:\FlexLM folder with full permissions. You can now configure your debug.log file to point to this folder as well. Your license manager should now start as expected, though you still may get the warning when saving the service. This is due to the debug.log file not being created under C:\ProgramData, but will not affect the workings of the license manager.
If you need a Quick Start guide on how to configure LMTOOLS, please see my article here.
Good Luck!
Travis Nave
My Expert Contributions to the
FLEXnet License Admin | MSI Cleanup Utility | .NET Framework Cleanup Tool | IPv6 NLM Fix | adskflex.opt Options File | Combine .LIC Files
Solved! Go to Solution.