Ansys Products

Ansys Products

Dyna cannot check keys from License Server

    • lex_93
      Subscriber
      The smp solver is successively compiled at a red hat 8 machine, but I cannot check the license from our license server. The error message is
       *** License problem ***
       Local license:
       *** Error Environment variable LSTC_FILE not set!
      but I've put the LSTC_FILE under '/usr/local/lstc/LSTC_FILE.txt' which include the following information:
      #LICENSE_TYPE: network 
      #LICENSE_SERVER: 137.99.3.84
      And the IP of the new workstation is in a allowed range, so I'm wondering if any extra setup is needed.

    • George Karnos
      Ansys Employee
      What licensing are you using ANSYS or LSTC?
      If ANSYS, Make sure the following is set:
      Variable:LSTC_LICENSE
      Variable Value: ANSYS
    • Reno Genest
      Ansys Employee


      Have you set the LSTC_LICENSE_FILE environment variable? If so, I would unset it and use the following environment variables on the client machine instead:
      LSTC_LICENSE=network
      LSTC_LICENSE_SERVER=host-or-IP-of-license-server

      With the method above, you won't use the LSTC_FILE, which is okay.

      I assume you are using the LSTC license to run LS-DYNA.

      Let me know if this helps or not.

      Reno.
    • lex_93
      Subscriber
      Hi Reno
      Thanks for your reply. Just to verify, the environment variable setup is to add the following two lines
      LSTC_LICENSE=network
      LSTC_LICENSE_SERVER=host-or-IP-of-license-server
      to my bashrc, right?
    • Reno Genest
      Ansys Employee


      You should be able to set environment variables using the terminal:
      setenv LSTC_LICENSE network
      setenv LSTC_LICENSE_SERVER host_or_ip

      Let me know how it goes.

      Reno.
    • lex_93
      Subscriber
      setenvis not a valid command for red hat. I'm wondering if there's any other way to set it up.
    • Reno Genest
      Ansys Employee


      The bashrc seems the way to go for red hat:
      "export VARNAME=var_value
      type this in /etc/bashrc as root and it will be set system-wide
      type this in ~/.bashrc and it will be set for your user"

      https://www.researchgate.net/post/How-to-set-environment-variable-in-red-hat-linux

      Let me know if it works or not.

      Reno.
    • lex_93
      Subscriber
      Hi Reno
      By setting the .bashrc as your solution
      export LSTC_LICENSE="network";
      export LSTC_LICENSE_SERVER="137.99.3.84";
      it solves the previous error message, but another one pops up as follows:
      ```
      [root@19dcn83 lstc]# ./ls-dyna_smp_d_R10_2_0_x64_redhat5_ifort160 i=RUN_main.k
      License option : check network license only
      Date: 05/25/2022Time: 15:09:54

      ___________________________________________________
      ||
      |LivermoreSoftwareTechnologyCorporation|
      ||
      |7374 Las Positas Road|
      |Livermore, CA 94551|
      |Tel: (925) 449-2500Fax: (925) 449-2507|
      |www.lstc.com|
      |_________________________________________________|
      ||
      |LS-DYNA, A Program for Nonlinear Dynamic|
      |Analysis of Structures in Three Dimensions|
      |Version : smp d R10.2.0Date: 03/05/2019|
      |Revision: 135267Time: 15:49:10|
      ||
      |Features enabled in this version:|
      |Shared Memory Parallel|
      |CESE CHEMISTRY EM ICFD STOCHASTIC_PARTICLES|
      |FFTW (multi-dimensional FFTW Library)|
      |ARPACK (nonsymmetric eigensolver library)|
      |Interactive Graphics|
      |ANSYS Database format|
      |ANSYS License (ANSYS160)|
      ||
      |Licensed to:|
      ||
      |Platform: Xeon64 System|
      |OS Level: Linux 2.6.32 uum|
      |Compiler: Intel Fortran Compiler 16.0 SSE2|
      |Hostname: 19dcn83|
      |Precision: Double precision (I8R8)|
      |SVN Version: 135479|
      ||
      |Unauthorized use infringes LSTC copyrights|
      |_________________________________________________|

      > i=RUN_main.k

      *** License problem ***
      Network license:

      *** Error License client cannot find any servers to talk to.
      Servers may be down, not ready, or the wrong version.


      Please contact
      Livermore Software Technology Corporation
      Tel: (925) 449-2500
      Fax: (925) 449-2507
      Email: key@lstc.com
      ```
      And I'm sure the IP of our current windows license server is 137.99.3.84 . I'm wondering if you have any suggestions on this error. Thank you.

    • lex_93
      Subscriber
      Hi Reno

      The previous error message is caused by the server user didn't turn on TCP and UDP ports 31010. By adding these port on the firewall, the issue is solved. Thank you.

    • Reno Genest
      Ansys Employee


      Sounds good! Thanks for letting the community know.

      Reno.
    • Johannes Johannes
      Subscriber

      I am having a similar issue trying to run LSTC LS-Dyna. The system is Red Hat (actually Rocky Linux 8.7). I initially set the variables as follows:

      export LSTC_LICENSE=network
      export LSTC_LICENSE_SERVER=31010@159.196.42.234
      export LSTC_INTERNAL_CLIENT=off
       
      which gave the following error output:
       
      *** Error lstc_client failed: No such file or directory
       
       *** License problem ***
       Network license:
       
       *** Error Could not run license client
       
       
       *** Error 70022 (OTH+22)
       
      Based on this thread, I then changed the way I set the variables to:
       
      export LSTC_LICENSE="network"
      export LSTC_LICENSE_SERVER="159.196.42.234"
      export LSTC_INTERNAL_CLIENT="off"
       
      which gave a slightly different error:
       
       *** License problem ***
       Network license:
       
       *** Error License client died!
       
       *** Error 70022 (OTH+22)
       
      After that, I also tried temporarily disabling the licence server's firewall, which resulted in the same error. I don't know if the first or second configuration is closer to correct.
       
      Does anyone have advice about the possible causes of this error?
    • Johannes Johannes
      Subscriber

      The solution here was to remove export LSTC_INTERNAL_CLIENT="off" from the script. This apparently allows LS-Dyna to use the lstc_client which is built into the executable, rather than running it as a standalone process. Just be aware that this may cause version compatibility issues, so it may be better to use export LSTC_INTERNAL_CLIENT="off" with the standalone lstc_client in some cases.  

Viewing 11 reply threads
  • You must be logged in to reply to this topic.