GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Failing to execute correct node file · Issue #538 · actions/setup-node

Failing to execute correct node file #538

New issue
Copy link
New issue
Copy link
Closed
Closed
Failing to execute correct node file#538
Copy link
Assignees
dmitry-shibanov
Labels
bugSomething isn't working

Description

@Gabe-Ambrosio
Gabe-Ambrosio
opened on Jul 11, 2022
Issue body actions

Description:
When this action is run on actions/[email protected] it fails to execute node with:

/usr/local/bin/docker exec  825742ed8cb56497af43a3e9cad45d62a8173d83a0d7ee04089e4661011a3157 sh -c "cat /etc/*release | grep ^ID"
Attempting to download [14](https://github.com/Soluto-Private/trailhead/runs/7286847871?check_suite_focus=true#step:4:15)...
Acquiring 14.20.0 - x64 from https://github.com/actions/node-versions/releases/download/14.20.0-2633808318/node-14.20.0-linux-x64.tar.gz
Extracting ...
/bin/tar xz --strip 1 -C /__w/_temp/522c4b56-fe91-4c39-9441-4326bea08743 -f /__w/_temp/21d5041b-557e-46ea-9bd6-d39a79fcc807
Adding to the cache ...
Done
/__t/node/14.[20](https://github.com/Soluto-Private/trailhead/runs/7286847871?check_suite_focus=true#step:4:21).0/x64/bin/node --version
Error: There was an error when attempting to execute the process '/__t/node/14.20.0/x64/bin/node'. This may indicate the process failed to start. Error: spawn /__t/node/14.20.0/x64/bin/node ENOENT

Action version:
actions/[email protected]

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

yarn v1.22.19
node 14.20.0

Repro steps:
Adding an action with:

- name: Use Node.js 14.x
  uses: actions/setup-node@v3
  with:
    node-version: 14

Will trigger the issue.

Expected behavior:
I expect the install to succeed without any errors.

Actual behavior:
The installation fails when it tries to execute the node executable, specifically running the command:

node --version

Edit:
It also looks like this is only occurring with the docker container:

image: node:14-alpine
Reacted by Jon Flash and Tomaz Cerar

Activity

  1. Gabe-Ambrosio
    added
    bugSomething isn't working
    needs triage
    on Jul 11, 2022
  2. funkswing commented on Jul 11, 2022

    @funkswing
    funkswing
    on Jul 11, 2022
    More actions

    I had this issue as well (image: node:16.14.2-alpine3.15)

    Setting uses: actions/[email protected] fixed it. This is obviously a temporary fix until the issue is resolved.

  3. vsafonkin commented on Jul 12, 2022

    @vsafonkin
    vsafonkin
    on Jul 12, 2022
    More actions

    Hi @Gabe-Ambrosio, we will take a look at this, thanks for your report.

  4. vsafonkin
    removed
    needs triage
    on Jul 12, 2022
  5. dmitry-shibanov commented on Jul 12, 2022

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 12, 2022
    Contributor
    More actions

    Hello everyone. The issue comes from these lines. Internally it uses spawn method to execute it. But toolcache node versions are not compatible with alpine that is why the command getting error on the process level and it produces the issue. We prepared a pull request to fix it #540. But as temporary workaround for alpine images you can remove node-version input, because it does not affect installed node version.

  6. Gabe-Ambrosio commented on Jul 12, 2022

    @Gabe-Ambrosio
    Gabe-Ambrosio
    on Jul 12, 2022
    Author
    More actions

    Hi @vsafonkin , I just wanted to say thank you for the prompt response and for your team's help in fixing the issue!

    Reacted by vs
  7. dmitry-shibanov
    self-assigned this
    on Jul 12, 2022
  8. dmitry-shibanov commented on Jul 13, 2022

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 13, 2022
    Contributor
    More actions

    Hello @Gabe-Ambrosio. The fix was merged to the main branch. Could you please confirm that it works as expected ?

  9. Gabe-Ambrosio commented on Jul 13, 2022

    @Gabe-Ambrosio
    Gabe-Ambrosio
    on Jul 13, 2022
    Author
    More actions

    Hello @Gabe-Ambrosio. The fix was merged to the main branch. Could you please confirm that it works as expected ?

    Hi @dmitry-shibanov , yep it looks like that fixed it! And just to be sure, I pinned the latest commit SHA when I used the action like this:

    - name: Use Node.js 14.x
      uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
        with:
          node-version: 14
    

    And it successfully setup node without a problem with this output:

    Run actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
    /usr/local/bin/docker exec  6b581d163bdf8c99a8f935c359b51a9a294e3928da5ddd9bf9ea3c24b7a6a1e7 sh -c "cat /etc/*release | grep ^ID"
    Attempting to download [14](https://github.com/XXX)
    Acquiring 14.20.0 - x64 from https://github.com/actions/node-versions/releases/download/14.20.0-2633808318/node-14.20.0-linux-x64.tar.gz
    Extracting ...
    /bin/tar xz --strip 1 -C /__w/_temp/5d6c264f-35cd-45f0-ba3e-01f3a78641f9 -f /__w/_temp/c8b62606-4a[15]
    Adding to the cache ...
    Done
    
  10. Gabe-Ambrosio
    closed this as completedon Jul 13, 2022
  11. dmitry-shibanov commented on Jul 13, 2022

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 13, 2022
    Contributor
    More actions

    Hello @Gabe-Ambrosio. Thank you for response. I'll prefer to keep the issue open until new release.

    Reacted by Gabe-Ambrosio
  12. dmitry-shibanov
    reopened this on Jul 13, 2022
  13. dgaubert commented on Jul 14, 2022

    @dgaubert
    dgaubert
    on Jul 14, 2022
    More actions

    @dmitry-shibanov, do you have an ETA for the release?

    Thanks in advance for maintaining it.

  14. dmitry-shibanov commented on Jul 15, 2022

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 15, 2022
    Contributor
    More actions

    Hello everyone. We released a new version and updated the major tag with fix. Could you please confirm that everything works as expected ?

  15. dgaubert commented on Jul 15, 2022

    @dgaubert
    dgaubert
    on Jul 15, 2022
    More actions

    I can confirm the new release fixed the issue. Many thanks for the quick hot-fix!

  16. Aleksanderdir commented on Jul 15, 2022

    @Aleksanderdir
    Aleksanderdir
    on Jul 15, 2022 via email
    More actions
    Получите Outlook для Android<https://aka.ms/AAb9ysg>
    …
    ________________________________ From: Daniel G. Aubert ***@***.***> Sent: Friday, July 15, 2022 5:07:24 PM To: actions/setup-node ***@***.***> Cc: Subscribed ***@***.***> Subject: Re: [actions/setup-node] Failing to execute correct node file (Issue #538) I can confirm the new release fixed the issue. Many thanks for the quick hot-fix! — Reply to this email directly, view it on GitHub<#538 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AS7HKF3FQ3EK3K56NZ472C3VUFWBZANCNFSM53IF2YLA>. You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
  17. dmitry-shibanov commented on Jul 15, 2022

    @dmitry-shibanov
    dmitry-shibanov
    on Jul 15, 2022
    Contributor
    More actions

    Hello @dgaubert. Thank you for your response.

    For now I'm going to close the issue. If you have any concerns feel free to ping us.

  18. dmitry-shibanov
    closed this as completedon Jul 15, 2022
  19. deining
    added a commit that references this issue on Nov 9, 2023

    chore(deps-dev): bump typescript from 5.1.6 to 5.2.2 (actions#538)

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

Metadata

Metadata

Assignees

  • @dmitry-shibanov
    dmitry-shibanov

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.