Skip to content

setup-matlab fails #146

Closed
Closed

Description

@ehennestad

I am currently getting this error:

Setting up MATLAB
  /usr/bin/chmod +x /home/runner/work/_temp/mpm
  /home/runner/work/_temp/mpm install --release=r2024b --destination=/opt/hostedtoolcache/MATLAB/2024.2.999/x64 --products MATLAB
  Installing with the following parameters:
  --destination=/opt/hostedtoolcache/MATLAB/2024.2.999/x64
  --release=R2024b
  --products=MATLAB
  ---------------------------------------------
  Error: mpm version 2025.1 is not supported. Download the latest version of mpm.
Error: Error: The process '/home/runner/work/_temp/mpm' failed with exit code 255

Using the following step in a GitHub Actions workflow:

      - name: Set up MATLAB (${{ inputs.matlab_release }})
        uses: matlab-actions/setup-matlab@v2
        with:
          release: ${{ inputs.matlab_release }}

where inputs.matlab_release is "latest"

Activity

  1. nmodi1 commented on May 19, 2025

    @nmodi1

    Getting the same error when attempting to build the Matlab Docker image for R2023b.

    Downgrading the mpm version to 2024.4 doesn't work either.

  2. mcafaro commented on May 19, 2025

    @mcafaro
    Member

    There is an outage at the moment. We are working on it.

  3. Sandruz commented on May 20, 2025

    @Sandruz

    I have the same issue, I guess:

    Installing with the following parameters:
      --destination=/home/runner/_work/_tool/MATLAB/2020.2.999/x64
      --release=R2020b
      --products=Simulink, AUTOSAR_Blockset, Simulink_Check, Simulink_Coder, Simulink_Coverage, Simulink_Design_Verifier, Simulink_Report_Generator, Simulink_Test, Stateflow, MATLAB_Coder, MATLAB_Compiler, MATLAB_Report_Generator, Embedded_Coder, Fixed-Point_Designer, MATLAB_Compiler_SDK, MATLAB
      ---------------------------------------------
      Error: Unsupported release version: R2020b. mpm supports products and support packages for these releases only:
      	Products - R2020b or later
      	Support Packages - R2019a or later
    Error: Error: The process '/home/runner/_work/_temp/mpm' failed with exit code 255
  4. Sandruz commented on May 20, 2025

    @Sandruz

    Meanwhile, do you think if it's possible to add the --source= option here?

    export async function install(mpmPath: string, release: matlab.Release, products: string[], destination: string) {

    https://www.mathworks.com/help/install/ug/mpminstall.html#d126e4272

  5. andrew-platt commented on May 20, 2025

    @andrew-platt

    We have the same issue on https://github.com/OpenFAST/openfast:

    Run matlab-actions/setup-matlab@v2
      with:
        products: Simulink
        release: latest
        cache: false
      env:
        FORTRAN_COMPILER: gfortran-12
        CXX_COMPILER: g++-12
        C_COMPILER: gcc-12
        GCOV_EXE: gcov-12
        CMAKE_BUILD_PARALLEL_LEVEL: 8
        CTEST_PARALLEL_LEVEL: 2
        pythonLocation: /opt/hostedtoolcache/Python/3.11.12/x64
        PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.12/x64/lib/pkgconfig
        Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.12/x64
        Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.12/x64
        Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.12/x64
        LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.12/x64/lib
    Preparing system for MATLAB
    Setting up MATLAB
      /usr/bin/chmod +x /home/runner/work/_temp/mpm
      /home/runner/work/_temp/mpm install --release=r2024b --destination=/opt/hostedtoolcache/MATLAB/2024.2.999/x64 --products Simulink MATLAB
      Installing with the following parameters:
      --destination=/opt/hostedtoolcache/MATLAB/2024.2.999/x64
      --release=R2024b
      --products=Simulink, MATLAB
      ---------------------------------------------
      Error: mpm version 2025.1 is not supported. Download the latest version of mpm.
    Error: Error: The process '/home/runner/work/_temp/mpm' failed with exit code 255
    
  6. sameagen-MW commented on May 20, 2025

    @sameagen-MW
    Contributor

    Meanwhile, do you think if it's possible to add the --source= option here?

    setup-matlab/src/mpm.ts

    Line 62 in bd5e318

    export async function install(mpmPath: string, release: matlab.Release, products: string[], destination: string) {
    https://www.mathworks.com/help/install/ug/mpminstall.html#d126e4272

    Splitting this off into a separate enhancement issue.

  7. loic-lescoat commented on May 21, 2025

    @loic-lescoat

    Hi, are the outages mentioned by @mcafaro the outages listed at https://status.mathworks.com/ ? Are these outages causing this issue?

    Thanks

  8. mcafaro commented on May 21, 2025

    @mcafaro
    Member

    @loic-lescoat Yes. You can monitor the issue at https://status.mathworks.com/, which is the best place to receive updated information as it becomes available.

  9. aforsythe commented on May 22, 2025

    @aforsythe

    @mcafaro, Do you have an estimated timeline for resolving the outage? This issue has been ongoing for a while and is impacting our workflow, as we rely on this action to enforce checks on pull requests before merging. Thanks for your help!

  10. venumadhavgangur commented on May 23, 2025

    @venumadhavgangur

    @mcafaro Do you have an estimate for resolution? this is on-going and impacting the overall deployments. Thanks!!

  11. frankhommers commented on May 26, 2025

    @frankhommers

    Urgently looking for a solution as well!

  12. zhulingchen commented on May 29, 2025

    @zhulingchen

    Is there any updates? Is this issue related to the ransomware attack issue reported at https://status.mathworks.com/?

  13. mw-kapilg commented on May 29, 2025

    @mw-kapilg

    Hey everyone,

    The issue affecting MPM has been resolved, so setup-matlab@v2 should be fully operational again. Thank you all so much for your patience and we apologize again for any inconvenience caused by this outage.

  14. bcoconni commented on May 29, 2025

    @bcoconni

    The issue affecting MPM has been resolved, so setup-matlab@v2 should be fully operational again. Thank you all so much for your patience and we apologize again for any inconvenience caused by this outage.

    Yep! Confirmed here. Thanks for the fix.

  15. mcafaro commented on May 29, 2025

    @mcafaro
    Member

    Side note: You may be interested in using the cache: true input on setup-matlab@v2 if you have GitHub cache space available. In addition to speeding up your workflow, cached versions of MATLAB remained available during the outage.

  16. venumadhavgangur commented on May 30, 2025

    @venumadhavgangur

    Though setup-matlab@v2 is resolved I see some of the toolboxes are not up and running. For example; I am using Database_Toolbox and MATLAB_Web_App_Server (with other toolboxes) are down due to which complete actions are failing. Anybody else facing same issue?

  17. mcafaro commented on May 30, 2025

    @mcafaro
    Member

    @venumadhavgangur What error are you seeing? Can you point us to a run log?

  18. venumadhavgangur commented on Jun 2, 2025

    @venumadhavgangur

    @mcafaro even though I have all MSSQL installation done through github actions it seems Database_toolbox is not available due to which I am getting below error

    [�Warning: Invalid connection:
    ODBC Driver Error: [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file
    not found

    Using connection string:
    Driver={SQL
    Server};Server=localhost;Database==;;TrustServerCertificate=yes;

    ]�

  19. mcafaro commented on Jun 2, 2025

    @mcafaro
    Member

    @venumadhavgangur Was it working before the outage or are you setting it up for the first time? It seems like the Database Toolbox is installed OK. That error may indicate that the name in the connection string (Driver={SQL Server}) does not match the name registered in your ODBC configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions