Could not resolve host: token.gurobi.com (code 6
AnsweredHello everyone,
I successfully ran my job in the Low partition of the HPC. However, I encountered an error when attempting to run it in the Long partition. Any feedback or suggestions to resolve this issue would be greatly appreciated. Below is the error message.
Set parameter WLSAccessID
Set parameter WLSSecret
Set parameter LicenseID to value *******
Traceback (most recent call last):
File "/home/####/Gurobi_practice_many.py", line 687, in <module>
main(sh, upperBoundNumber=2) #,methd=3
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/####/Gurobi_practice_many.py", line 224, in main
model = gp.Model('ProbabilityMLE')
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/gurobipy/_model.pyx", line 146, in gurobipy._model.Model.__init__
File "src/gurobipy/gurobi.pxi", line 60, in gurobipy._core.gurobi._getdefaultenv
File "src/gurobipy/env.pxi", line 88, in gurobipy._core.Env.__init__
gurobipy._exception.GurobiError: Could not resolve host: token.gurobi.com (code 6, command POST https://token.gurobi.com/api/v1/tokens)
-
The machine Gurobi is running on is having trouble communicating with our WLS license servers. It could be a DNS or firewall issue. Can you ask the HPC system administrators to investigate why machines in the “Long” partition cannot access https://token.gurobi.com?
0 -
In addition to seeking help from your HPC sysadmin regarding the connection, as Eli suggested, I also wanted to note that an alternative to using WLS on academic HPC systems is to have your system administrator request an Educational Institution Site License (as noted here: How do I obtain a free academic license for a cluster or a shared computer lab?). Depending on the network setup, the administrator may prefer a site license, which will not require nodes to connect to https://token.gurobi.com.
0 -
Hi Eli, Than you for your help. The network team checked and the port is open for entire hpc. It works now.
The Educational Institution Site License has been requested from the other department. I will forward your message to the administrator. Than you, Dan.
0
Please sign in to leave a comment.
Comments
3 comments