Running mcc through ssh corrupts/breaks license (error -9,57)
1 view (last 30 days)
Show older comments
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 Comment
Walter Roberson
on 5 Nov 2023
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.
Answers (1)
Riya
on 5 Nov 2023
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 Comment
Walter Roberson
on 5 Nov 2023
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.
See Also
Categories
Find more on Install Products 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!