MATLAB Answers

Why do I receive License Manager Error -8?

30,347 views (last 30 days)
Why do I receive "License Manager Error -8"?
License Manager Error -8.
License checkout failed. Encryption code in license file is inconsistent.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 May 2019
Edited: MathWorks Support Team on 31 May 2019
This issue generally indicates that the license file is served from a network license manager and that there is a problem with the license.dat file on the machine running the license manager. The cause of this error may be due to one of the following:
1. The Host ID for which the license.dat file was generated is not the Host ID of the license server machine
2. Missing, corrupt, or incorrect characters in the license.dat file itself
3. The system time and date are not set properly. Check to make sure that the date and time are set correctly on the machine before proceeding below.
This issue may also occur if you are using MATLAB R2007b or below with a standalone license file generated for R2008a or higher.In this case, generating a license file for the correct release of MATLAB will resolve this issue.
If the time and date are set correctly, and you are not using R2007b or below with a standalone license file for R2008a or higher, see the steps below for troubleshooting the license file:
The first step is to locate the license file (license.dat) for the license manager. The license.dat file on the server machine is located in:
$MATLABROOT/etc
Where are the license files for MATLAB located?
(where $MATLAB is the MATLAB installation directory)
Please check for the following:
1) Make sure that the Host ID specified in the license file matches the Host ID on the "SERVER" line of the license file. Also if the Host ID is not proceeded by "ID=", it must match the Host ID of the license server. For more information on obtaining your Host ID, see the related solution listed below.
The Host ID of the license file will be in a comment line in the license file. For example:
# BEGIN------cut here------CUT HERE-----BEGIN
# MATLAB license passcode file.
# LicenseNo: 123456 HostID: 001122334455
In this example, the Host ID is the MAC address 001122334455. This same MAC address should be in the SERVER line of the license file. For example:
SERVER my-license-host 001122334455 27000
If the wrong Host ID is used in the SERVER line, or if the license file was generated for a different Host ID, this error will occur. Individual licenses use a Host ID that is ID= and the license number. If you have an individual license, this should be the Host ID in the SERVER line. For example:
SERVER my-license-host ID=123465 27000
NOTE: Changing the Host ID listed in the commented section of the license file will not resolve the error. If your Host ID is incorrect, you will need to obtain a new license file generated for the correct Host ID.
2) This error may be the result of having extra carriage returns 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.
3) If you are located in Turkey, or the default language of your computer is Turkish, please refer to the article below:
Why do I see license manager error -8 when launching MATLAB on Linux when my locale is set to Turkey?

  19 Comments

Kyle Perry
Kyle Perry on 14 Feb 2019
Hello Everyone,
If you are still receiving this error and have tried all the steps listed above then please contact our support team so we can assist with resolving the error.

Sign in to comment.

More Answers (27)

lawrence tanyanyiwa
lawrence tanyanyiwa on 10 Apr 2017
To resolve such a problem consider coping a bin file from the original Matlab zip folder and pasting it to the bin file in Program files or Drive C. When extracting files some files are not correctly extracted leading to license errors

  15 Comments

sachin
sachin on 10 Nov 2019
Thanks Dear this works for me, after lot of try.
faten ten
faten ten on 31 Jan 2020 at 20:38
thank you so much it works for me too

Sign in to comment.


siyi chen
siyi chen on 24 Aug 2017
I have got a same problem in installing matlab 2016a;it's simple!All you need to do is to download this file;Then open it,it has four subfiles;Copy them and find out your installation content where has the same name:'bin'.Replace it.Enjoy!!!

  12 Comments

Show 9 older comments
Miao Wang
Miao Wang on 21 Jan 2019
hello,where can i download subfiles? thank you a lot!
febin m
febin m on 1 Feb 2019
where you download this file ?
songyao dou
songyao dou on 16 Nov 2019
Are you kidding me ? It's useless.

Sign in to comment.


ADITEE APURVAA
ADITEE APURVAA on 5 May 2016
still having problem

  2 Comments

Image Analyst
Image Analyst on 5 May 2016
If the instructions above did not help, then call the Mathworks directly for free and fast telephone help.
Yasir Jowhar
Yasir Jowhar on 18 Nov 2018
Thanks alot it wirking
immazing solusion

Sign in to comment.


VAIBHAV BHARDWAJ
VAIBHAV BHARDWAJ on 26 Jun 2016
can you provide video so that I can remove error from my system while installation of MATLAB 2016/a

  3 Comments

Walter Roberson
Walter Roberson on 27 Jun 2016
It takes a lot of resources to produce a video that would cover all of the possibilities on all of the operating systems. You would be better off contacting Mathworks Support for free installation assistance.
VAIBHAV BHARDWAJ
VAIBHAV BHARDWAJ on 4 Jul 2016
ya ,but still i am not able to fix this error
Walter Roberson
Walter Roberson on 4 Jul 2016
Was Mathworks Support unable to assist you with your installation problem?
I estimate that it would take me about a month or two months of full time effort to create a suitable video, as I would have to research all of the possibilities, load all of the different operating systems, figure out how all of those operating systems worked, research all the various ways things could go wrong. Make that three months full time work, perhaps four. Plus the time to learn video editing, and the cost of buying the various operating systems to experiment with. I am sure I would have learned a lot by the end, but keep in mind that during that time I would not be answering Questions here because I would be busy working on the video to answer one Question. A Question that Mathworks Support might already know the answer to for any particular operating system and release.

Sign in to comment.


Leonard Bagos
Leonard Bagos on 29 Jul 2016
are all version of MATLAB so complicated to install? I cannot even start the MATLAB R2016a. If there is a version which is simple to install and start. what version is it?

  3 Comments

Walter Roberson
Walter Roberson on 29 Jul 2016
In the case of individual licenses, the last few versions of MATLAB have been easy to install: download the installer, start it running, indicate your agreement with the licenses in the appropriate place, provide your Mathworks login credentials, select which of the products you want to install, indicate where you want to install them, set it executing. Eventually, indicate which user it is authorized for, and request activation.
If you are using a license server for a commercial or academic license, then Yes, matters get more complicated. Unfortunately, license servers do tend to be complicated. The other major vendors of similar software all use the same licensing technology so the situation is the same for them.
Yeman Brhane
Yeman Brhane on 16 Feb 2017
Most of the time this error happens when the folders listed in the readme files are not properly copied to the %installdir% to overwriting the originally installed files. So make sure you replace them prperly.
songyao dou
songyao dou on 16 Nov 2019
sorry, i tried this way,but stil failed,can you give me another way.

Sign in to comment.


yonghai qiao
yonghai qiao on 7 Mar 2017
This issue generally indicates that the license file is served from a license manager and that there is a problem with the license.dat file on the machine running the license manager. The cause of this error may be due to one of the following:
1. The Host ID for which the license.dat file was generated is not the Host ID of the license server machine
2. Missing, corrupt, or incorrect characters in the license.dat file itself
3. The system time and date are not set properly. Check to make sure that the date and time are set correctly on the machine before proceeding below.
This issue may also occur if you are using MATLAB R2007b or below with a standalone license file generated for R2008a or higher.In this case, generating a license file for the correct release of MATLAB will resolve this issue.
If the time and date are set correctly, and you are not using R2007b or below with a standalone license file for R2008a or higher, see the steps below for troubleshooting the license file:
The first step is to locate the license file (license.dat) for the license manager. The license.dat file on the server machine is located in:

  0 Comments

Sign in to comment.


Parth Kalra
Parth Kalra on 24 Mar 2017
Disappointed with the installation procedure. Facing this same issue. Is there an easy way out? This is not user friendly at all.

  4 Comments

Show 1 older comment
Anesu Chimhowa
Anesu Chimhowa on 6 Jul 2018
you guys are not serious just installing an application just as as dicficult as rocket science..would you have used smartphones if it was this complicated..u litteraly did nothing to hide the complexity of this thing
Walter Roberson
Walter Roberson on 6 Jul 2018
This error condition only applies when a license server is being used. Unfortunately it turns out that license servers are surprisingly complex.
Mathworks uses Flexera's flexlm license server, which is the same license server used by many many software packages, including all of the major competitors to Mathworks that I could think of to check into.
Walter Roberson
Walter Roberson on 29 Oct 2018
It has since come to my attention that another case in which this problem shows up is in connection to some cracked versions of MATLAB. We delete all information about how to crack MATLAB.

Sign in to comment.


Dipankar Hazra
Dipankar Hazra on 25 Mar 2017
why I can't activate

  1 Comment

Walter Roberson
Walter Roberson on 25 Mar 2017
Please contact Mathworks for free installation support.

Sign in to comment.


bhupender singh
bhupender singh on 4 Oct 2017
i got same error8

  0 Comments

Sign in to comment.


vertulonix vertu
vertulonix vertu on 13 Nov 2017
its not working please help me

  1 Comment

Sign in to comment.


innocent karengera
innocent karengera on 16 Nov 2017
i installed my Matlab it is R2015a i opened it it's show me trable shooting i need to activate my Matlab i just need where to put activation key and i need activation key

  1 Comment

Walter Roberson
Walter Roberson on 18 Nov 2017
Please contact Mathworks for free installation support.

Sign in to comment.


innocent karengera
innocent karengera on 16 Nov 2017
my matlab shows me trouble shooting send helh on this E-mail karengerainnocent@yahoo.com

  0 Comments

Sign in to comment.


Muhammad Kashif
Muhammad Kashif on 23 Dec 2017
I was getting the same error in Matlab 2017b. I tried the solutions given on this page but they didn't work for me unfortunately. The problem was solved simply by changing the computer name. I bought the new laptop and the computer name was something like Asus-64489 . I just changed it to a 6 letter word like "SkScan". This fixed the problem. AlHamduliLLah

  1 Comment

Ami Bose
Ami Bose on 13 Jan 2019
Hi Kashif,
Did you reinstall Matlab after changing the laptop name?

Sign in to comment.


fatma zein
fatma zein on 18 Feb 2018
1. The Host ID for which the license.dat file was generated is not the Host ID of the license server machine

  1 Comment

Walter Roberson
Walter Roberson on 1 Mar 2018
That would happen if you installed the network license daemon (flexlm), but that the MAC address you requested the license file be generated for is not recognized as one of the MAC addresses of the license server.
This could happen due to a mistake in which system the license was requested for. It could also happen in some Linux environments due to changes in the ethernet device naming conventions. It can also happen in some OS-X or MacOS environments that have dual thunderbolt displays installed. It can also happen in some Linux systems that have no hardwared ethernet ports (only WiFi) and the system has been configured to randomize the WiFi MAC address on every boot.

Sign in to comment.


Kalansuriya Uditha
Kalansuriya Uditha on 24 Mar 2018
i got license-error 8523 after i install matlab why is that?

  1 Comment

Walter Roberson
Walter Roberson on 26 Mar 2018
The error would have been -8,523 rather than 8523 .
The causes are as explained above.

Sign in to comment.


Kamal Lamichhane
Kamal Lamichhane on 16 May 2018
Hi, please help me to solve following problem!

  5 Comments

Show 2 older comments
Tech Support
Tech Support on 6 Jun 2018
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Justin
febin m
febin m on 1 Feb 2019
i got same problem , can you fix this ?
marwan alasali
marwan alasali on 2 Aug 2019
i get same problem can any one help me?

Sign in to comment.


OJO AFEEZ
OJO AFEEZ on 30 May 2018
thanks

  0 Comments

Sign in to comment.


yeshan liang
yeshan liang on 22 Jul 2018
-8523

  1 Comment

Walter Roberson
Walter Roberson on 30 Sep 2018
The error would have been -8,523 rather than 8523 .
The causes are as explained above.

Sign in to comment.


Saad Abdullah
Saad Abdullah on 20 Jan 2019
Just make a file named as licenses in R2016b folder and then add your license files in that folader. Then copy your bin,licenses and toolbox folder from R2016b folder and paste it in programfiles where your matlab is located.

  2 Comments

Raja Adnan Ali
Raja Adnan Ali on 7 Oct 2019
yes it worked.... thanks alot bro... respect....

Sign in to comment.


hbo
hbo on 16 Feb 2019
Edited: hbo on 16 Feb 2019
Hello all,
please help me to solve this problem (matlab 2016 (64 bit)?
license Manager error -8
thank you in advance
hbo

  1 Comment

Walter Roberson
Walter Roberson on 16 Feb 2019
If the steps described above do not work for you then you need to contact Mathworks Technical Support.

Sign in to comment.


Varsha Choudhary
Varsha Choudhary on 9 Apr 2019
How to solve problem -8523. Please answer

  1 Comment

Walter Roberson
Walter Roberson on 9 Apr 2019
If the steps in Mathworks' response did not solve the problem for you, then you need to contact Mathworks for free installation support.

Sign in to comment.


RaviTej NaNi K
RaviTej NaNi K on 2 Jun 2019
Edited: RaviTej NaNi K on 2 Jun 2019
Hi Friends. If your are facing licence checkout failed-8 and Licencing error -8523 issue.Please update your windows properly then it will resolve the issue. I have faced same issue and struggled for 1 week.Finally after updating windows it is working without any licence issues.Hope it helps.

  0 Comments

Sign in to comment.


Anna
Anna on 14 Aug 2019
license

  1 Comment

Walter Roberson
Walter Roberson on 14 Aug 2019
There is a problem with the license file, and the person who installed MATLAB needs to fix the license file; you can direct them to this current article for more information.

Sign in to comment.


Liqaa mezher
Liqaa mezher on 7 Oct 2019
Hi, please help me to solve following problem!matl.png

  1 Comment

Colin Fraser
Colin Fraser on 10 Oct 2019
Hi,
If you are still experiencing this issue, please contact MathWorks support:
-Colin Fraser

Sign in to comment.


ashish shinde
ashish shinde on 31 Oct 2019
just copy netapi32.dll file from your installation to C:\Program Files\MATLAB\R2018a\bin\win64
It will work

  1 Comment

Sign in to comment.


Anshu Kumar
Anshu Kumar on 8 Feb 2020 at 9:54
Help

  0 Comments

Sign in to comment.


Anshu Kumar
Anshu Kumar on 8 Feb 2020 at 9:55
Matlab

  0 Comments

Sign in to comment.

Sign in to answer this question.