MATLAB Answers

Why do I receive License Manager Error -5?

304 views (last 30 days)
Why do I get the following error message when starting MATLAB:
ERROR: License checkout failed. No such FEATURE exists. License Manager Error -5

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Feb 2021
Edited: MathWorks Support Team on 2 Apr 2021
There are multiple reasons why you might be receiving this error:
  • The product is not licensed
  • Formatting error within the license file
  • Server and Client Mismatch

The product is not licensed

This message usually indicates that you are trying to use a product for which you are not licensed. To verify if the product is licensed, you may inspect the license file (license.lic) located within your MATLAB installation to see if you are licensed to use this product.
To determine where your license file is located, please refer to the following article:
NOTE: If you only have a network.lic file, instead of a license.lic file, you are using a network license. In this case contact your license administrator to check the license.dat file on the License Manager server machine.

Formatting error within the license file

If you are licensed for this product, this error may be the result of formatting problems in your license file. In order to avoid this, ensure that the following strings all begin on a left justified line: #, SERVER, DAEMON, or INCREMENT. Sometimes an INCREMENT line can get wrapped on the end of the preceding INCREMENT line causing it to be omitted.
For Individual or Designated Computer licenses, you can also simply re-activate MATLAB on this system. That will automatically update the license file on your system.

Server and Client Mismatch

If the License Manager Error -5 appears in an UNSUPPORTED line in a License Manager Log file and the hash code quoted in log line does not match the hash from the INCREMENT line from the current license file on the server, the client machine either:
  • Has an old license file on the MATLAB license path containing INCREMENT lines from a previous license. The old license file(s) should be removed
  • Has INCREMENT lines in the network.lic file. The affected user should remove all INCREMENT lines from the network.lic
  • Has an old MATLAB process running on their machine that was running while the license file on the server was updated. The user should kill the process to resolve the error
  12 Comments
Walter Roberson
Walter Roberson on 9 Apr 2018
You would need to buy a license from Mathworks. You should check with Mathworks sales as I am not sure if you are within the range of time where they permit licenses to be purchased for older releases. I suspect that you might be too late. Mathworks might ask you to pay two years of support contract to bring your support to present and then you would purchase the license against the current version, which would entitle you to use previous versions as well. (Situation might get messy if you are a student; I have never been clear on the rules for students accessing previous versions)

Sign in to comment.

More Answers (6)

Alain Gibaud
Alain Gibaud on 29 Aug 2017
Edited: Walter Roberson on 20 Sep 2017
Here is the message
License checkout failed.
License Manager Error -5
Cannot find a license for Optimization_Toolbox.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2016b/5
Diagnostic Information:
Feature: Optimization_Toolbox
License path: /Users/alaingibaud/Library/Application
Support/MathWorks/MATLAB/R2016b_licenses:/Applications/MATLAB_R2016b.app/licenses/license.dat:/Applications/MATLAB_R2016b.app/licenses/license_1100242_R2016b.lic
Licensing error: -5,357.
  1 Comment
Jiahao
Jiahao on 8 Jun 2021
I have the same error. When I activate the RoadRounner using the license file which ia obtained from the License center, but some erroe occurs.

Sign in to comment.


Adam Lu
Adam Lu on 29 Apr 2018
I recently ran into the same error but only under a parfor loop. I had run the exact same code before and this only became a problem starting yesterday ...
If I type
findpeaks
I get:
Error using findpeaks (line 122)
Not enough input arguments.
which shows that the Signal Processing Toolbox can be accessed. However, if I type
parfor i=1:2 ; findpeaks; end
I get:
License checkout failed.
License Manager Error -5
Cannot find a license for Signal_Toolbox.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2017b/5
Diagnostic Information:
Feature: Signal_Toolbox
License path:
/home/adam/.matlab/R2017b_licenses:/usr/local/MATLAB/R2017b/licenses/license.dat:/usr/local/MATLAB/R2017b/licenses/network.lic
Licensing error: -5,0.
Therefore this "license error" only occurs inside a parfor loop. Why is that?
  1 Comment
Herbert Weidner
Herbert Weidner on 21 Apr 2020
This error still exists with Matlab R2020a: If you buy the signal toolbox, you can use the "findpeaks" command for exactly one day. The next day, this command no longer exists and you are asked to buy the Signal Toolbox again. Matlab appears to be a rather unreliable program.

Sign in to comment.


Tech Support
Tech Support on 2 May 2018
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Justin

LH
LH on 3 May 2018
Edited: LH on 3 May 2018
I have the same problem with "Image Processing Toolbox" in a parallel function ! This used to work fine before our IT department updated the license several days ago.
I tried the exact same code as Adam Lu with a function from Image Processing Toolbox instead and I get the license error only in the parfoor loop.
  1 Comment
Tech Support
Tech Support on 3 May 2018
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Justin

Sign in to comment.


Ian Gerolamo
Ian Gerolamo on 13 Jun 2019
I'm having the same problem, I'm trying to get in touch with MathWorks support, but nobody answers me. I really need to solve this problem. Can someone help me?
License checkout failed.
License Manager Error -5
Cannot find a license for Fixed_Point_Toolbox.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2019a/5
Diagnostic Information:
Feature: Fixed_Point_Toolbox
License path:
  1 Comment
Colin Fraser
Colin Fraser on 19 Jun 2019
Hi,
If you are still experiencing this issue, please contact MathWorks support:
We need more information to troubleshoot your issue further, such as a license number.
-Colin

Sign in to comment.


Arturo Rodriguez
Arturo Rodriguez on 11 Apr 2021
I get the following output from Polyspace Bugfinder Access
When I run lmstat -a I get the following output
  5 Comments
Walter Roberson
Walter Roberson on 12 Apr 2021
I do not see anything wrong in that at the moment.
I do not have any experience with docker, so I have no idea whether that is adding any complications (or not.)

Sign in to comment.

Tags

No tags entered yet.

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!