Re: flexlm problems - trying to run matlab.

From: Dr. David Kirkby (nowhere_at_nowhere.com)
Date: 09/25/04


Date: Sat, 25 Sep 2004 11:56:37 +0100

Sean Cote wrote:
> Hi Dr. Kirkby,
>
> Here's a solution I found by looking at License Manager error -16 on our
> support page. Will this help you?
>
> http://www.mathworks.com/support/solutions/data/1-19WZL.html?solution=1-19WZL

Thanks I had come across that page a couple of years back. The reason I
had so much hassle a couple of years ago
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3D8328B0.34BA53CD%40ntlworld.com&rnum=1&prev=/groups%3Fq%3Dmatlab%2Bkirkby%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D3D8328B0.34BA53CD%2540ntlworld.com%26rnum%3D1
was due to this bug - a bug which your support pages says is a bug in
Solaris, yet Sun tell me is not a bug in Solaris, and the bug id that
web page refers to (#1200460) is a request for enhancement, not a bug.

I have now solved the Matlab installation problem. I think what happend
is that when I restored some data, one or more of the matlab files in
/etc connected with the 'copy frustration' were not restored - you
can't just dump all of /etc without causing problems.

When I did a frewsh install from CD, I'd overwrote the change
ulimit -n 1024
that had to be made in the file your web page referes to.

Anyway, it is working okay now thanks.

I think 'copy protection' schemes should really be renamed 'copy
frustration' as that is generally what they seem to do - to me anyway.

Dr. David Kirkby

> If not, you can search around our support page for similar documents or you
> can, of course, contact The MathWorks support, who would be happy to help
> you (support@mathworks.com). You have plenty of information right in your
> post, so I'm sure they could figure it out. You can probably just cut and
> paste your post into the email.
>
> Good luck!
> Sean
>
> "Dr. David Kirkby" <see_my_signature_for_my_real_address@hotmail.com> wrote
> in message news:c99d2c79.0409231429.434b56a9@posting.google.com...
>
>>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.
>
>
>



Relevant Pages