Why do I receive License Manager Error -9?

27,098 次查看(过去 30 天)
When I try to launch MATLAB, I get one of the following errors:
License checkout failed.
Invalid host. License Manager Error -9
or
License Manager Error -9
Your username does not match the username in the license file.

采纳的回答

MathWorks Support Team
MathWorks Support Team 2023-6-1,0:00
编辑:MathWorks Support Team 2022-10-10
License Manager Error -9 may be caused by various different reasons depending on how MATLAB was installed and activated:
  • (Individual and Campus-Wide license only) The username in the license file does not match 
  • (Offline Activations) The Host ID in the license file does not match
  • (Designated Computer Only) MATLAB is already running under a different user account 
  • Machine has a non-static Host ID

(Individual and Campus-Wide licenses only) The username in the license file does not match.

When installing or activating MATLAB, the MathWorks product installer or the activation client attempts to retrieve the username of the user installing MATLAB to activate. If the username was changed or the username retrieved is incorrect, the username in the license file will not match the username of the MATLAB user, and MATLAB issues License Manager Error -9.
To determine the username in the current session:
  • Windows: Open a command prompt and enter "set username"
  • Mac: Open a terminal window and type "whoami". Copy that result. You will need that at last step of the activation process.
  • Linux: Enter “whoami” in a terminal window.
To resolve, verify the username of the MATLAB user, and reactivate MATLAB with the correct username.
Note: Usernames are case sensitive and may not be recognized if they contain spaces.

(Offline Activations) The Host ID in the license file does not match.

When you activate MATLAB manually using the License Center, you must provide the Host ID, and for Individual Licenses, the username, to activate the license to the machine. If the wrong Host ID was used to activate, the Host ID in the license file will not match the Host ID on the machine, and MATLAB issues License Manager Error -9.
To resolve, verify the Host ID of the machine, and, for Individual licenses, the username of the MATLAB user, then reactivate MATLAB.
 

(Designated Computer Only) MATLAB is already running under a different user account.

With Designated Computer licenses, MATLAB may only be used by one user on one user account on the machine at a time. When MATLAB is started with a Designated Computer license, it attempts to detect any MATLAB processes already running on the machine. If there is a MATLAB process running under a different user account on the same machine, MATLAB issues License Manager Error -9.
To resolve, end all MATLAB processes on different user accounts on the same machine.
 

Non-static Host ID

For Individual and Designated Computer licenses, the Host ID used to activate MATLAB must not change over time or the Host ID will not match the Host ID in the license file, and MATLAB issues License Manager Error -9. This is common for many virtual machine configurations.
To resolve, configure your system to have a static Host ID, and then reactivate MATLAB.
  24 个评论

请先登录,再进行评论。

更多回答(6 个)

Dandan Zhang
Dandan Zhang 2016-3-12
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.
  2 个评论
Walter Roberson
Walter Roberson 2021-8-29
Windows-R . When it brings up the small box to type in a command, use the command
cmd
This will cause a full cmd.exe to be launched. When that comes up, at the (Windows) command window, enter the command
echo %username%
The echo does not go into the MATLAB command window; it goes into the Windows command window.
(You can bring up Powershell instead of cmd if you prefer.)

请先登录,再进行评论。


Scott Ruffner
Scott Ruffner 2017-2-25
编辑:Scott Ruffner 2017-2-25
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.

Michael
Michael 2014-9-6
编辑:Michael 2014-9-6
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.

Miguel Angel Benavides Morales
Para usuarios de windows 10 Home single language: Presionar la tecla windows, buscar Matlab, en la parte inferior debajo de la pestaña aplicaciones debe aparecer Activate MATLAB. Luego ingresar con usuario y contraseña, darle activar licencia y dejar el nombre del usuarios como aparece (por cambiar ese nombre al momento de la instalación o cambiar el nombre de usuario o de usuario en el pc es que aparece el error), luego seguir los pasos de activador y listo.

Andrew Janke
Andrew Janke 2019-10-3
Ouch, dude. That's not a great user experience. I got this same problem when I upgraded my iMac to a newer hardware version. Props to you for the "Troubleshoot" button bringing up this (relevant, correct) answer, but seems like the license transfer process could be made easier, especially for the case of restoring a computer from backup to new hardware.

luis alejandro florez castañeda
编辑:Walter Roberson 2020-3-25
porque no me deja ingresar al software si tengo mi licencia y todo?
que tengo que hacer en este caso?
  1 个评论
Walter Roberson
Walter Roberson 2020-3-25
It looks to me as if you need to re-activate with username Dell . Or possibly that you need to log in with your own username and activate using that.
The username that you activate the license against needs to be the internal username you log in with, as described at https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9#answer_213381 . It is never your "Windows Live" account.

请先登录,再进行评论。

类别

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

标签

尚未输入任何标签。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by