Appendix C
Troubleshooting Guide
This appendix documents areas of FLEXlm that have given customers difficulty in the past.
C.1 General Debugging Hints
The following are tips for debugging:
- When you start the license server (
lmgrd
) 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 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 FLEXlm 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 Section C.2, “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 running on?
- What version of the operating system?
- What machine and operating system is the application running on?
- What version of FLEXlm does the FLEXlm-licensed 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 products which are also licensed by FLEXlm?
- Are you using a combined license file or separate license files?
- Are you using a three-server redundant license server (multiple SERVER lines in your license file)?
C.2 FLEXLM_DIAGNOSTICS
Note: Available only with applications using FLEXlm v4.1 or higher for UNIX, and v5.0 or higher with Windows. Also, applications may choose not to provide this functionality.
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.To set
FLEXLM_DIAGNOSTICS
, on UNIX:(csh): setenv FLEXLM_DIAGNOSTICS 1
(sh): FLEXLM_DIAGNOSTICS=1; export FLEXLM_DIAGNOSTICSOn Windows 95/98/ME, add the following line to
C:\autoexec.bat
:SET FLEXLM_DIAGNOSTICS=1
On NT/2000/XP, use the System Control Panel applet to change the global environment, adding
FLEXLM_DIAGNOSTICS
to 1.On UNIX, the diagnostic output goes to stderr.
On Windows, if the application is v5.11 or higher, the output is a file in the current directory called
flex
pid
.log
, wherepid
is the application’s process ID. If the application is v5.0, the output file is calledflex_err.log
.C.2.1 Level 1 Content
If
FLEXLM_DIAGNOSTICS
is set to 1, then the standard FLEXlm 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.licC.2.2 Level 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:
C.2.3 Level 3 Content (FLEXlm 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: @localhostapp3
Checkout succeeded: f1/BC64A7B120AE
License file: servtest.lic
License Server: @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.C.3 FLEXlm Troubleshooting List
C.3.1 Problem Description Format
Each problem is presented in three parts:
Symptom: A description of the problem. Cause: A discussion of what causes the problem described in the “Symptom” section. Solution: Instructions on how to solve the problem.
You can scan through the list of problems to find any which appear to relate to your concerns. In order to solve your problem, you may have to use all or some of the solutions listed here.
C.3.2 Hostid Problems
C.3.3 Connection Problems
C.3.4 Other FLEXlm-Licensed Application Problems
Symptom: When I run my application FLEXlm-licensed application (or vendor daemon), I get the error bad code or inconsistent encryption code. Cause: Possible causes for this are: 1) the license file was modified (either the hostid on a SERVER line or anything on the FEATURE line was changed); 2) the vendor used the wrong version of his license creation utility to generate your license file (or there is a bug in that process). Solution: You may not modify the license file (except for specific fields, see Chapter 2, “License File Basics”). If you need to change something in your license file, you must get a new license file from your software vendor.
C.3.5 Other Server Problems
FLEXlm End Users Guide | |||
March 2003 |