MATLAB Answers

Why do I receive License Manager Error -5?

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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 12 Jan 2018
There are multiple reasons why you might be receiving this error:
1. This message usually indicates that you are trying to use a product for which you are not licensed. You can look at your license.lic file 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:
Where are the license files for MATLAB located?
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.
2. 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.
You can also simply re-activate MATLAB on this system. That will automatically update the license file on your system.

  12 Comments

Show 9 older comments
Walter Roberson
Walter Roberson on 2 Jun 2017
The evidence at the moment suggests that you do not have a license for the optimization toolbox. That would be confirmed if the result of
which -all lsqcurvefit
showed a file but said "no license".
If it instead says there is no file then you might need to reinstall the optimization toolbox.
hadar lackritz
hadar lackritz on 9 Apr 2018
how do i get a license for the optimization toolbox? I've got matlab 2016a and the answer for which -all lsqcurvefit at my matlab showed a file but said "no license".
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 (5)

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.

  0 Comments

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?

  0 Comments

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

  0 Comments

Sign in to comment.


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.

Sign in to answer this question.

Tags

No tags entered yet.

Products


Release

R14SP2