Why do I receive License Manager Error -1?

294 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Dec 2023
Edited: MathWorks Support Team on 19 Dec 2023
Table of Contents
  1. If you are attempting to use MATLAB, RoadRunner, or Polyspace Products
  2. If you are attempting to use MATLAB Parallel Server
    1. If your MATLAB Parallel Server license uses a Network License Manager
    2. If your MATLAB Parallel Server license uses Online Licensing
      1. If your cluster uses MJS
      2. If your cluster uses a third-party scheduler

 

This error is either a result of a missing license.dat file, or not having read permissions to the license.dat file.
To check for the license file, please refer to the appropriate link(s) below.
Where are the license files for MATLAB located?
Where are the license files for RoadRunner located?
If you're using a network installation, contact your License Administrator or person maintaining the Network License Manager for a new license file. If you do not know who your License Administrator is, please refer to the link below:
Who is my License Administrator?
If you have an Individual or Designated Computer license, try starting MATLAB from the bin folder where MATLAB is installed. MATLAB's default installation directories are listed below by Operating System. Note that the "X"s will need to be replaced with the release of MATLAB you have installed.
Windows
C:\Program Files\MATLAB\R20XXx\bin\matlab.exe
Linux
/usr/local/MATLAB/R20XXx/bin/matlab
Mac
/Applications/MATLAB_R20XXx.app/bin/matlab
If MATLAB starts properly, delete the shortcut and create a new one.
How do I create a shortcut or link to MATLAB?
If you are receiving this error when entering a PLP for MATLAB R12 or R13 on Windows, this is a result of using a passcode generated from the license center. These PLPs will work as far back as R14. Any earlier passcodes will need to be requested from our Customer Service team from the link below:
Contact us
This error can also occur when you have borrowed a MATLAB seat from a network-based license and the borrowed seat has expired. To resolve this error, you must re-connect to the network license manager and check-out the MATLAB seat again.

If your MATLAB Parallel Server license uses a Network License Manager

This section is applicable to any scheduler used on the cluster
This means the license file that the cluster nodes need is missing. The license file used for these machines is typically named network.lic or license.dat. When installing MATLAB Parallel Server in its default location, the license file should live in this directory:
Windows
C:\Program Files\MATLAB\R20XXx\licenses
Linux
/usr/local/MATLAB/R20XXx/licenses
Mac
/Applications/MATLAB_R20XXx.app/licenses
Please note that if you installed MATLAB Parallel Server elsewhere, then your licenses directory will be wherever you installed it. You can create the directory if it hasn't already been created.
Environment variables cannot be used to point MATLAB Parallel Server to a Network License Manager.

If your MATLAB Parallel Server license uses Online Licensing

The cluster needs to be configured to use Online Licensing. To accomplish this, please view these instructions. Please make sure you stop MJS before making changes to the mjs_def.bat file. Otherwise, you will need to either do a clean stop & start of the service (or, in Admin Center, destroy the MJS service.) See the link below to do a clean stop & start if Admin Center is unavailable in your setup.
Install, start, stop or uninstall mjs service
Please ensure that the cluster profile being used to submit jobs has RequiresOnlineLicensing set to true, the LicenseNumber is set appropriately, and the appropriate end user has been added to the license.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!