X
2191

How to restart the license server if the database file is already in use and locked by another process

The license server may stop delivering licenses if  the database file is already in use and locked by another process. 

The error may if a client hasn't closed the connection to the  database file and another client tries to access it. For example, if a client crashed. 

The below article is proposing a fix for this behavior.

How the error is caught in thelicense server log file:
...
2018-02-07 01:31:43,829 INFO Successfully handled request for feature sv-idl 8.7 count=1 correlationID=dd83230c-dc72-4b1b-87a9-8240899fd1fd. 
2018-02-07 01:32:06,370 INFO Successfully handled request for feature sv-idl 8.6 count=1 correlationID=12cfe0b3-ed25-4944-8a53-15a43fcfc86b. 
2018-02-07 01:32:11,173 INFO Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150916-55dc7c3): org.eclipse.persistence. 
exceptions.DatabaseException 
Internal Exception: org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process: /var/opt/flexnetls/idl_lmgrd/fl exnetls_licenses.lock.db". Possible solutions: close all other connection(s); use the server mode [90020-190] Error Code: 90020 

… 
 

How to fix this behavior:


1. Delete the 'lock' file specified in the error message, for example, "/var/opt/flexnetls/idl_lmgrd/flexnetls_licenses.lock.db"

2. Restart the license server. This would close all current connections. 

 

 

----------------------------

updated by BC on 7/20/2020