flexlm problems - trying to run matlab.
From: Dr. David Kirkby (see_my_signature_for_my_real_address_at_hotmail.com)
Date: 09/24/04
- Next message: Dr. David Kirkby: "flexlm problems - trying to run matlab."
- Previous message: Beardy: "Re: Error writing ufs log state problem"
- Next in thread: Michael Vilain
: "Re: flexlm problems - trying to run matlab." - Maybe reply: Dr. David Kirkby: "Re: flexlm problems - trying to run matlab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Sep 2004 15:29:02 -0700
Two years ago I spent *ages* trying to install Matlab version 6,
release 13 on a Sun I owned. I got it working, but the machine has
been changed, and it no longer works, although all the Matlab files
should have been restored from tape.
I'm totally confused by the licence manager. It is not helped that I
have two versions installed - one for Suns compiler, and another for
Matlab. Before I found it easier to have the two versions. I suspect
the licence files can be combined, but I have never worked out how.
Just to make sure I reinstalled Matlab from CD, but still can't get it
to work. I'm sure I am missing something obvious, but I can't find
what. It's only on a single workstation - so the licence client and
server are on the same machine.
Errros indicate the vendor deamon is not running, but I don't
understand exactly what this means, or how best to debug it. The
vendor deamon /usr/local/Matlab-R13/etc/lm_matlab mentioned in the
licence file (see below) does exist.
sparrow /etc/init.d % /usr/local/Matlab-R13/etc/lm_matlab
23:15:32 (MLM) FLEXlm version 8.0d
23:15:32 (MLM) Vendor daemons must be run by lmgrd
The file /etc/init.d/lmgrd seems to be badly written, as its contents
are
case "$1" in
'start')
if [ -f /etc/lmboot_TMW ]; then
/etc/lmboot_TMW -u davek && echo 'MATLAB_lmgrd'
fi
;;
'stop')
if [ -f /etc/lmdown_TMW ]; then
/etc/lmdown_TMW > /dev/null 2>&1
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
which will not start, but I can run
/etc/lmboot_TMW -u davek && echo 'MATLAB_lmgrd'
manually.
The licence is not tied to a specific hostid or hostname. For some
reason, it indicates its a demo at one point. The software is not a
demo, and has no expiry date, as it says. It was bought under a
university site licence.
If' I try to run Matlab, I get this:
License Manager Error -97.
The desired vendor daemon is down
1) Check the lmgrd log file, or 2) Try lmreread
Feature: MATLAB
Vendor:Host: sparrow
License path: /usr/local/Matlab-R13/etc/license.dat:/usr/local/Matlab
-
-R13/etc/*.lic
FLEXlm error: -97,121
For further information, refer to the FLEXlm End User Manual,
available at "www.globetrotter.com".
Here's the first few lines of the licence file - I have changed a few
details to stop any piracy.
# BEGIN------cut here------CUT HERE-----BEGIN
# MATLAB license passcode file for use with FLEXlm.
# LicenseNo: 218874 HostID: ID=208874
SERVER sparrow ID=208874 27000
DAEMON MLM /usr/local/Matlab-R13/etc/lm_matlab
INCREMENT TMW_Archive MLM 13 01-jan-0000 0 8CDC0F605C2F07C1607C \
VENDOR_STRING=1822f5e79ec79e77eff HOSTID=DEMO SN=208874
INCREMENT MATLAB MLM 13 01-jan-0000 1 DC1CCF6033E6620659BF \
DUP_GROUP=UH SN=218874
INCREMENT SIMULINK MLM 13 01-jan-0000 1 5CCCAF8099C01FC86654 \
DUP_GROUP=UH SN=218874
If I try what is says, and use lmreread, it tells me to use lmstart
instead.
sparrow /usr/local/Matlab-R13/etc % lmstart
Checking license file for local hostname and local hostid . . .
Taking down any existing license manager daemons . . .
Killing license manager daemon processes . . . (sparrow)
process id = 10911 killed . . . (/bin/sh)
process id = 10914 killed . . . (lmgrd)
process id = 10913 killed . . . (sh)
Starting license manager . . .
Debug logfile =
more Waiting 300 secs for MATLAB vendor daemon to come up . . .
Type your interrupt character (usually CTRL-C) to quit.
Time = 3 secs : still waiting . . .
Time = 30 secs : still waiting . . .
------------------------------------------------------------------------
Thu Sep 23 22:56:39 BST 2004 LM_LOGFILE (last 2 lines)
2763 22:56:14 (MLM) Vendor daemon can't talk to lmgrd (Cannot read
data from license server (-16,287:22 "Invalid argument"))
2764 22:56:14 (lmgrd) Please correct problem and restart daemons
------------------------------------------------------------------------
Time = 60 secs : still waiting . . .
------------------------------------------------------------------------
Thu Sep 23 22:57:10 BST 2004 LM_LOGFILE (last 2 lines)
2763 22:56:14 (MLM) Vendor daemon can't talk to lmgrd (Cannot read
data from license server (-16,287:22 "Invalid argument"))
2764 22:56:14 (lmgrd) Please correct problem and restart daemons
------------------------------------------------------------------------
^C------------------------------------------------------------------------
Thu Sep 23 22:57:13 BST 2004 LM_LOGFILE (last 10 lines)
2755 22:56:14 (MLM) MATLAB_Report_Gen Mu_Synthesis_Toolbox NCD_Toolbox
2756 22:56:14 (MLM) Neural_Network_Toolbox Optimization_Toolbox
PDE_Toolbox
2757 22:56:14 (MLM) Power_System_Blocks SIMULINK_Perf_Tools
Filter_Design_Toolbox
2758 22:56:14 (MLM) Robust_Toolbox Req_Management
Real-Time_Workshop
2759 22:56:14 (MLM) Stateflow_Coder Stateflow Signal_Toolbox
2760 22:56:14 (MLM) Symbolic_Toolbox Spline_Toolbox
SIMULINK_Report_Gen
2761 22:56:14 (MLM) Statistics_Toolbox Embedded_Target_c6000
Virtual_Reality_Toolbox
2762 22:56:14 (MLM) Wavelet_Toolbox
2763 22:56:14 (MLM) Vendor daemon can't talk to lmgrd (Cannot read
data from license server (-16,287:22 "Invalid argument"))
2764 22:56:14 (lmgrd) Please correct problem and restart daemons
------------------------------------------------------------------------
Please hit return for more help . . . > ^C
------------------------------------------------------------------------
Thu Sep 23 22:57:14 BST 2004 LM_LOGFILE (last 10 lines)
2755 22:56:14 (MLM) MATLAB_Report_Gen Mu_Synthesis_Toolbox NCD_Toolbox
2756 22:56:14 (MLM) Neural_Network_Toolbox Optimization_Toolbox
PDE_Toolbox
2757 22:56:14 (MLM) Power_System_Blocks SIMULINK_Perf_Tools
Filter_Design_Toolbox
2758 22:56:14 (MLM) Robust_Toolbox Req_Management
Real-Time_Workshop
2759 22:56:14 (MLM) Stateflow_Coder Stateflow Signal_Toolbox
2760 22:56:14 (MLM) Symbolic_Toolbox Spline_Toolbox
SIMULINK_Report_Gen
2761 22:56:14 (MLM) Statistics_Toolbox Embedded_Target_c6000
Virtual_Reality_Toolbox
2762 22:56:14 (MLM) Wavelet_Toolbox
2763 22:56:14 (MLM) Vendor daemon can't talk to lmgrd (Cannot read
data from license server (-16,287:22 "Invalid argument"))
2764 22:56:14 (lmgrd) Please correct problem and restart daemons
------------------------------------------------------------------------
Please hit return for more help . . . > ^C
------------------------------------------------------------------------
Thu Sep 23 22:57:16 BST 2004 LM_LOGFILE (last 10 lines)
2755 22:56:14 (MLM) MATLAB_Report_Gen Mu_Synthesis_Toolbox NCD_Toolbox
2756 22:56:14 (MLM) Neural_Network_Toolbox Optimization_Toolbox
PDE_Toolbox
2757 22:56:14 (MLM) Power_System_Blocks SIMULINK_Perf_Tools
Filter_Design_Toolbox
2758 22:56:14 (MLM) Robust_Toolbox Req_Management
Real-Time_Workshop
2759 22:56:14 (MLM) Stateflow_Coder Stateflow Signal_Toolbox
2760 22:56:14 (MLM) Symbolic_Toolbox Spline_Toolbox
SIMULINK_Report_Gen
2761 22:56:14 (MLM) Statistics_Toolbox Embedded_Target_c6000
Virtual_Reality_Toolbox
2762 22:56:14 (MLM) Wavelet_Toolbox
2763 22:56:14 (MLM) Vendor daemon can't talk to lmgrd (Cannot read
data from license server (-16,287:22 "Invalid argument"))
2764 22:56:14 (lmgrd) Please correct problem and restart daemons
------------------------------------------------------------------------
Please hit return for more help . . . >
------------------------------------------------------------------------
Notes: 1. To print more of the debug logfile use the '-e nlines'
option
on lmstart or lmboot commands. Use the -help option on any
command for help.
2. To check that the daemons are up run the 'lmstat -a'
command.
3. Use the '-wait secs' option on lmstart or lmboot commands
to increase the wait time in batch.
4. If you are getting 'socket bind' errors in the logfile
output
first run 'lmdown' and then 'lmstart -k' to verify that all
ports are clear. This is CRITICAL when using redundant
servers. You must get nothing back from 'lmstart -k' on all
servers before you are ready to run 'lmstart' to restart the
license manager. This can take up to 5 minutes. If some of
the ports do not clear in this time then they could be in
use and you should change the port number on the SERVER line
in your license file.
- Next message: Dr. David Kirkby: "flexlm problems - trying to run matlab."
- Previous message: Beardy: "Re: Error writing ufs log state problem"
- Next in thread: Michael Vilain
: "Re: flexlm problems - trying to run matlab." - Maybe reply: Dr. David Kirkby: "Re: flexlm problems - trying to run matlab."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]