Primary informations
Username: rubino
Cluster: yggdrasil
Description
I am trying to run a data intensive, energy optimization model on Yggdrasil (sbatch abc.sh). This model uses the solver gurobi for optimization. Till December 2024 I run such models without problems. I tried now March 2025 and I get the error : gurobipy.GurobiError: Web license service only available for container environments
Steps to Reproduce
I can run a simple version of this model, on Yggdrasil or baobab, but I get the same message error in the output.
Expected Result
I expect the model to solve the optimization problem smoothly like before (In the mean time, I did not change anything)
Actual Result
Model run crashed with the following error message:
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
File "/home/users/r/rubino/baobab_python_env/lib/python3.9/site-packages/pyomo/solvers/plugins/solvers/GUROBI_RUN.py", line 66, in gurobi_run
model = read(model_file)
File "src/gurobipy/gurobi.pxi", line 3571, in gurobipy.read
File "src/gurobipy/gurobi.pxi", line 80, in gurobipy.gurobi.read
File "src/gurobipy/gurobi.pxi", line 32, in gurobipy.gurobi._getdefaultenv
File "src/gurobipy/env.pxi", line 62, in gurobipy.Env.__init__
gurobipy.GurobiError: Web license service only available for container environments
ERROR: Solver (gurobi) returned non-zero return code (1)
ERROR: See the solver log above for diagnostic information.
Traceback (most recent call last):
File "/home/users/r/rubino/now_old_SURE_2035_new_model_version/CH_MUN_EXPANSE_V4_2035_new/cluster_original_168h/control/run_Swiss_EXPANSE_2035_MinCost.py", line 147, in <module>
model,results = solve_model_mincost(model)
File "/home/users/r/rubino/now_old_SURE_2035_new_model_version/CH_MUN_EXPANSE_V4_2035_new/cluster_original_168h/EXPANSE/solve_model.py", line 52, in solve_model_mincost
results = SolverFactory(opts['solver_name']).solve(model,
File "/home/users/r/rubino/baobab_python_env/lib/python3.9/site-packages/pyomo/opt/base/solvers.py", line 627, in solve
raise ApplicationError("Solver (%s) did not exit normally" % self.name)
pyomo.common.errors.ApplicationError: Solver (gurobi) did not exit normally