Why do I receive License Manager Error -5?

333 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
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 (8)

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:
Diagnostic Information:
Feature: Optimization_Toolbox
License path: /Users/alaingibaud/Library/Application
Licensing error: -5,357.
  1 Comment
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
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:
Diagnostic Information:
Feature: Signal_Toolbox
License path:
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
If you are still experiencing this issue, please contact MathWorks support:

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
If you are still experiencing this issue, please contact MathWorks support:

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:
Diagnostic Information:
Feature: Fixed_Point_Toolbox
License path:
  1 Comment
Colin Fraser
Colin Fraser on 19 Jun 2019
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.

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
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.

Derartu Wodajo
Derartu Wodajo on 19 May 2022
I can't get license

Matthew Dorrance
Matthew Dorrance on 31 Aug 2022 at 16:06
I am running the addCustomBasemap function but am getting an error as described below. The code I am running is in bold.
It seems that Matlab wants the mapping toolbox, however I have the Antenna Toolbox (which has the Propagation toolbox). So I am not sure how to resolve this. Can someone help me with this issue?
addCustomBasemap('TorontoBuildings',fullfile(pwd,'\Input Data',buildingFilename),'Attribution','Test','DisplayName','Test')
The value of 'mbtilesFilename' is invalid. License checkout failed.
License Manager Error -5
Cannot find a license for MAP_Toolbox.
Troubleshoot this issue by visiting:
Diagnostic Information:
Feature: MAP_Toolbox
License path: C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2022a_licenses;C:\Program
Files\MATLAB\R2022a\licenses\license.dat;C:\Program Files\MATLAB\R2022a\licenses\network.lic
Licensing error: -5,147.
Matthew Dorrance
Matthew Dorrance on 31 Aug 2022 at 17:02
Thanks! Any idea what might be causing the error? Or who I should reach out to?

Sign in to comment.


No tags entered yet.




Community Treasure Hunt

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

Start Hunting!