필터 지우기
필터 지우기

Running mcc through ssh corrupts/breaks license (error -9,57)

조회 수: 4 (최근 30일)
Aleksei Ponomarenko-Timofeev
Aleksei Ponomarenko-Timofeev 2019년 5월 13일
댓글: Walter Roberson 2023년 11월 5일
Hello, I have an issue with matlab compiler. I have a build node, which has an academic version of matlab installed (with all packages). Right after installation I checked if matlab and compiler run, and as expected everything goes fine. After that, I run a script, that copies all of the files from local machine (developer station, so to say) to build node via scp and invokes mcc to compile the binary package for linux (Archlinux x86_64, to be precise) via ssh. IF mcc is invoked from x2go session and script simultaneously or x2go session only, all goes well. However, after I run mcc from script, I get error -9,57 both in case of script and x2go session, meaning that license file most probably gets corrupted. Removing .lic file from ~/.matlab/R{release}_licenses/ restarts the activation, that in turn fixes the issue. However, this is an extremely suboptimal approach (since it requires manual reactivation), so if someone had similar issue or knows proper procedure to fix the problem, could you please tell me how You solved it? Maybe I am doing something I am not supposed to do, but how do I enable remote compilation then? PATH variable seems to be configured correctly (includes matlab bin directory). Build partition is formatted as xfs, if that matters.
Error message:
License checkout failed.
License Manager Error -9
The hostid of your computer ("fe66acd6ff5b fcaa1404757a") does not match the hostid of the license
file (62255a8f91db).
To run MATLAB on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2018a/9
Diagnostic Information:
Feature: Compiler
License path: /home/kompilainen/.matlab/R2018a_licenses/license_archlinux_343234_R2018a.lic:/home/kompilainen/MLAB
/licenses/license.dat:/home/kompilainen/MLAB/licenses/*.lic
Licensing error: -9,57.
can not build
The command for remote run is:
ssh -p <destport> -i <identity file> <user>@<host> "cd builddir && mcc -o simul -W main:simul -T link:exe -d ~/builddir/built -R '-nodisplay' -v ~/builddir/simul.m"
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 11월 5일
I wonder... if there happened to be multiple licenses on the destination and somehow the first license was considered to be "in use", then it might try to use the second license -- and that second license might happen to have been activated against a different computer.

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

답변 (1개)

Riya
Riya 2023년 11월 5일
Hello Aleksei Ponomarenko-Timofeev,
I understand that you are facing license related error while using MATLAB.
Please note that, license Manager Error -9 may be caused due to various reasons:
  • The username or Host ID in the license file does not match
  • (Designated Computer Only) MATLAB is already running under a different user account
This error occurs when the Operating System username of the user launching MATLAB does not match the username that was used during activation. This often occurs when an administrator activates MATLAB for a user.
For instructions to resolve this error, please go through the below provided link by MathWorks Support Team.
Hope it helps!
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 11월 5일
This response does not address the specific problem that during execution, after the user has already successfully invoked MATLAB, that MATLAB complains about the hostID not matching.

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

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by