ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
431 stars 121 forks source link

Is it possible to disable a feature to match available licenses? #658

Closed chart-magnum closed 3 years ago

chart-magnum commented 3 years ago

Describe the bug While executing docker run, a license server replies with an error:

ANSYS LICENSE MANAGER ERROR:
Failover feature 'Ansys Mechanical Enterprise' is not available.
Request name ansys does not exist in the licensing pool.
No socket connection to license server manager.
Feature:       ansys
License path:  2325@lic-ansys.ethz.ch:
FlexNet Licensing error:-7,10015
 *** ERROR - ANSYS license not available.

Is it possible to disable that feature?

To Reproduce Steps to reproduce the behavior:

  1. Open terminal
  2. Execute command
    docker run -e ANSYSLMD_LICENSE_FILE="2325@lic-ansys.ethz.ch" -p 50052:50052 docker.pkg.github.com/pyansys/pymapdl/mapdl:v21.1.0 -smp -aa_t_i

Expected behavior A MAPDL gRPC server is started.

Screenshots image

System Information:

akaszynski commented 3 years ago

First off, it's great that you're able to get docker on Windows to run MAPDL. Let's figure out the academic licensing issue.

I've noted a few issues:

INCREMENT ansys ansyslmd 2021.1231 31-dec-2021 500 6D133224352D \
VENDOR_STRING="customer:00000054 tp:a" \
SUPERSEDE ISSUED=27-aug-2020 START=27-aug-2020 SIGN2="00BF F28C "

Where tp:a has been added to VENDOR_STRING

Recommendations

chart-magnum commented 3 years ago

Thank you for prompt reply! I tried to run the docker with port 1055 to no avail. I'll check with IT support about 2021R1 license. On my machine I have ANSYS2020R2. I'd like to try a docker with the license I have already. Do you provide a docker image for that version?

chart-magnum commented 3 years ago

Indeed, it was a matter of getting the license server for ANSYS2021R1. Thank you for your help!

akaszynski commented 3 years ago

Indeed, it was a matter of getting the license server for ANSYS2021R1. Thank you for your help!

Great! Thanks for posting that the solution worked here.