Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

Error connecting to license server

    • Ranga Swamy Balimidi
      Subscriber

      Hi,

      We are trying to run Ansys fluent on our Linux HPC environment but facing issue connecting to the license server. The license server is reachable through telnet from the client machine . 

       

      We’ve set licensing file environment variable as per Ansys documentation from below link.

       

      export ANSYSLMD_LICENSE_FILE=

       

      referred page: https://optics.ansys.com/hc/en-us/articles/7595785040403-Setting-environment-variable-in-Linux

       

      We are running Fluent as below per the Ansys docs.

       

      $ ./fluent -g 2d

      /cm/shared/apps/ansys/v241/fluent/fluent24.1.0/bin/fluent -r24.1.0 -g 2d

      /cm/shared/apps/ansys/v241/fluent/fluent24.1.0/cortex/lnamd64/cortex.24.1.0 -f fluent -g (fluent "2d -pshmem  -host -alnamd64 -r24.1.0 -t1 -mpi=intel -path/cm/shared/apps/ansys/v241/fluent -ssh")

       

      Opening input/output transcript to file "/tmp/fluent-20240711-124434-2791956.trn".

      Auto-Transcript Start Time:  12:44:34, 11 Jul 2024

      /cm/shared/apps/ansys/v241/fluent/fluent24.1.0/bin/fluent -r24.1.0 2d -pshmem -host -alnamd64 -t1 -mpi=intel -path/cm/shared/apps/ansys/v241/fluent -ssh -cx viking-headnode.cm.cluster:42397:40375

      Starting /cm/shared/apps/ansys/v241/fluent/fluent24.1.0/lnamd64/2d_host/fluent.24.1.0 host -cx viking-headnode.cm.cluster:42397:40375 "(list (rpsetvar (QUOTE parallel/function) "fluent 2d -flux -node -alnamd64 -r24.1.0 -t1 -pshmem -mpi=intel -ssh") (rpsetvar (QUOTE parallel/rhost) "") (rpsetvar (QUOTE parallel/ruser) "") (rpsetvar (QUOTE parallel/nprocs_string) "1") (rpsetvar (QUOTE parallel/auto-spawn?) #t) (rpsetvar (QUOTE parallel/trace-level) 0) (rpsetvar (QUOTE parallel/remote-shell) 1) (rpsetvar (QUOTE parallel/path) "/cm/shared/apps/ansys/v241/fluent") (rpsetvar (QUOTE parallel/hostsfile) "") (rpsetvar (QUOTE gpuapp/devices) ""))"

       

                    Welcome to ANSYS Fluent 2024 R1

       

                    Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.

                    Unauthorized use, distribution or duplication is prohibited.

                    This product is subject to U.S. laws governing export and re-export.

                    For full Legal Notice, see documentation.

       

      Build Time: Nov 22 2023 10:07:21 EST  Build Id: 10184

       

      Connected License Server List:              

       

      Unexpected license problem; exiting.

       

      Hit return to exit.

       

      As per the above output, it doesn’t show any license server.

       

      Do we have to provide any additional licensing information apart from exporting the environment variable at client machine where the linux version is installed..?

       

      Thanks,

      Ranga.

    • randyk
      Ansys Employee

      Hi Ranga,

      You indicate you confirmed port connectivity to the "LMGRD" port. 
      Flexnet licensing also has a Vendor Daemon port would also require network connectivity.
      This port is dynamic by default and you can identify the assigned port in the license log.
      However, you can set it to a static value by editing the license file VENDOR line and appending "PORT=1056"
      ex: VENDOR ansyslmd PORT=1056

      Is there a reason why you are attempting to use environment variable ANSYSLMD_LICENSE_FILE?
      You could create/modify the file   /cm/shared/apps/ansys/shared_files/licensing/ansyslmd.ini   with contents:
      SERVER=1055@LicenseServerName


      thanks
      Randy

    • Ranga Swamy Balimidi
      Subscriber

       

       

      Hi Randy,

      Thank you so much for your reply.

      I’ve modified the contets of /cm/shared/apps/ansys/shared_files/licensing/ansyslmd.ini   with contents:
      SERVER=1055@LicenseServerIP. 

      But still it runs into the same problem. 

      The licensing server is available at 1055 port and the windows version of Ansys works fine. 

      This is the first time we are setting up Ansys on Linux OS. Is there anything else we are missing to run “fluent”..?

       

      Thanks,

      Ranga.

       

       

       

      • MangeshANSYS
        Ansys Employee

        Hi 

        since the windows version is working but failing on linux 2 things come to my mind

        1. license server might be windows and on same domain and thus firewall might not be blocking any ports. but it just might be blocking traffic from linux IPs ?
        2. secondly is LSB installed (Ansys installation guide lists all the libraries that must be installed on linux as prerequisites preferably before installing Ansys)
    • randyk
      Ansys Employee

      Hi Ranga,
      Please run the following - does it display license server increments?
             /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil  lmstat  -i  -c 1055@LicenseServerIP

      You can also try running the following to perform a test checkout of the specified license feature:
            /cm/shared/apps/ansys/v241/licensingclient/linx64/ansysli_util  -checkout  ansys

      thanks
      Randy

    • Ranga Swamy Balimidi
      Subscriber

      Hi Randy,

      Following is the output for the commands..

      [root@viking-headnode linx64]# /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil lmstat -i -c 1055@137.148.142.33
      -bash: /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil: No such file or directory

      I ran it from the same directory where "lmutil" is installed. It is still unable to locate.

      [root@viking-headnode linx64]# /cm/shared/apps/ansys/v241/licensingclient/linx64/ansysli_util -checkout ansys
      ANSYS LICENSE MANAGER ERROR : Insufficient FlexNet Publisher (FNP) license count of Ansys Mechanical Enterprise are available for use, only 0 of the requested 1 tasks were available.

      ansys CHECKOUT FAILED

       

      Please let me know your comments.

       

      Thanks,

      Ranga.

       

    • randyk
      Ansys Employee

      Hi Ranga,

      I am suspecting you do not have LSB installed.

      The following should respond with version information once LSB packages have been installed.
      /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil -v 

      thanks
      Randy

    • Ranga Swamy Balimidi
      Subscriber

      Hi Randy,

      It's already been installed.

      [root@viking-headnode linx64]# yum install *lsb*
      Last metadata expiration check: 0:01:18 ago on Fri 12 Jul 2024 04:30:56 PM EDT.
      Package lsb_release-3.2-2.el9.noarch is already installed.
      Dependencies resolved.
      Nothing to do.
      Complete!

       

      Could you please share a document or link for installing Ansys with complete instructions..? I'll go ahead and try to reinstall it.

       

      Thanks,

      ranga.

    • randyk
      Ansys Employee

      Hi Ranga,
      Please confirm - these two commands continue to fail:

      file /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil

      /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil -v 

      'file lmutil' should result in:  /lmutil: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
      'lmutil -v' should result in: Copyright (c) 1989-2023 Flexera. All Rights Reserved. lmutil v11.19.4.2 build 291863 x64_lsb

      thanks
      Randy

       

    • Ranga Swamy Balimidi
      Subscriber

      Hi Randy,

      Thank you for your reply. Below is the output for commands..

      [root@viking-headnode linx64]# file /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil
      /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-lsb-x86-64.so.3, for GNU/Linux 2.6.18, stripped

      [root@viking-headnode linx64]# /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil -v
      -bash: /cm/shared/apps/ansys/v241/licensingclient/linx64/lmutil: No such file or directory

      And below is the list of files and their permissions in the directory where "lmutil" is..

      [root@viking-headnode linx64]# ls -al
      total 18400
      drwxr-xr-x 3 root root      112 Jul 11 11:24 .
      drwxr-xr-x 3 root root       20 Nov  3  2023 ..
      -rwxr-xr-x 1 root root 11414520 Nov  3  2023 ansyscl
      -rwxr-xr-x 1 root root  5908688 Nov  3  2023 ansysli_util
      -rwxr-xr-x 1 root root     3229 Oct 16  2023 LicensingSettings
      drwxr-xr-x 4 root root     4096 Oct 16  2023 LicensingSettingsUtility
      -rwxr-xr-x 1 root root  1506616 Sep 30  2023 lmutil

       

      Thanks,

      Ranga.

    • randyk
      Ansys Employee
      Hi Ranga,

      The issue is related to the OS version and Flexera version.
      Apparently, the lmutil  v11.19.4.2 is compiled against /lib64/ld-lsb-x86-64.so.3
      That's why you get "no such file" when you try to run it: The "interpreter" is missing.
      This Flexera release was shipped with ANSYS 2024R1 releases.
       
      ANSYS released a patch that provided  lmutil v11.19.5.0   - that is compatible with RHEL 9 and Ubuntu 22.04 

      Please install the "ANSYS_2024R1.03_LINX64.tgz"  Service Pack 3 for ANSYS 2024R1
      or install the latest available release ANSYS 2024R2

      thanks
      Randy
Viewing 9 reply threads
  • The topic ‘Error connecting to license server’ is closed to new replies.