MATLAB Answers

0

Matlab gives a "License checkout failed" error after rebooting

jg614 님이 질문을 제출함. 13 Feb 2018
최근 활동 Ville Lehtola 님이 답변함. 7 May 2018
I'm using Fedora 27 with Linux 4.14.16-300. Every time I reboot it gives me an error:
License checkout failed.
License Manager Error -9
The hostid of your computer ("8e16dd22f151 d050993b4804") does not match the hostid of the license
file (c246c6426b48).
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2016b/9
Diagnostic Information:
Feature: MATLAB
License path: /home/josh/.matlab/R2016b_licenses:/usr/local/MATLAB/R2016b/licenses/license.dat:/usr/local/MATLAB/R
2016b/licenses/license_localhost_2713860_R2016b.lic
Licensing error: -9,57.
Something must be reset after each reboot, but I can't figure out what it is. The hostid is just the MAC address of my wireless adapter, followed by that of my ethernet adapter, neither of which should change on reboot. I'm not sure why the license file looks for a single hostid either, rather than a double one like my computer has. Has anyone else run into this issue? This is with MATLAB R2016b.
EDIT: After a reboot I have realized that my network adapters' MAC addresses are randomized on each boot. I believe setting a static MAC address (if that's possible on Fedora) will solve this problem. It's probably bad practice to link a license to something that the operating system changes by default.

  댓글 수: 0

로그인 to comment.

답변 수: 1

Answer by Ville Lehtola on 7 May 2018

Had the same problem with Fedora 27: my network card changes MAC address after each reboot. For Matlab to start, however, the "Host ID" visible in MathWorks license center must match the network MAC address of your network card. I fixed the problem by copying the value from the license center to my network configuration at
/etc/sysconfig/network-scripts/ifcfg-eth0
I added the following line (replace this example with your "Host ID")
MACADDR=XX:78:EE:75:R1:k4
and rebooted the card
ifdown eth0
ifup eth0
Voilà!

  댓글 수: 0

로그인 to comment.



Translated by