# Gurobi solver license issue

**URL:** <http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459>\
**Category:** HPC Technical\
**Created:** [September 18, 2019, 9:24am UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459 "2019-09-18T09:24:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan-Philipp.Sasse](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@Jan-Philipp.Sasse](http://hpc-community.unige.ch/u/Jan-Philipp.Sasse)\
**Post date:** [September 18, 2019, 9:24am UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/1 "2019-09-18T09:24:52Z")

</div>

Hey everyone!

I have an issue with the Gurobi solver license file. Maybe someone else experienced this issue before? It seems that the Gurobi solver cannot access the “master.cluster” license file.

**First, I load the Gurobi solver environment on Baobab**  
module load Gurobi

**Then I check token availability**  
[sasse@login2 Baobab]$ gurobi\_cl --tokens  
Failed to connect to token server ‘master.cluster’ (port 41954).  
Problem retrieving token server status

Failed to connect to token server ‘master.cluster’ (port 41954) - license file ‘/opt/ebsofts/Core/Gurobi/8.1.1/gurobi.lic’. Consult the Quick Start Guide for instructions on starting a token server.

**I also tried to download my own license and specifying it in the .bashrc file**  
export GRB\_LICENSE\_FILE=/home/sasse/gurobi.lic

Any advice? As a workaround it would be ok to install another fastt solver like coincbc but here I also have issues installing it. GLPK is quite slow but works.

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [September 18, 2019, 2:51pm UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/2 "2019-09-18T14:51:50Z")

</div>

Dear Jan-Philipp,

it’s corrected.

```auto
[sasse@login2 ~]$ module load Gurobi
[sasse@login2 ~]$ gurobi_cl --tokens

Checking status of Gurobi token server 'master.cluster'...

Token server functioning normally.
Maximum allowed uses: 4096, current: 0

```

---

<div class="post-metadata">

**Author:** ![Jan-Philipp.Sasse](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@Jan-Philipp.Sasse](http://hpc-community.unige.ch/u/Jan-Philipp.Sasse)\
**Post date:** [September 18, 2019, 6:29pm UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/3 "2019-09-18T18:29:03Z")

</div>

Awesome, thanks!

It’s way faster now.

---

<div class="post-metadata">

**Author:** ![Jan-Philipp.Sasse](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/j/8e8cbc/32.png) [@Jan-Philipp.Sasse](http://hpc-community.unige.ch/u/Jan-Philipp.Sasse)\
**Post date:** [January 23, 2020, 1:22pm UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/4 "2020-01-23T13:22:08Z")

</div>

Hello @Yann.Sagon,

I am again running into Gurobi issues.

The license server works but it says the license expired.

[sasse@login2]$ module load Gurobi  
[sasse@login2]$ gurobi\_cl --tokens  
Checking status of Gurobi token server ‘master.cluster’…  
Token server functioning normally.  
Maximum allowed uses: 4096, current: 0

Step 3: RUNNING PyEXPANSE  
ERROR: Solver (gurobi) returned non-zero return code (1)  
ERROR: Solver log: Traceback (most recent call last):  
File “”, line 5, in File  
“/home/sasse/baobab\_python\_NEW/lib/python3.5/site-  
packages/pyomo/solvers/plugins/solvers/GUROBI\_RUN.py”, line 61, in  
gurobi\_run  
model = read(model\_file)  
File “gurobi.pxi”, line 2774, in gurobipy.read File “gurobi.pxi”, line  
71, in gurobipy.gurobi.read File “gurobi.pxi”, line 23, in  
gurobipy.gurobi.\_getdefaultenv File “env.pxi”, line 48, in  
gurobipy.Env. **init**  
gurobipy.GurobiError: Request denied: license expired  
Traceback (most recent call last):  
File “PyEXPANSE.py”, line 343, in   
result = SolverFactory(solver\_name).solve(model)  
File “/home/sasse/baobab\_python\_NEW/lib/python3.5/site-packages/pyomo/opt/base/solvers.py”, line 600, in solve  
“Solver (%s) did not exit normally” % self.name)  
pyutilib.common.\_exceptions.ApplicationError: Solver (gurobi) did not exit normally

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [January 24, 2020, 5:07pm UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/5 "2020-01-24T17:07:47Z")

</div>

Hello, I checked and the license has expired. It’s valid for one year.  
I wrote to Gurobi to ask a new license. I’ll let you know when it’s done.

Best

---

<div class="post-metadata">

**Author:** ![Aleksey.Tetenov](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@Aleksey.Tetenov](http://hpc-community.unige.ch/u/Aleksey.Tetenov)\
**Post date:** [January 30, 2020, 10:25am UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/6 "2020-01-30T10:25:57Z")

</div>

Hello, I’m also waiting for the update of the Gurobi license.

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [February 4, 2020, 2:23pm UTC](http://hpc-community.unige.ch/t/gurobi-solver-license-issue/459/7 "2020-02-04T14:23:52Z")

</div>

Dear users, the new Gurobi license is activated.

Best
