MATLAB Answers

Why do I receive License Manager Error -9?

조회 수: 51,290(최근 30일)
When I try to launch MATLAB, I get the following error:
License checkout failed. Invalid host. License Manager Error -9

채택된 답변

MathWorks Support Team
편집: MathWorks Support Team 29 Jul 2020
The best way to resolve a License Manager Error -9 is by reactivating MATLAB with the activation client.
Windows
The activation client is located here:
C:\Program Files\MATLAB\R20XXx\bin\winXX\activate_matlab.exe
Mac
  • Open Finder.
  • Go to "Applications".
  • Right-click or control-click on the MATLAB application icon. (e.g. MATLAB_R2015b.app)
  • Click on "Show Package Contents".
  • Open "Activate.app".
Linux
The activation client is located here:
/usr/local/MATLAB/R20XXx/bin/activate_matlab.sh
Once you have launched the MATLAB activation client:
  1. Select "Activate automatically using the internet."
  2. Log into your MathWorks account.
  3. Select the correct license.
  4. The username field should auto-populate with the correct user name. Leave it as is.
  5. Confirm the activation information.
  6. Click "finish" to complete the activation process.
  7. Restart MATLAB.
Still seeing a License Manager Error -9?
  • The username in the license file does not match
  • The Host ID in the license file does not match
  • You have a Designated Computer MATLAB license and MATLAB is already running under a different user account on this computer.
Confirm your Username and Host ID using the activation client:
  1. Run the activation client and select "Activate manually without using the Internet."
  2. Choose “I do not have a license file. Help me with the next steps.”
  3. Copy your Host ID and Computer Login Name.
  4. Click the back arrow 2 times and choose “Activate automatically using the Internet” then input the appropriate username.
  5. Launch MATLAB using the appropriate user account.
Activation client requires elevated privileges to run? Connection error when Activating automatically? Still seeing a License Manager Error – 9?
How do I activate MATLAB without an internet connection?

  댓글 수: 111

표시 이전 댓글 수: 108
LEDIA HASA
LEDIA HASA 5 Oct 2020 21:30
Hello there. i seem to have the same problem. i am working on ubutnu 18.04 TLS (WSL) and I have been working with matlab there until now. at some point, the matlab license don't work anymore, becouse my host Id has changed to 0000000000. I dont know how to get back my old host id. so any of these steps here aren't helping becouse the problem is always the same.
shaik mujahid
shaik mujahid 8 Oct 2020 10:24
Thanks, that was an exact procedure. Done within few seconds
Colin Fraser
Colin Fraser 14 Oct 2020 13:45
@LEDIA HASA
You'll need to somehow change that host ID on your computer. A 0000000000 host ID will not register correctly with us.
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

댓글을 달려면 로그인하십시오.

추가 답변(72개)

Dandan Zhang
Dandan Zhang 12 Mar 2016
Note: It's your Windows User Name rather than Microsoft Account Name.
You can determine your Windows username as follows:
  1. 1.While sitting at the host computer with press and hold the Windows key and press the letter R on your keyboard.
  2. 2.The Run box will appear.
  3. 3.In the box, type cmd and press Enter. The command prompt window will appear.
  4. 4.Type echo %username% and press Enter. (there is a space between echo and %username%)
  5. 5.Your current username will be displayed.

  댓글 수: 33

표시 이전 댓글 수: 30
雪莹 刘
雪莹 刘 22 Sep 2020
thank you so much!!!!!
Akhil Nair
Akhil Nair 21 Oct 2020 13:44
thank you so much
亿万 李
亿万 李 약 5시간 전
3Q so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

댓글을 달려면 로그인하십시오.


Scott Ruffner
Scott Ruffner 25 Feb 2017
편집: Scott Ruffner 25 Feb 2017
I was able to fix the error on my MacBook Pro with the advise above from Scott on the MathWorks Installation & Licensing Support team. I've added a few tips and step by step clarifications for others that may have the same issue.
I was receiving the -9 error. I'm running OS X Yosemite 10.10.5
It seems that you need to know which user on your Mac you are using. To find this out open a terminal window and type "whoami". Copy that result. You will need that at last step of the activation process.
I installed MATLAB in the /Applications folder.
In the terminal window go to wherever you installed MATLAB and find the bin sub-directory. For me this was /Applications/MATLAB_R2016b.app/bin
In the terminal I ran the activation script again by typing "./activate_matlab.sh"
Then I went through the steps "Login to MathWorks" [email/password] >> Next Selected the pre-selected license. >> Next Provide a user name/Login Name: (Paste the user name that you copied when you ran whoami above.)
Then open a new finder window go to Applications and try to run MATLAB_R2016b. It opened this time without errors hope this helps.

  댓글 수: 14

표시 이전 댓글 수: 11
Juan Manuel Aranda Lopez King
Thank you so much. Worked for me.
Pierluigi Claps
Pierluigi Claps 4 Oct 2020 22:05
I got a "write permission error" and didn't work for me. The app was transferred from a previous mac in Catalina
Colin Fraser
Colin Fraser 14 Oct 2020 13:27
It might be worth redownloading and installing solely on the Mac, rather than transferring the files.
If you are still experiencing this issue, please create a service request below.
-Colin Fraser

댓글을 달려면 로그인하십시오.


Michael
Michael 6 Sep 2014
편집: Michael 6 Sep 2014
Note for Linux users: when I installed MATLAB on my Manjaro OS, I was required to have 'root' as my username, rather than my actual username.
The solution to this (if you're using a terminal, which is the only way I can access MATLAB), is to open MATLAB as 'root' by entering 'sudo su' (which changes you to root), and then typing 'matlab'.
P.S. The '' marks on words and phrases like 'root', 'sudo su' and 'matlab' are written in this post just to highlight the specific terms and commands. Quotes ('') should not be included when inputting commands into the Terminal.

  댓글 수: 19

표시 이전 댓글 수: 16