Parallel server licence error

20 views (last 30 days)
expert
expert on 24 Nov 2023
Answered: Damian Pietrus on 28 Nov 2023
Hi,
I installed Network Licence Manager for Matlab 2021b academic with license.lic file that produced for linux (pop-os 22.04), then I installed Parallel Server with file installation key, bu i did not run matlab before start network license manager. After installation for starting NLM ; in the matlabroot/etc, I used:
su username -c "glnxa64/lmgrd -c license.dat -l /var/tmp/LM_TMW.log"
18:10:46 (lmgrd) Server's System Date and Time: Fri Nov 24 2023 18:10:46 +03
18:10:46 (lmgrd) SLOG: Summary LOG statistics is enabled.
18:10:46 (lmgrd) Failed to open the TCP port number in the license.
I check /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 pop-os.localdomain pop-os
./lmstart
15:18:18 (lmgrd) -----------------------------------------------
15:18:18 (lmgrd) Please Note:
15:18:18 (lmgrd)
15:18:18 (lmgrd) This log is intended for debug purposes only.
15:18:18 (lmgrd) In order to capture accurate license
15:18:18 (lmgrd) usage data into an organized repository,
15:18:18 (lmgrd) please enable report logging. Use Flexera's
15:18:18 (lmgrd) software license administration solution,
15:18:18 (lmgrd) FlexNet Manager, to readily gain visibility
15:18:18 (lmgrd) into license usage data and to create
15:18:18 (lmgrd) insightful reports on critical information like
15:18:18 (lmgrd) license availability and usage. FlexNet Manager
15:18:18 (lmgrd) can be fully automated to run these reports on
15:18:18 (lmgrd) schedule and can be used to track license
15:18:18 (lmgrd) servers and usage across a heterogeneous
15:18:18 (lmgrd) network of servers including Windows NT, Linux
15:18:18 (lmgrd) and UNIX.
15:18:18 (lmgrd)
15:18:18 (lmgrd) -----------------------------------------------
15:18:18 (lmgrd)
15:18:18 (lmgrd)
15:18:18 (lmgrd) Server's System Date and Time: Fri Nov 24 2023 15:18:18 +03
15:18:18 (lmgrd) SLOG: Summary LOG statistics is enabled.
15:18:18 (lmgrd) FlexNet Licensing (v11.16.2.1 build 244538 x64_lsb) started on pop-os (linux) (11/24/2023)
15:18:18 (lmgrd) Copyright (c) 1988-2018 Flexera. All Rights Reserved.
15:18:18 (lmgrd) World Wide Web: http://www.flexerasoftware.com
15:18:18 (lmgrd) License file(s): license.dat
15:18:18 (lmgrd) lmgrd tcp-port 27000
15:18:18 (lmgrd) (@lmgrd-SLOG@) ===============================================
15:18:18 (lmgrd) (@lmgrd-SLOG@) === LMGRD ===
15:18:18 (lmgrd) (@lmgrd-SLOG@) Start-Date: Fri Nov 24 2023 15:18:18 +03
15:18:18 (lmgrd) (@lmgrd-SLOG@) PID: 19322
15:18:18 (lmgrd) (@lmgrd-SLOG@) LMGRD Version: v11.16.2.1 build 244538 x64_lsb ( build 244538 (ipv6))
15:18:18 (lmgrd) (@lmgrd-SLOG@)
15:18:18 (lmgrd) (@lmgrd-SLOG@) === Network Info ===
15:18:18 (lmgrd) (@lmgrd-SLOG@) Listening port: 27000
15:18:18 (lmgrd) (@lmgrd-SLOG@)
15:18:18 (lmgrd) (@lmgrd-SLOG@) === Startup Info ===
15:18:18 (lmgrd) (@lmgrd-SLOG@) Server Configuration: Single Server
15:18:18 (lmgrd) (@lmgrd-SLOG@) Command-line options used at LS startup: -c license.dat -l /var/tmp/LM_TMW.log
15:18:18 (lmgrd) (@lmgrd-SLOG@) License file(s) used: license.dat
15:18:18 (lmgrd) (@lmgrd-SLOG@) ===============================================
15:18:18 (lmgrd) Starting vendor daemons ...
15:18:18 (lmgrd) Started MLM (internet tcp_port 55199 pid 19324)
15:18:18 (MLM) FlexNet Licensing version v11.16.2.1 build 244538 x64_lsb
15:18:18 (MLM) SLOG: Summary LOG statistics is enabled.
15:18:18 (MLM) SLOG: FNPLS-INTERNAL-CKPT1
15:18:18 (MLM) SLOG: VM Status: 0
15:18:18 (MLM) SLOG: FNPLS-INTERNAL-CKPT5
15:18:18 (MLM) SLOG: TPM Status: 0
15:18:18 (MLM) SLOG: FNPLS-INTERNAL-CKPT6
15:18:18 (MLM) Server started on pop-os for: MATLAB_Distrib_Comp_Engine
15:18:18 (MLM) PolySpace_Bug_Finder PolySpace_Bug_Finder_Engine PolySpace_Server_C_CPP
15:18:18 (MLM) EXTERNAL FILTERS are OFF
15:18:18 (lmgrd) MLM using TCP-port 55199
15:18:18 (MLM) License verification completed successfully.
15:18:18 (MLM) SLOG: Statistics Log Frequency is 240 minute(s).
15:18:18 (MLM) SLOG: TS update poll interval is 600 seconds.
15:18:18 (MLM) SLOG: Activation borrow reclaim percentage is 0.
15:18:18 (MLM) (@MLM-SLOG@) ===============================================
15:18:18 (MLM) (@MLM-SLOG@) === Vendor Daemon ===
15:18:18 (MLM) (@MLM-SLOG@) Vendor daemon: MLM
15:18:18 (MLM) (@MLM-SLOG@) Start-Date: Fri Nov 24 2023 15:18:18 +03
15:18:18 (MLM) (@MLM-SLOG@) PID: 19324
15:18:18 (MLM) (@MLM-SLOG@) VD Version: v11.16.2.1 build 244538 x64_lsb ( build 244538 (ipv6))
15:18:18 (MLM) (@MLM-SLOG@)
15:18:18 (MLM) (@MLM-SLOG@) === Startup/Restart Info ===
15:18:18 (MLM) (@MLM-SLOG@) Options file used: None
15:18:18 (MLM) (@MLM-SLOG@) Is vendor daemon a CVD: No
15:18:18 (MLM) (@MLM-SLOG@) Is FlexNet Licensing Service installed and compatible: No
15:18:18 (MLM) (@MLM-SLOG@) FlexNet Licensing Service Version: -NA-
15:18:18 (MLM) (@MLM-SLOG@) Is TS accessed: No
15:18:18 (MLM) (@MLM-SLOG@) TS access time: -NA-
15:18:18 (MLM) (@MLM-SLOG@) Number of VD restarts since LS startup: 0
15:18:18 (MLM) (@MLM-SLOG@)
15:18:18 (MLM) (@MLM-SLOG@) === Network Info ===
15:18:18 (MLM) (@MLM-SLOG@) Listening port: 55199
15:18:18 (MLM) (@MLM-SLOG@) Daemon select timeout (in seconds): 1
15:18:18 (MLM) (@MLM-SLOG@)
15:18:18 (MLM) (@MLM-SLOG@) === Host Info ===
15:18:18 (MLM) (@MLM-SLOG@) Host used in license file: pop-os
15:18:18 (MLM) (@MLM-SLOG@) HostID node-locked in license file: 2c6dc1644d99
15:18:18 (MLM) (@MLM-SLOG@) HostID of the License Server: "2c6dc1644d99 d4939008efca"
15:18:18 (MLM) (@MLM-SLOG@) Running on Hypervisor: Not determined - treat as Physical
15:18:18 (MLM) (@MLM-SLOG@) ===============================================
Network Licence Manager is not starting. So in the toolbax for parallel server; I run
./checkLicensing
======BEGIN LICENSE MANAGER ERROR======
License checkout failed.
License Manager Error -5
Cannot find a license for MATLAB_Distrib_Comp_Engine.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2021b/5
Diagnostic Information:
Feature: MATLAB_Distrib_Comp_Engine
License path: /home/user/.matlab/R2021b_licenses/license_pop-os_40689096_R2021b.lic:/usr/local/MATLAB/R2021b/lic
enses/license.dat:/usr/local/MATLAB/R2021b/licenses
Licensing error: -5,357.
======END LICENSE MANAGER ERROR======
The MATLAB Parallel Server worker licensing check has failed. Check /usr/local/MATLAB/R2021b/toolbox/parallel/bin/parallelLicense.log for details.
I have no problems with the installation for Matlab 2023. Both NLM works and does not give any license errors. But I am suffering from these problems in the 2021b installation. I don't understand what I'm missing. Can you help me?
Thank you.

Accepted Answer

Damian Pietrus
Damian Pietrus on 28 Nov 2023
I recommend reaching out to our Installation and Licensing Support team, who can be reached by email at email support@mathworks.com. If you'd prefer to call our US-based support, they are available at +1-508-647-7000. Dial option 3, then 1 at the menu. Support in other locations can be found at this Contact Us page.
With that being said, there's a few things we can try. First, we want to verify that things are working on the server itself. If you cd into the folder containing the License Manager utilities, you can run:
./lmutil lmstat -c license.dat -a
This will tell you the current status of the License Server as well as all of the products that are being served. If you successfully see MATLAB Parallel Server (MATLAB_Distrib_Comp_Engine), we can move to testing the worker nodes. Based on your output above I expect this to work successfully.
On the worker nodes themselves, you'll need to make sure that you have pointed MATLAB to the License Server. This is most commonly done with a network.lic, though you can also use an environment variable. Based on the information you posted, check /usr/local/MATLAB/R2021b/licenses for any license files, and echo out the LM_LICENSE_FILE and MLM_LICENSE_FILE environment variables to see if they are set.
If you do find a network.lic or the environment variable is set, we can specifically test just the Parallel Server checkout. Navigate to /usr/local/MATLAB/bin, and try the following. This will attempt to launch MATLAB as a parallel worker, print out the license number, and then exit.
./matlab -dmlworker -r 'license,exit'
This will either give you the same error as above or give you more clues as to what might be wrong.
If you do not have a network.lic or environment variable set on the worker nodes, then you will need to create one. To do this:
  1. Open the license.dat you started the License Manager with
  2. Find the SERVER line and copy it in its entirety
  3. Create a new file called network.lic and paste the SERVER line up top
  4. On the next line underneath it, add USE_SERVER
  5. Place the network.lic into /usr/local/MATLAB/R2021b/licenses and try the license check again
If done correctly, the network.lic should look something like:
SERVER <hostname> <host_id> <port_number>
USE_SERVER
Once that file is in the correct location, you should be able to succesffully check out Parallel Server licenses.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!