Calling Gurobi from a website - License not found

1,924 views
Skip to first unread message

Pedro Castillo

unread,
Apr 29, 2012, 11:07:19 AM4/29/12
to Gurobi Optimization
Hi,

We have downloaded an Academic License to use Gurobi in our project.

We built a website on an IIS (Internet Information Services 7) Server
and from this we call Gurobi (which is installed on a server machine)
to solve a mathematical model, but we get a message that the license
file was not found. The license file is on the same server machine
where GUROBI is. We put the license file in an alternate location but
we follow the instructions to set the environment variable
GRB_LICENSE_FILE to point to the exact location of the license. We do
not know why our website is not finding the license file? Please,
could you help us with some guidance?

This is the message that our website shows: "ERROR: No Gurobi license
found (user [user name], host [name of the server machine], hostid
[server id]). Gurobi error #10009."

Thanks

Christopher Maes

unread,
Apr 30, 2012, 3:21:20 PM4/30/12
to gur...@googlegroups.com
> We put the license file in an alternate location but
> we follow the instructions to set the environment variable
> GRB_LICENSE_FILE to point to the exact location of the license. We do
> not know why our website is not finding the license file? Please,
> could you help us with some guidance?
>
> This is the message that our website shows: "ERROR: No Gurobi license
> found (user [user name], host [name of the server machine], hostid
> [server id]). Gurobi error #10009."

Hi Pedro,

That error message indicates that Gurobi could not find the license
file, and that the environmental variable GRB_LICENSE_FILE is not set.
Could you check that the GRB_LICENSE_FILE environmental variable is
being picked up by IIS? You might need to reboot for IIS to see
changes to environmental variables.

Thanks,
Chris

Pedro Castillo

unread,
May 14, 2012, 12:28:12 PM5/14/12
to Gurobi Optimization
Hi Chris,

We set up the system environmental variable (before we have just set
up the user variable). Now we have a new message:

ERROR: No validation file (host [Server name]) - run 'grbgetkey' to
refresh it.
Gurobi Error #10009

Does Gurobi read the license file and later try to verify it?
To verify the license, does Gurobi only require to find this
validation file (which I cannot find) or does it need to run this
grbgetkey command everytime?
Why is asking for the 'grbgetkey' command and not 'grbvalidate'?


Thanks for your help,
Pedro

Juan Salvador Mendoza

unread,
Jul 13, 2013, 11:16:05 PM7/13/13
to gur...@googlegroups.com
Did you finally solve this problem? Im having a similar one but using tomcat over linux.

Greg Glockner

unread,
Jul 14, 2013, 8:12:07 AM7/14/13
to gur...@googlegroups.com
For free academic licenses, there is a hidden validation file. Some systems delete this file. Rerun grbgetkey or grbvalidate to fix this issue, as indicated in the error message.

Juan Salvador Mendoza

unread,
Jul 14, 2013, 1:31:32 PM7/14/13
to gur...@googlegroups.com
Hi, I already did both commands (refresh key and validate key) and the problem persists. Its really weird because it seems like its detecting the file but fails when trying to read it. For example if a use a license from another host it detects it and sends the appropiate error, also if a erase the file the error changes to something like : "could not find the .lic file"


Any ideas? Im really stuck and all the variables are set correctly but I dont know how to proceed.

Greg Glockner

unread,
Jul 14, 2013, 8:48:36 PM7/14/13
to gur...@googlegroups.com
There are two separate files: the license key file (gurobi.lic) and the hidden academic validation file.

Try installing a fresh academic license from the Gurobi website. There's no limit on the number of academic licenses you may request and install.

Juan Salvador Mendoza

unread,
Jul 14, 2013, 11:48:30 PM7/14/13
to gur...@googlegroups.com
Thanks, the problem was that the hidden academic validation file was in a folder different than the home folder.
Reply all
Reply to author
Forward
0 new messages