matlabinstallationlicense-key

Activating Matlab error: License checkout failed. License Manager Error -9


Im on Linux Manjaro. I tried everything that came to my mind but I'm still getting this error:

[john@john-pc bin]$ sudo ./matlab
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file. 
To run on this computer, you must run the Activation client to reactivate your license.

Troubleshoot this issue by visiting: 
https://www.mathworks.com/support/lme/R2020a/9

Diagnostic Information:
Feature: MATLAB 
License path: /root/.matlab/R2020a_licenses:/usr/local/MATLAB/R2020a/licenses/license.dat:/usr/local/MATLAB/R2020a
/licenses/license_john-pc_40911196_R2020a.lic 
Licensing error: -9,57.

I ran ./activate_matlab.sh and activated it through the license file AND login into MathWorks online. I deleted the installation .lic in R2020a/license/ and created a new one. I tried creating a license file with every mac address I could find. Nothing works. I keep getting this error. Only once I managed to use Matlab, which was right after installing it. Then after the first time closing it I'm I have been stuck on this error for 2 days. Please help me.


Solution

  • Okay, I wrote to MathWorks support. And they gave me a link to their forum where I found the solution. Here it is:

    https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9

    I had to go all the way up to copying my HostID etc and set my login as root and run Matlab with sudo

    But in case the link dies here it is from the MathWorks post: 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

    Linux

    The activation client is located here:

    /usr/local/MATLAB/R20XXx/bin/activate_matlab.sh

    Once you have launched the MATLAB activation client:

    Still seeing a License Manager Error -9?

    Confirm your Username and Host ID using the activation client:

    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?

    https://www.mathworks.com/matlabcentral/answers/259627