Contact Us

If you still have questions and are an active SimuTech customer, please submit a request.

  • Ansys Training
  • Skills Center
  • Consulting
  • About
  • Contact Support
  • Home
  • Installation

    • Installation Guides

      • Ansys Download & Installation Guide (Start Here!)
      • HOW TO - Download & Install Ansys Student
      • HOW TO - Access the Ansys Customer Portal / Ansys Account
    • Setup Tasks

      • HOW TO - Obtain Your Ansys License File
      • HOW TO - Add Firewall & Port Exceptions for Ansys License Manager
      • HOW TO - Install an Ansys License Key/File
      • HOW TO - Specify an Ansys License Server
      • HOW TO - Set Custom/Static License Server Ports
      • HOW TO - Install Ansys' Required Linux Packages & Libraries
      • HOW TO - Gather License Server Host Info
      • HOW TO - Integrate Electronics with Ansys Workbench
      • HOW TO - Add Elastic Licensing in Client Licensing Settings
      • HOW TO - Change Discovery Licensing Mode
    • Requirements & Info

      • INFO - How to Work Remotely with Ansys
      • INFO - Ansys License Manager Overview & System Requirements
    • Optional Configurations

      • HOW TO - Set User License Privileges via an Options File
      • HOW TO - Modify the License Timeout Setting in Options File
      • HOW TO - Create an ansyslmd.opt OPTIONS file
      • HOW TO - Make an Ansys License Server Public Facing (BYOL)
    • Uninstallation

      • HOW TO - Uninstall Ansys Software
      • HOW TO - Comprehensively Reinstall Ansys
  • Troubleshooting

    • Troubleshooting Guides

      • Ansys Troubleshooting Guide
      • HOW TO - Test & Fix License Manager Connectivity Issues
      • HOW TO - Fix Ansys License Checkout Errors
      • HOW TO - Fix Ansys Application Errors & Issues
    • License Manager Connectivity

      • HOW TO - Test & Fix License Manager Connectivity Issues
      • HOW TO - Add Firewall & Port Exceptions for Ansys License Manager
      • HOW TO - Reset Your Ansys Profile Folder
      • HOW TO - Verify the License Manager is Running
      • HOW TO - Identify if other software is using the same ports Ansys uses?
      • HOW TO - Test if Ansys is blocked by the Windows Firewall on a Client Computer
      • HOW TO - Manually Reset Your Specified License Servers (ansyslmd.ini)
    • License Checkout Issues

      • HOW TO - Fix Ansys License Checkout Errors
      • HOW TO - Check Ansys License Server Version
      • HOW TO - Verify your license is valid & not expired
      • HOW TO - Reset Ansys License Preferences
      • HOW TO - Reset Your Ansys License File
      • HOW TO - Reset Ansys Settings to Default
      • HOW TO - Reset Your Ansys Profile Folder
      • HOW TO - Identify what license features you are attempting to checkout
      • HOW TO - Restore an Ansys license backup file
      • HOW TO - Release a Stuck/Reserved/Abandoned License
      • HOW TO - Access the Ansys License Management Center from Other Computers
    • Application Functionality Issues

      • HOW TO - Fix Ansys Application Errors & Issues
      • HOW TO - Reset Your Ansys Profile Folder
      • HOW TO - Update Drivers & Software
      • HOW TO - Run Product & CAD Configuration Manager
      • HOW TO - Verify the Integrity of Installation Files
      • HOW TO - Manually Reinstall Prerequisite Microsoft Software
      • HOW TO - Test if Ansys is blocked by the Windows Firewall on a Client Computer
      • HOW TO - Troubleshoot Antivirus/EDR Software with Ansys
      • HOW TO - Create a Cube & Apply Gravity
      • HOW TO - Review Windows Event Logs for Clues
    • Windows OS / Hardware Issues

      • HOW TO - Check & Repair Windows Installation
      • HOW TO - Update Drivers & Software
      • HOW TO - Troubleshoot a Windows Bluescreen (BSOD)
      • HOW TO - Troubleshoot Windows Update Errors
      • HOW TO - Run Dell Hardware Diagnostics
      • HOW TO - Boot to Safe Mode
      • HOW TO - Review Windows Event Logs for Clues
    • CAD Plugin Issues

      • HOW TO - Reset Your Ansys Profile Folder
      • HOW TO - Review Windows Event Logs for Clues
    • Project Specific Issues

      • HOW TO - Rule out your Model, Ansys Version & Computer as the Cause
    • Uninstallation Guides

      • HOW TO - Uninstall Ansys Software
      • HOW TO - Comprehensively Reinstall Ansys
    • Other Tasks

      • HOW TO - Open a Command Prompt
      • HOW TO - Open PowerShell
      • HOW TO - Edit Your Windows Host File
      • HOW TO - Create an Environment Variable
      • HOW TO - Review Windows Event Logs for Clues
    • Diagnostic Logs

      • HOW TO - Gather Ansys Diagnostic Logs
      • INFO - Ansys Diagnostic Logs Cheat Sheet
      • HOW TO - Review Windows Event Logs for Clues
  • Errors & Solutions

    • ERROR - Ansys License Manager Won't Start
    • ERROR - Capability ANSYS IcePak does not exist in the ANSYS licensing pool.
    • ERROR - ANSYS Electronics Desktop Will Not Launch After Windows Update
    • ERROR - Cannot return a borrowed license
    • ERROR - Black screen in CFX-Pre and CFD-Post
    • ERROR - License Manager Server Hangs/Locks Up
    • ERROR - "Failed to Enable Feature" - Pro, Premium, Enterprise Licensing Available on Server
    • ERROR - Failed to export NASTRAN file
    • ERROR - Unable to check out feature: motorcad
    • ERROR - Could not connect to any License Server
    • ERROR - Could not connect to any license server. The server is down...
    • ERROR - Elastic Licensing Remains Disabled After Configuration as Administrator
    • ERROR – Unable to Specify License Server in Version 2021 R1
    • ERROR - Project contains data that requires software modules not are not installed
    • ERROR - Hostid in the license file is not a valid hostid
    • ERROR - This type of license file must be appended...
    • ERROR - Could not save server and port to file
    • ERROR - Destination File Could not be Created
    • ERROR - Capability ANSYS SpaceClaim Direct Modeler Does Not Exist...
    • ERROR - No Valid Inventor Installation Detected
    • ERROR - No valid INCREMENT lines were found
    • ERROR - Correctly-formatted Vendor Line Was Not Found
    • ERROR - Workbench Toolbox Does Not Load
    • ERROR - Attempt to create the following configuration status file was unsuccessful
    • ERROR - Attempt to populate the CVD 'license_files' directory...
    • ERROR - Warning: No License Files Were Found in the following location...
    • ERROR - Failed to get license for ncodedesktop
    • ERROR - Unable to connect to or start local server
    • ERROR - Not connected to a server for Licensing Client Proxy actions
    • ERROR - Mechanical failed to open the database
    • ERROR - Temporary License Stops Working
    • ERROR - Pan and Tilt Don't Work / Choppy
    • ERROR - "FATAL ERROR: Port 1084 is in use." when installing Ansys License Manager
    • ERROR - Connection Timed Out While Reading Data
    • ERROR - Not Enough HPC Parallel Licenses
    • ERROR - Translator Installation for CATIA V5 and SOLIDWORKS Import not Found
    • ERROR - "Ansys BladeModeler" Not Available When Opening DesignModeler
    • ERROR - 93317 Microsoft JScript runtime error
    • ERROR - Creo Toolkit Startup Errors
    • ERROR - Linux - Error While Loading Shared Libraries
    • ERROR - Importing Mesh from SpaceClaim to Fluent
    • ERROR - Unable to Attach Geometry from Creo
    • ERROR - License Server Lost for X Minutes
    • ERROR - Failover feature 'Discovery - level 1' is not available
    • ERROR - Cannot submit Ansys Cloud jobs
    • ERROR - Mechanical Crashes when using Image to File
    • ERROR - SpaceClaim Structure Tree Items Disappear
    • ERROR - Failed to stop the license manager
    • ERROR - An unexpected error has occurred: Failed to back up file XXXX\MECH\file.rst
    • ERROR - Fluent Launcher Crashes
    • ERROR - spawn lmutil ENOENT
    • ERROR - LoadLibrary failed with error 87
    • ERROR - Required addins could not be loaded
    • ERROR - Proxy process identifier could not be determined
    • ERROR - Licensed Number of Users Already Reached
    • ERROR - Cannot Borrow a License
    • ERROR - This license file will not be installed
    • ERROR - Request name disco_level1 does not exist in the licensing pool
    • ERROR - Port number are not the same in all license files
    • ERROR - The required license file was not found
    • ERROR - "Unable to attach geometry file" (SolidWorks)
    • ERROR - Prerequisite error "MS ASP.NET Hosting Bundle 6.0.8"
    • ERROR - HTTP Error When Gathering Diagnostics
    • ERROR - Workbench plugin for Inventor does not work
    • ERROR - Request name disco_level1 does not exist in the licensing pool (-5,147)
    • ERROR - Request name cfd_solve_level2 does not exist in the licensing pool (-15,10032)
    • ERROR - Electronics Desktop opens as Twin Builder or another Desktop Configuration
    • ERROR - Switching Network Connections Checks Out Another License
    • ERROR - Failover Feature 'Ansys electronics_desktop' is not available
    • ERROR - Laptop battery drains excessively or gets very hot
    • ERROR - Problem during getAllQueues
    • ERROR - Can't Edit Mech Contours
    • ERROR - Script Error When Opening Mechanical From Workbench
    • ERROR - No Customers Found in Licensing Portal
    • ERROR - Please contact your sales representative to request a machine change
    • ERROR - Failover feature Ansys IcePak is not available
    • ERROR - Software modules are not installed
    • ERROR - cx_Freeze: Python error / ImportError: DLL load failed
    • ERROR - No license for OpticStudio was found
    • ERROR - Newton-Raphson Residuals for the incomplete solution cannot be loaded
    • ERROR - Update failed for the Setup component in skin assy
    • INFO - Issues Using OneDrive, Dropbox, etc.
    • ERROR - Hostname is not a valid hostname, exiting
    • ERROR - Fatal Error Opening Workbench Files
    • ERROR - An unexpected error (SIG$SEGV) ...
  • How To's

    • Administrative Tasks

      • HOW TO - Change/Move License Servers
      • HOW TO - Gather License Server Host Info
      • HOW TO - Add users to Ansys Licensing Portal
      • HOW TO - Obtain Elastic License Server Credentials
      • HOW TO - Locate Your Ansys Customer #
      • HOW TO - Change the Hostname of an Ansys License Server
    • Reporting & Usage Stats

      • HOW TO - View License Usage & Status
      • HOW TO - Review License Usage Data from a Different Computer
    • License Borrowing

      • HOW TO - Borrow an Ansys License
      • ERROR - Cannot Borrow a License
    • Other

      • HOW TO - Stop/Start the Ansys License Manager
      • HOW TO - Compress/Extract Data Using 7zip
      • HOW TO - Open the Ansys License Management Center
      • HOW TO - Enable Shared Web Licensing in License Settings
    • HOW TO - Enable Shared Web Licensing in License Settings
  • Info

    • INFO - Ansys License Server Commands
    • INFO - Is a Evaluation/Temporary License Borrowable?
    • INFO - Ansys Hardware Recommendations & Supported 3rd Party Software
    • INFO - Setting up a VPN to an Ansys License Server
    • INFO - Ansys 3rd Party Software & Hardware Support
    • INFO - Ansys Account Roles & Permissions
    • INFO - Ansys License Manager Overview & System Requirements
    • INFO - How to Work Remotely with Ansys
    • INFO - Ansys Resources & Portals Guide
    • INFO - Product to License Feature Mapping Document
    • INFO - Ansys New License Terms & Conditions
    • INFO - Technical License Server Changes in version 2021 R1
    • INFO - Ansys Version & Release Date History
    • SimuTech Online Training Course Checklist
    • INFO - Is Ansys affected by the Log4j vulnerability?
    • INFO - Understanding Ansys License Files (ansyslmd.lic)
    • INFO - Understanding Ansys License Checkout
    • INFO - Can I install Ansys on a secondary hard drive?
    • INFO - What is license sharing and how do I use it?
    • INFO - What happens when you lose connection to an Ansys license server?
    • INFO - Getting Started with Ansys Gateway powered by AWS
    • INFO - Ansys Shared Web Licensing
    • INFO - Ansys Diagnostic Logs Cheat Sheet
    • HOW TO - Review Windows Event Logs for Clues
  • Remote Solve Manager

    • HOW TO - Setup Ansys Remote Solve Manager (RSM)
    • HOW TO - Verify No Ans.Rsm Processes are Running
    • INFO - Remote Solve Manager Roles & Terminology
    • HOW TO - Install the RSM Launcher Service
    • HOW TO - Uninstall the RSM Launcher Service
    • HOW TO - Install Remote Solve Manager Standalone Services (RSM)
    • HOW TO - Uninstall Remote Solve Manager (RSM)
    • RSM Installation Quick Start Guide (Windows)
  • Employee Login

Can't find what you're looking for?

Contact Support

Installation & Licensing Center

Contact Us

If you are an active or future SimuTech customer and have questions or simply prefer to get help directly from an engineer, we'd be happy to help!

  • Home
  • Installation
    Installation Guides Setup Tasks Requirements & Info Optional Configurations Uninstallation
  • Troubleshooting
    Troubleshooting Guides License Manager Connectivity License Checkout Issues Application Functionality Issues Windows OS / Hardware Issues CAD Plugin Issues Project Specific Issues Uninstallation Guides Other Tasks Diagnostic Logs
  • Errors & Solutions
  • How To's
    Administrative Tasks Reporting & Usage Stats License Borrowing Other
  • Info
  • Remote Solve Manager
+ More

HOW TO - Release a Stuck/Reserved/Abandoned License

Authored by Nick Heberle July 28th, 2023 6416 views 3 likes KB1072674

Description

Delete

Fixed

The 2023R2 release of the License Manager improves and fixes the design and bugs that cause stuck and abandoned licenses to occur.  We strongly recommend upgrading‍ as a first step to solve any related problems.


There may be occasions where you need to manually release a reserved license.  Most frequently this is required if the license becomes stuck or abandoned due to network connectivity issues or rare license server glitches. 

  • Reserved License - a license that is actively checked out by a client.
  • Released License - A license that is available to be checked out. When the client software closes or stops needing a license, it will be checked it back in, releasing the reservation it has on it. If the client loses connectivity with the license server, this reservation will be automatically released by the license server ~2 - 2.5hrs after the client was initially disconnected.
  • Stuck License - a license that is permanently stuck in the reserved state, due to a software glitch, even after the client has been disconnected for 2-2.5hrs.
  • Abandoned License - a term used to describe a license that is reserved by a client that has disconnected and then reconnected under a new client ID.  When this occurs, the client does not resume the previous license reservation and must check out an additional license.  (The original reservation will be released as normal after ~2-2.5hrs). This situation can be caused by several things:
    • A client reconnects from a new network adapter such as going from Ethernet to WiFi.
    • A client reconnects after going from the office network to a home network using a VPN.
    • A client is using a VPN and it disconnect and reconnects.  Even this establishes a new client ID. 


Related - ERROR - Cannot return a borrowed license‍ 

Solution

Option 1 - Close the Client Software

While fairly straight forward, the most basic way to release a reserved license is to close the client software that is reserving it.  However, the client must be connected to the license server when this is done, otherwise, the license will not be immediately checked back in.

Delete

Option 2 - Wait for License Timeout

Assuming the client who initially reserved the license has disconnected and the license is not stuck, it will be automatically released, by default, ~2 - 2.5hrs two hours after the client was initially disconnected.  If the license is still reserved after 2.5hrs in this scenario, the license is stuck and you will need to use another method.

Delete

Option 3 - Restart the Ansys License Manager

The fastest solution to release all reserved, stuck or abandoned licenses is to restart the Ansys License Manager

Delete

Warning for Multi-User Environments

When restarting the server in a multi-user environment, the checkout/reservation status of all licenses will be reset on the server.  Clients running the software at the time of the restart will attempt checkout a license again on their next heartbeat interval (~5-10min depending on the product). This means all license reservations will be lost and a user can potentially "cut in line".

Worst Case Scenario:

Engineer A is performing a long solve > the license server is restarted > 1min later Engineer B opens the software and pulls the same license that Engineer A was using > 2min later Engineer A's software attempts to checkout a license during the software's heartbeat interval (every ~5min) but can't, because it's already reserved by Engineer B > Engineer A's software runs for approximately 55min (attempting every ~5min to grab a license) until it finally closes and the solve stops.

Note - you can reserve licenses for users via an options file if necessary, but this takes some additional consideration and time to setup - HOW TO - Set User License Privileges via an Options File‍  

Delete

Option 4 - Manually Release an Increment from FlexLM via Command Line

Delete

Info

For versions 2020 R2 and before, instructions for both Ansys Licensing Interconnect and FlexLM must be followed depending on where the license reservation is located.


  1. Verify the license increments currently checked out via FlexLM
    1. On the license server, open a command prompt
    2. Change directory to the folder with the licensing utilities:
      cd C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64
    3. Use lmstat to query the license serverfor currently checked out increments:
      lmutil.exe lmstat -a -c 1055@localhost
    4. The output will display all license increments on the server and any user checkouts of those license increments.
  2. Remove the stuck increment
    1. Use the lmremove command to remove the stuck increment:
      lmutil.exe lmremove [-c license_file_list] feature user user_host display

Example:

Our user, Nick, uses Ansys 2020 R2 on his office computer, DESKTOP-PC.  Ansys has crashed, and the licenses are still checked out on the license server.

When our license server administrator runs the lmstat command, they receive the following output from the command, indicating that Nick has the "ansys" license increment checked out while the software is not running:

C:\Program Files\ANSYS Inc\Shared Files\licensing\winx64>lmutil.exe lmstat -a -c 1055@localhost

Users of ansys:  (Total of 1 license issued;  Total of 1 license in use)

  "ansys" v9999.9999, vendor: ansyslmd, expiry: 28-feb-2022
  floating license

    Nick DESKTOP-PC DESKTOP-PC 5796 (v2021.0512) (WinDev2108Eval/1055 101), start Tue 10/12 8:43

In order to remove the stuck "ansys" increment, the license administrator would need to run the lmremove command

lmutil.exe lmremove [-c license_file_list] feature user user_host display

Where:

  • [-c license_file_list] indicates the license server/file to use, in this case port 1055 on our local server - 1055@localhost
  • feature is the license increment to remove, in this case "ansys"
  • user is the username of the affected user, in this case Nick
  • user_host is the workstation of the affected user, in this case DESKTOP-PC (the first instance in the output)
  • display is the display where the user is working, typically the same as the workstation name, in this case DESKTOP-PC (the second instance in the output)

For this user's scenario, the administrator would run the following command to remove the license increment:

lmutil.exe lmremove -c 1055@localhost ansys Nick DESKTOP-PC DESKTOP-PC

The lmremove command does not return an output, so the administrator would need to run lmstat again to confirm the increment has been removed.

Delete

Option 5 - Manually Releasing an Increment from Ansys Licensing Interconnect via Command Line

Delete

Info

In client versions 2021 R1 and later, the Ansys Licensing Interconnect is no longer utilized, only FlexLM is.  See the instructions for FlexLM in this scenario.  For versions 2020 R2 and before, instructions for both Ansys Licensing Interconnect and FlexLM must be followed depending on where the license reservation is.

  1. Verify the increments checked out in the Ansys Licensing Interconnect
    1. On the license server, open a command prompt
    2. Change directory to the folder with the licensing utilities:
      cd C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64
    3. Run the licensing interconnect usage command:
      ansysli_util.exe -liusage
    4. The output will display all license increments currently checked out in the licensing interconnect.
  2. Remove the stuck increment
    1. Run the licensing interconnect remove command:
      ansysli_util.exe -liremove <[user]@[host][:pid]>
      where <[user]@[host][:pid]> corresponds to the information output by the -liusage command
    2. The ansysli_util.exe -liremove will return an output listing the increments removed

Example:

Our user, Nick, uses Ansys 2020 R2 on his office computer, DESKTOP-PC.  Ansys has crashed, and the licenses are still checked out on the license server.

When our license server administrator runs the -liusage command, they receive the following output from the command, indicating that Nick has the "ansys" license increment checked out while the software is not running:

C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64>ansysli_util.exe -liusage


USER@HOST:PID            TIMESTAMP                NAME            USED    VERSION                APP        SERVER
Nick@DESKTOP-PC:6172    2021/10/12 10:05:29        MECH_STRUCT        1        20.2 (2020.0507)    MECH
Nick@DESKTOP-PC:6172    2021/10/12 10:05:29        ansys            1        20.2 (2020.0507)    MECH    1055@172.29.64.81
USER@HOST:PID            TIMESTAMP                NAME            USED    VERSION                APP        SERVER
To remove the "ansys" license increment, the administrator would remove all checkouts related to the user, their workstation, and the Process ID (PID) using the -liremove command:
C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64>ansysli_util.exe -liremove Nick@DESKTOP-PC:6172
After running the command, the administrator output will indicate all the increments removed:
C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64>ansysli_util.exe -liremove Nick@DESKTOP-PC:6172
The following jobs have been removed:


USER@HOST:PID            TIMESTAMP                NAME            USED    VERSION                APP        SERVER
Nick@DESKTOP-PC:6172    2021/10/12 10:05:29        MECH_STRUCT        1        20.2 (2020.0507)    MECH
Nick@DESKTOP-PC:6172    2021/10/12 10:05:29        ansys            1        20.2 (2020.0507)    MECH    1055@172.29.64.81
USER@HOST:PID            TIMESTAMP                NAME            USED    VERSION                APP        SERVER
manual checkinstuck

Did this article help you?

Yes
No

3 out of 3 found it helpful

Related Articles

ERROR - Cannot return a borrowed license

HOW TO - Stop/Start the Ansys License Manager

Popular Articles

Ansys Download & Installation Guide (Start Here!)

INFO - Ansys Hardware Recommendations & Supported 3rd Party Software

Ansys Troubleshooting Guide

ERROR - Hostid in the license file is not a valid hostid

HOW TO - Test & Fix License Manager Connectivity Issues

Did this article help you?

Yes
No
Give feedback about this article

Can't find what you're looking for?

Contact Support

Recently Updated

  • HOW TO - Specify an Ansys License Server
  • Ansys Download & Installation Guide (Start Here!)
  • HOW TO - Install Ansys' Required Linux Packages & Libraries
  • ERROR - An unexpected error (SIG$SEGV) ...
  • HOW TO - Reset Your Ansys Profile Folder
  • HOW TO - Enable Shared Web Licensing in License Settings
  • ERROR - Request name disco_level1 does not exist in the licensing pool (-5,147)
  • HOW TO - Check & Repair Windows Installation

General Inquiries & Sales:

(800) 566-9190

Info@SimuTechGroup.com

Contact Support

  • Software
  • Services
  • Case Studies
  • Ansys Training
  • Consulting
  • Technical Support
  • About SimuTech
  • Careers
  • Privacy

© 2021 SimuTech Group

Definition by Author

0
0
Expand NEW TAB

Hi there! 👋

How are you liking the Installation Center?

Terrible

Bad

OK

Good

Excellent

Feedback Successfully submitted