Troubleshooting Guide
Appendix C
This appendix documents areas of FLEXnet Licensing that have given customers difficulty in the past.
General Troubleshooting Hints
The following are tips for debugging:
- When you start the license server system be sure that you direct the output into a local log file where you can examine it. The log file often contains useful information. Examine it when you have a problem, and be prepared to answer questions about it when you talk to a support person.
- If the license server system appears to have started correctly (which you can determine from the log file), try running
lmstat -a
andlmdiag
to see if that program has the same problem as your application.- If your application is v4.1 or later (v5 or later on Windows), you can use the
FLEXLM_DIAGNOSTICS
environment variable. SetFLEXLM_DIAGNOSTICS
to 1, 2, or 3. A setting of 3 gives more information than 2, 2 gives more information than 1 (in particular, the feature name that was denied). See "FLEXLM_DIAGNOSTICS" for more information.- When you talk to a support person, be prepared with answers to the following questions:
- What kind of machine is your license server system running on?
- What version of the operating system?
- What machine and operating system is the application running on?
- What version of FLEXnet Licensing does the FLEXenabled application use?
Use the
lmver
script, or, on UNIX, execute the following command on yourlmgrd
, vendor daemon, and application:
strings
binary_name
| grep Copy
Alternatively,
lmgrd -v
gives thelmgrd
version, and this works with the vendor daemon also.- What error or warning messages appear in the log file?
- Did the server start correctly?
Look for a message such as:
server xyz started for: feature1 feature2
.- What is the output from running
lmstat -a
?- Are you running other FLEXenabled products?
- Are you using a combined license file or separate license files?
- Are you using a three-server redundant license server system (multiple SERVER lines in your license file)?
FLEXLM_DIAGNOSTICS
Note The ability for FLEXnet Licensing to produce diagnostic output is controlled by your software vendor. The ability for FLEXnet Licensing to produce diagnostic output is controlled by your software vendor.
FLEXLM_DIAGNOSTICS
is an environment variable that causes the application to produce diagnostic information when a checkout is denied. The format of the diagnostic information may change over time.On UNIX, the diagnostic output goes to stderr.
On Windows, the output is a file in the current directory called
flex
pid
.log
, wherepid
is the application's process ID.Level 1 Content
If
FLEXLM_DIAGNOSTICS
is set to 1, then the standard FLEXnet Licensing error message is be presented, plus a complete list of license files that the application tried to use. For example:setenv FLEXLM_DIAGNOSTICS 1
FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory
license file(s): /usr/myproduct/licenses/testing.lic license.licLevel 2 Content
If
FLEXLM_DIAGNOSTICS
is set to 2, then, in addition to level 1 output, the checkout arguments are presented. For example:setenv FLEXLM_DIAGNOSTICS 2
FLEXlm checkout error: No such feature exists (-5,116:2) No such file or directory
license file(s): /usr/myproduct/licenses/testing.lic license.lic
lm_checkout("f1", 1.0, 1, 0x0, ..., 0x4000)Note that the error message actually contains two separate problems, which both occurred during the checkout:
Following is a description of the arguments to
lm_checkout()
lm_checkout(
feature
,version
,num_lic
,queue_flag
,...
,dupgroup_mask
)where:
Level 3 Content (v6.0+ only)
If
FLEXLM_DIAGNOSTICS
is set to 3, then, in addition to level 1 and 2 output, if a checkout is successful, information is printed explaining how the license was granted:setenv FLEXLM_DIAGNOSTICS 3
app
Checkout succeeded: f0/14263EAEA8E0
License file: ./servtest.lic
No server usedapp2
Checkout succeeded: f1/BC64A7B120AE
License file: @localhost
License Server System: @localhostapp3
Checkout succeeded: f1/BC64A7B120AE
License file: servtest.lic
License Server System: @speedyNote that the feature name and license key are printed, along with the license file location (or host name if
@
host
were used) and host name of the server, where applicable.
FLEXnet Licensing End User Guide |
Version 10.8 |
July 2005 |
copyright |