matlab-actions / .github

Automate your workflows with GitHub actions for MATLAB.
65 stars 2 forks source link

Matlab fails with License Manager Error -1 #19

Open pollaro opened 5 months ago

pollaro commented 5 months ago

Trying to run a command to export mlapp files on push, and license fails.


Run command
  /home/runner/work/_actions/matlab-actions/run-command/v2/dist/bin/glnxa64/run-matlab-command setenv('MW_ORIG_WORKING_FOLDER', cd('/tmp/run_matlab_command-LTYq6W'));command_da783cac_7983_4899_b112_ffbb32e45660 
  License checkout failed.
  License Manager Error -1
  The license file cannot be found.
  Troubleshoot this issue by visiting: 
  https://www.mathworks.com/support/lme/1
  Diagnostic Information:
  Feature: MATLAB 
  License path: /home/runner/.matlab/R2023b_licenses:/opt/hostedtoolcache/MATLAB/2023.2.999/x64/licenses/license.dat:/opt/hostedtoolcache/MATLAB/2023.2.999/x64/licenses 
  Licensing error: -1,359. System Error: 2
  exit status 1
  ::endgroup::
Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-command/v2/dist/bin/glnxa64/run-matlab-command' failed with exit code 1```
mcafaro commented 5 months ago

Hi @pollaro, Are you using a public repository? Automatic licensing only occurs on public repositories at the moment.

pollaro commented 5 months ago

Hi @pollaro, Are you using a public repository? Automatic licensing only occurs on public repositories at the moment.

That explains it.

pollaro commented 5 months ago
  1. Is there anywhere it actually says that?
  2. Is there a workaround?
pollaro commented 5 months ago

bump, @mcafaro

mcafaro commented 5 months ago

Hi @pollaro, we are running a pilot program for token-based private repository licensing. If you send an email to continuous-integration@mathworks.com with the output from running the ver command in your desktop MATLAB, we can look into adding you to the program. The licensing for public repositories is mentioned on the MathWorks Continuous Integration page but we will add it to this page as well.