MATLAB: Licensing error: -9,57.

licenseMATLAB

Hi,
I am installing Matlab on a HPC on a license holder's user account. I installed and acivated the license. However, when they run matlab, the following error occurs:
MATLAB is selecting SOFTWARE OPENGL rendering.
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/R2019b/9
Diagnostic Information:
Feature: MATLAB
License path: /root/.matlab/R2019b_licenses:/home/cuperlovim/privateModules/Matlab/R2019b/licenses/license.dat:/ho
me/cuperlovim/privateModules/Matlab/R2019b/licenses/license_aims_340542_R2019b.lic
Licensing error: -9,57.

Best Answer

The license path including /root/.matlab/R2019b_licenses could be a problem: they are obviously on Linux and they would not be running the software as "root" . You might need to adjust the LM_LICENSE_FILE environment variable, or you might need to delete the one in /root so that the software continues on to check the other locations.