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 — Default installation fails on `ARC` managed runners · Issue #360 · actions/setup-dotnet

Default installation fails on ARC managed runners #360

New issue
Copy link
New issue
Copy link
Closed
Closed
Default installation fails on ARC managed runners#360
Copy link
Assignees
v-priyagupta108
Labels
feature requestNew feature or request to improve the current logicinvestigationThe issue is under investigation

Description

@sbrinkerhoff
sbrinkerhoff
opened on Dec 20, 2022
Issue body actions

Description:
A default usage of The Github/Microsoft setup-dotnet action on a Github Runner managed by the GitHub/Microsoft actions-runner-controller fails to install.

Task version:

v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

name: "Test dotnet"

on:
  workflow_dispatch:
  
jobs:
  "test-aws-secure-access":
    name: "install dot net"
    runs-on: MyOrg-Enterprise-Testing
    steps:
    - uses: actions/setup-dotnet@v3
      with:
        dotnet-version: '3.1.x'

Expected behavior:
The setup-dotnet should install into an unpriviledges path similar to setup-node, setup-python, setup-java. These actions all work out of the box on the Github/Microsoft Actions Runner Controller.

Actual behavior:

Run actions/setup-dotnet@v3
/runner/_work/_actions/actions/setup-dotnet/v3/externals/install-dotnet.sh --channel 3.1
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

mkdir: cannot create directory '/usr/share/dotnet': Permission denied
Error: Failed to install dotnet 1. dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
Reacted by Brandon Liles, Joao Correia and Mark Adamson

Activity

Next
  1. sbrinkerhoff
    added
    bugSomething isn't working
    needs triage
    on Dec 20, 2022
  2. IvanZosimov
    removed
    needs triage
    on Dec 21, 2022
  3. IvanZosimov commented on Dec 21, 2022

    @IvanZosimov
    IvanZosimov
    on Dec 21, 2022
    Contributor
    More actions

    Hi, @sbrinkerhoff 👋 Thanks for the issue, we will investigate it and get back to you with updates.

  4. IvanZosimov
    self-assigned this
    on Dec 21, 2022
  5. IvanZosimov commented on Dec 21, 2022

    @IvanZosimov
    IvanZosimov
    on Dec 21, 2022
    Contributor
    More actions

    @sbrinkerhoff , the thing is that the setup-dotnet by default installs .NET SDKs into the default folder, which contains preinstalled versions of . NET. If on your own self-hosted runner you don't have write permissions to this default folder, you can specify the environment variable DOTNET_INSTALL_DIR, and the action will use the specified folder to install .NET SDKs there. Check our documentation with workflow examples to learn more.

  6. sbrinkerhoff commented on Dec 21, 2022

    @sbrinkerhoff
    sbrinkerhoff
    on Dec 21, 2022
    Author
    More actions

    @IvanZosimov I understand that the DOTNET_INSTALL_DIR can be altered. My original understanding was that this action was a Github owned action. I believe this living in the Actions Org suggests this action is github owned.

    I have also opened a Github Enterprise Support Ticket #1927614.

    Github owns the Actions Runner Controller project which is their recommended pattern for self-hosted runners.

    This action is not compatible with that platform out of the box.

    I certainly understand the technically correct answer of "the environment variable can be utilized" however from an ergonomics standpoint this means that every enterprise user of this action has to create their own action to wrap this action to have it work as intended.

    My ask would be that this action be aware of the Actions Runner Controller project that Github owns and operates, and it works correctly on that environment without having to specify configuration changes.

    setup-node, setup-python, setup-java (off the top of my head) all respect the Actions Runner Controller for example.

    Reacted by Laura, Antoine Poulet, charmingnewt, giotab, Henrik Jensen, Guðmundur Ólafsson, Cheng Huang, Michael Clayton, Rakesh Ramakrishnan, Felix Luthman and 10 more
  7. IvanZosimov
    removed their assignment
    on Dec 23, 2022
  8. IvanZosimov
    added
    feature requestNew feature or request to improve the current logic
    and removed
    bugSomething isn't working
    on Dec 23, 2022
  9. IvanZosimov
    self-assigned this
    on May 16, 2023
  10. mikeclayton commented on Jun 14, 2023

    @mikeclayton
    mikeclayton
    on Jun 14, 2023
    More actions

    I've just run into this issue as well on ARC scaleset runners.

    I've noticed this still works with the v1 action:

          - name: setup
            uses: actions/setup-dotnet@v1
            with:
              dotnet-version: 7.0.x
    

    which successfully executes .../setup-dotnet/v1/externals/install-dotnet.sh --version 7.0.304 to download and install https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.304/dotnet-sdk-7.0.304-linux-x64.tar.gz.

    but this fails with the v3 action:

          - name: setup
            uses: actions/setup-dotnet@v3
            with:
              dotnet-version: 7.0.x
    

    while running .../setup-dotnet/v3/externals/install-dotnet.sh --channel 7.0 to download and install : https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.304/dotnet-sdk-7.0.304-linux-x64.tar.gz.

    This is on ephemeral single-use runners, so a clean image every time.

    I've not tried the v2 action to confirm either way if it works or not, but I'll report back if / when I get a chance...


    update - setup-dotnet@v2 appears to work as well. I've also tested with v3.0.0 which fails.

  11. chenghuang-mdsol commented on Jun 17, 2023

    @chenghuang-mdsol
    chenghuang-mdsol
    on Jun 17, 2023
    More actions

    same issue here

  12. IvanZosimov
    added
    needs eyes
    on Jul 3, 2023
  13. IvanZosimov
    removed their assignment
    on Jul 10, 2023
  14. 3 remaining items

  15. dnaprawa commented on Sep 11, 2023

    @dnaprawa
    dnaprawa
    on Sep 11, 2023
    More actions

    +1 – I have the same problem

  16. jasoncouture commented on Jan 2, 2024

    @jasoncouture
    jasoncouture
    on Jan 2, 2024
    More actions

    +1 here as well

  17. jasoncouture commented on Jan 13, 2024

    @jasoncouture
    jasoncouture
    on Jan 13, 2024
    More actions

    +1

  18. jasoncouture commented on Jan 13, 2024

    @jasoncouture
    jasoncouture
    on Jan 13, 2024
    More actions

    Posted PR #498 to fix the issue
    Tested with one of my own repos, on ARC runner scale sets running on k8s: https://github.com/jasoncouture/dhcpr/actions/runs/7509545156/job/20446802058

  19. jasoncouture commented on Jan 13, 2024

    @jasoncouture
    jasoncouture
    on Jan 13, 2024
    More actions

    I'll publish this as a release from my repo

  20. jasoncouture commented on Jan 13, 2024

    @jasoncouture
    jasoncouture
    on Jan 13, 2024
    More actions

    anyone annoyed by this like me, swap actions/setup-dotnet@... with jasoncouture/[email protected]
    or just drop to v2.0.0

  21. bliles commented on Jan 25, 2024

    @bliles
    bliles
    on Jan 25, 2024
    More actions

    This setup-dotnet@v3 also breaks for my AWS self-hosted runners since they don't have root access. It seems like this should actually be a bug since it is a regression from setup-dotnet@v2

  22. joaopedrocg27 commented on Jun 20, 2024

    @joaopedrocg27
    joaopedrocg27
    on Jun 20, 2024
    More actions

    +1

  23. jasoncouture commented on May 21, 2026

    @jasoncouture
    jasoncouture
    on May 21, 2026
    More actions

    #689 is not a solution to this, this has been open for more than 2 years, and there are GH env vars that tell you EXACTLY where to put things. There is NO Reason that "Reconfigure your runner because our action is a special snowflake" is an acceptable answer.
    If we were talking about the install script? Sure, that would be. But we are not.

    Just respect the RUNNER_TOOL_CACHE like EVERYTHING else does.

    Reacted by danielo-cal
  24. v-priyagupta108 commented on Oct 1, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 1, 2026
    Contributor
    More actions

    Hello,
    A fix for this is up in #785. When the default install location is not writable, the action now falls back to .dotnet in the user's home directory with a warning, instead of failing with Permission denied. This removes the need to set DOTNET_INSTALL_DIR on ARC runners.
    Let us know if this resolves the failure on your runners.

  25. v-priyagupta108 commented on Oct 14, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 14, 2026
    Contributor
    More actions

    Following up on #785, which makes the action fall back automatically when the default location is not writable.
    Does that resolve the failure you were seeing on ARC runners, or is anything still broken for you?

  26. v-priyagupta108
    self-assigned this
    on Oct 21, 2026
  27. v-priyagupta108 commented on Oct 27, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 27, 2026
    Contributor
    More actions

    Following up again on #785. If anyone here can confirm it works on ARC, that would help. If there's a case it doesn't cover, we'd like to hear it before this merges.

  28. v-priyagupta108 commented on Nov 2, 2026

    @v-priyagupta108
    v-priyagupta108
    on Nov 2, 2026
    Contributor
    More actions

    #785 has been merged, which resolves the permission failure reported here. The action now detects that the default location is not writable and falls back automatically, so ARC runners no longer need DOTNET_INSTALL_DIR set in every workflow.
    This will be available in the next release. Closing this as resolved, and please reach out to us if you still hit the failure.

  29. v-priyagupta108
    closed this as completedon Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @v-priyagupta108
    v-priyagupta108

Labels

feature requestNew feature or request to improve the current logicinvestigationThe issue is under investigation

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.