matlab-actions / setup-matlab

Set up your GitHub Actions workflow with a specific version of MATLAB.
BSD 3-Clause "New" or "Revised" License
77 stars 12 forks source link

setup-matlab 2.0 encounters various errors on all platforms #91

Closed zaikunzhang closed 9 months ago

zaikunzhang commented 9 months ago

Hi,

In the following workflow runs, various errors occur

https://github.com/opt4ai/prima/actions/runs/7855964578 https://github.com/opt4ai/prima/actions/runs/7846540039

There are at least three types of errors (maybe more):

  1. https://github.com/opt4ai/prima/actions/runs/7855964578/job/21438238878

    Run matlab-actions/run-command@v2.0.0
    Generate script
    Run command
    /Users/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/maci64/run-matlab-command setenv('MW_ORIG_WORKING_FOLDER', cd('/var/folders/gh/0cww6vn93nv_jjsw3xkm0b4m0000gn/T/run_matlab_command-roOuUd'));command_27a3f4da_e6e0_4250_90a7_62541ce3dd93 
    'matlab' executable not found on the system path
    Error: Error: The process '/Users/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/maci64/run-matlab-command' failed with exit code 1
  2. https://github.com/opt4ai/prima/actions/runs/7855964578/job/21438239550

    /Users/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/maci64/run-matlab-command setenv('MW_ORIG_WORKING_FOLDER', cd('/var/folders/14/hgs_fjmn5ms001tb8qtxxn5c0000gn/T/run_matlab_command-FZHUpC'));command_9bcf11a3_192b_4b78_9f3a_eee938b0f3a8 
    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: /Users/runner/Library/Application Support/MathWorks/MATLAB/R20[23](https://github.com/opt4ai/prima/actions/runs/7855964578/job/21438239550#step:13:25)b_licenses:/Users/runner/hostedtoolcache/MATLAB/2023.2.999/x64/MATLAB.app/licenses/license.dat:/Users/runner/hostedtoolcache/MATLAB/2023.2.999/x64/MATLAB.app/licenses 
    Licensing error: -1,359. System Error: 2
    exit status 1
    Error: Error: The process '/Users/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/maci64/run-matlab-command' failed with exit code 1
  3. https://github.com/opt4ai/prima/actions/runs/7855964578/job/21438236359

    /home/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/glnxa64/run-matlab-command setenv('MW_ORIG_WORKING_FOLDER', cd('/tmp/run_matlab_command-ITFSlM'));command_d1f4fcab_98ed_40a7_8b58_0c0236e4e49e 
    exit status 1
    ---------------------------------------------------------------------------
    Error: Activation cannot proceed. You may either:
    1. Set an X11 display, and restart the activation process
    2. Use the silent activation feature
    3. Activate using the license center
    ---------------------------------------------------------------------------
    Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-command/v2.0.0/dist/bin/glnxa64/run-matlab-command' failed with exit code 1

Thank you for taking a look.

Best regards, Zaikun

mcafaro commented 9 months ago

Hi Zaikun,

There was a licensing outage on Saturday which is the likely cause of error 2 and 3.

Error 1 looks like a possible cache conflict. setup-matlab@v2 has a cache input you can set to true in order to cache MATLAB in the the runner cache. Can you try using that rather than actions/cache manually?

zaikunzhang commented 9 months ago

Thank you @mcafaro . My workflows are running correctly now after setting cache: true.

bitwiseops commented 9 months ago

License checkout failed. License Manager Error -1 The license.dat file cannot be found.

Troubleshoot this issue by visiting: https://www.mathworks.com/support/lme/R2021b/1

Diagnostic Information: Feature: MATLAB License path: /home/runner/.matlab/R2021b_licenses:/opt/hostedtoolcache/MATLAB/2021.2.999/x64/licenses/license.dat :/opt/hostedtoolcache/MATLAB/2021.2.999/x64/licenses Licensing error: -1,359. System Error: 2 exit status 1 Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-command/v2/dist/bin/glnxa64/run-matlab-command' failed with exit code 1

Hello, I'm having the same problem, tested yesterday and today using Matlab 2021b. Licensing outage?

Thanks for the help

mcafaro commented 9 months ago

There should no longer be a licensing outage. Are you using a public repository? Can you post a link to the job log?

bitwiseops commented 9 months ago

Hello @mcafaro

Im using a private repo, should it be a problem?

mcafaro commented 9 months ago

@bitwiseops Automatic licensing is only available for public projects at the moment. If you send us an email at continuous-integration@mathworks.com , we can look into adding you to a pilot program for private projects.

bitwiseops commented 9 months ago

@mcafaro I see, thank you for the help.

bitwiseops commented 9 months ago

@bitwiseops Automatic licensing is only available for public projects at the moment. If you send us an email at continuous-integration@mathworks.com , we can look into adding you to a pilot program for private projects.

Hello @mcafaro I tried to send an email, but it gets rejected because of DSN code 5.7.1