matlab-actions / .github

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

License Error during Matlab Run Action #4

Closed bendhouseart closed 2 years ago

bendhouseart commented 2 years ago

Currently getting the following error message from github actions after successful setup of Matlab:

  ======BEGIN LICENSE MANAGER ERROR======
  License checkout failed.
  License Manager Error 4402
  SSL Exception: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

  Troubleshoot this issue by visiting: 
  https://www.mathworks.com/support/lme/R2021a/4402

  Diagnostic Information:
  Feature: MATLAB_Distrib_Comp_Engine 
  License path:  
  Licensing error: 4402,0.======END LICENSE MANAGER ERROR======

Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-command/v1/dist/bin/run_matlab_command.sh' failed with exit code 1

Just noticed this error in the last 1-2 days. Workflow had previously been working fine up until a confirmed 09/17/21 here

I am not a Matlab developer, I just play one on CI. Any help or assistance would be greatly appreciated.

mcafaro commented 2 years ago

Thanks for getting in touch. This is due to an Online Licensing partial outage that is currently under investigation. Our apologies for the inconvenience, but we will resolve it as soon as possible. You should not have to do anything. Please check our status page for up to date details.

https://status.mathworks.com/

bendhouseart commented 2 years ago

@mcafaro oh that's excellent to hear (for me at least). Good luck to your dev ops folks!

acampbel commented 2 years ago

@mcafaro oh that's excellent to hear (for me at least). Good luck to your dev ops folks!

@bendhouseart The Online Licensing service should be available and running now. Thank you for your patience.

msafwanalam commented 6 months ago

Hello! I am currently facing some issues in the setup matlab component. I have added the following in my yml file:

name: Run MATLAB Build on GitHub-Hosted Runner
on: [push]
jobs:
  my-job:
    name: Run MATLAB Build
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v4
      - name: Set up MATLAB
        uses: matlab-actions/setup-matlab@v2
        with:
          products: Simulink Simulink_Test
      - name: Run build
        uses: matlab-actions/run-build@v2
        with:
          tasks: test

Just the basic setup, but it results in this: image Is there any additional setup required for the license?

davidbuzinski commented 6 months ago

Hi @msafwanalam ,

It looks like the yaml you provided might be different from the yaml that produced the log outputs. In the sample you used above, I see that you used v2 for both setup-matlab and run-build, but in the logs it shows v1 for the run-build action. Can you confirm that the licensing error still occurs if you use v2 for both the setup-matlab and run-build actions?

Also, please note that free licensing is only available for public repositories. Is this code in a private repository?

Thanks, David

msafwanalam commented 6 months ago

Hello @davidbuzinski !

My apologies. I was testing different versions to see if that would help. I changed it to use v2 now. It was a private repository before, and now I have made it public and tried again and it seems like I am just missing a buildfile.m.

Thanks, msafwanalam

acampbel commented 6 months ago

Hi @msafwanalam,

Thanks for providing more detail. There a re a couple issues going on here:

  1. Free licensing for GitHub Actions is only available for public projects, so that is likely why you received the licensing errors before.
  2. The error you are now seeing is not a licensing error. MATLAB is starting correctly, but you are using the run-build action which requires you to have setup your project to use the MATLAB build tool by writing a buildfile.m to define your build.
  3. I noticed that you have some tests in this repo, but none of them use the test framework built in MATLAB. That is ok, you can exercise those tests however you want by writing a local task function in your buildfile. However the examples you may see that use the TestTask only work with tests written using the MATLAB unit test framework.

Hope that helps! Andy