Licence Error as Windows Service
AnsweredHi,
I am using Gurobi with a free academic licence installed as administrator. The optimization is realised inside a python program and works well.
Know I want to run this program as an automatic Windows Service using the non-sucking service manager (nssm). Unfortunately I get the error:
gurobipy.GurobiError: User name mismatch (licensed to 'administrator', current user is 'system')
Is there any way install a academic licence for 'system' as well or any other way to solve this error?
Thank you in advance!
Sharon
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Sharon,
You would have to set up an academic license as the user 'system' in order to make it available for this user. There is no way to change the owner of an academic license. Thus, you can just get a new one and set it up for 'system'. The blog on How to Run a Program as SYSTEM might be helpful.
Best regards,
Jaromił0 -
Hi Jaromił,
Thank you for your fast reply. Your answer helped, especially the link you provided. I installed a new licence for the user: ‘system’ using PsExec. I’ve checked the licence file, it says USERNAME=system.
Unfortunately is still get the same error message. Is there a special location where to store the licence file or any other thing I am missing here?
Best regards
Sharon0 -
This issue has been solved in an internal ticket. It was necessary to set up 2 licenses, one for \(\texttt{system}\) and one for \(\texttt{admin}\). Then, one has to choose the correct license file via setting of the environment variable \(\texttt{GRB_LICENSE_FILE}\) depending on which user is using Gurobi.
0
Post is closed for comments.
Comments
4 comments