Windows preferred path systemdrive programdata to store service data is not set
Перейти к содержимому

Windows preferred path systemdrive programdata to store service data is not set

  • автор:

Windows preferred path systemdrive programdata to store service data is not set

January 27, 2020

A few clients, 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 \ProgramData to store service data is not set..

Windows preferred path

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 artwork.exe vendor daemon file is not running in Task Manager and the server status inquiry 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.

Reason: 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, artwork.exe, license.dat) 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.

Flexlm Properties

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.

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.
Flexlm Properties
Click Add. Type Everyone then click Check Names..
Flexlm Properties

Flexlm Properties

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.

Download VC Redistributable 2015 Libraries from Microsoft

If the issue persists, you should also install the 2015 VC Redistributable libraries from Microsoft. These libraries are needed for Flexlm 11.14 and up.
Download VC Redistributable 2015 Libraries from Microsoft

When configuring the network license manager as a Windows Service, why do I receive the error «Windows preferred path \Progra​mData to store service data is not set.»?

When using the ‘Use Services’ option in the Config Services Tab in LMTools, I’m getting an error:

Windows preferred path \ProgramData to store service data is not set. Please ensure Local Service user has modify privilege on the folder containing the debug log.

Accepted Answer

MathWorks Support Team on 1 Jun 2021

Direct link to this answer

Cancel Copy to Clipboard

Direct link to this answer

Cancel Copy to Clipboard

Edited: MathWorks Support Team on 14 Jun 2021

This can occur after certain Windows Server updates.

Our recommendation is to either choose a log location in C:\ProgramData or add the «Local Service» user account to the log file location specified in the Config Services path with read, write, and execute permissions. Save the changes and try starting the license manager again.

Windows Preferred Path Not Set

Problem: You may have noticed a change in recent releases of the Autodesk Network License Manager (since 11.13.x) where when configuring the Service an error message pops up stating Windows preferred path \ProgramData to store service data is not set.

news-2018-tech-1

This 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.

news-2018-tech-2

Reason: 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 Local Service rights rather than Local System, 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 changed the default location for the debug.log file to the C:\ProgramData folder because that is where Local Service has its write privileges.

news-2018-tech-tn-3

Work-Around: As it turns out, the idea of placing the debug.log file in some random hidden folder used by the operating system rather than the location normally used in the past seem absurd, especially given we only have to make these changes once a year and forget about it. However, since the Local Service doesn’t have the same write privileges as Local System or your own administrative user group, you will often run into one of these errors and as a result your NLM simply will not start.

  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, .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.
  1. 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.
  1. 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.

news-2018-tech-tn-4

news-2018-tech-tn-5

  1. 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 controlunder Permissions. Click OK and then OK again to close all property windows.

news-2018-tech-tn-6

Note: 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.

  1. 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.

Moving forward with subsequent releases should make this process much easier in the future, since the file and folder permissions have been set. In the end, you want your Autodesk Network License Manager up and running so you don’t have to think about it again.

Keep an eye out for future tips from me!

Windows preferred path systemdrive programdata to store service data is not set

Installation and Licensing that’s includes Intel Quartus® Prime software, ModelSim* — Intel FPGA Edition software, Nios® II Embedded Design Suite on Windows or Linux operating systems.

Success! Subscription added.

Success! Subscription removed.

Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your profile.

  • Intel Community
  • Product Support Forums
  • FPGA
  • Intel® FPGA Software Installation & Licensing
  • FLEXLM PORT

1147 Discussions

FLEXLM PORT

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

‎04-07-2021 09:09 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

we purchased Quartus Standard and DSP Builder with a floating license. i was able to install and set up flexlm for the Quartus software but am having problems with the DSP builder. i selected a port outside of the 27000-28000 range and checked to make sure it was available (it is) but i cannot get the DSP builder service to start up. i went to the training course for setting up the floating license, set it up according to the instructions and still no luck.

Not sure if this is related to my issue, but i do keep getting an error that says «Windows preferred path \programdata to store service data is not set. Please ensure local service user has modify priviledge on the folder containing the debug.log » i checked and it does

I have tried several ports (outside the requested range) and nothing seems to allow it to start.

  • All forum topics
  • Previous topic
  • Next topic

‎04-07-2021 07:10 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Welcome to INTEL forum. To narrow down this issue. Can you provide your

1)full debug/error.log file

2) Error message screen shot

3) Quartus version use

4) Machine OS information

5) License.dat file

And for privacy, you can also reply/attach your file in private message.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *