-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied in /usr/share/dotnet #327
Comments
Hi, @wzchua 👋 Thanks for the issue, we will check it out and get back to you with updates. |
@wzchua, could you try to change your permissions? For example, you can try to use |
Hi, I don't have sudo permission. |
We have the same issue, was fine on v2. |
Hi, @andrewgbell 👋 Thank you for the feedback, we are working on this issue. |
Hi all, just wanted to add that my org observed this today on self-hosted Windows instances, so it's not Linux specific. Partial logs below: jobs:
build:
runs-on: [self-hosted, windows, x64, docker]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup dotnet
uses: actions/setup-dotnet@v3
with:
source-url: ***
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
NUGET_AUTH_TOKEN: ${{ secrets.*** }}
NUGET_CERT_REVOCATION_MODE: offline
|
Same issue here while trying to update from
Self-hosted Ubuntu GH action runner. Was working with |
Hi, @wzchua, @andrewgbell, @austindrenski and @mathieu-benoit 👋 The new patch version was just released to fix the issue with jobName:
runs-on: self-hosted
env:
DOTNET_INSTALL_DIR: "path/to/directory"
steps:
- uses: actions/setup-dotnet@v3.0.1 # as soon as major tag is updated, v3 can be used
with:
dotnet-version: '7.0' Please, give us your feedback in the comments. If you have any additional questions, feel free to ask. |
Hi @IvanZosimov. Does this now have to be defined when the agent doesn't have root? Just curious as this wasn't the case previously, so has the default install directory changed? |
@andrewgbell, you are right. The default directory was changed (it's breaking change), details and motivation can be found here. |
@IvanZosimov Thanks for getting a patch out so quickly! Unfortunately, it looks like there may be something funky happening with the environment variable expansion. Not sure if I've attached two examples with logs below in hopes that you might be able to help make some sense of what I'm seeing. N.B. 1.
|
I don't read much TS, so please disregard if this is just normal language behavior, but took a look at #329 and noticed what seemed like an inconsistency in how
|
I configured it to
|
Same problem here..self hosted Ubuntu. |
Hi, @wzchua, @andrewgbell, @austindrenski, @mathieu-benoit, @lanwin 👋 Sorry for the late answer, the logic of processing - uses: actions/setup-dotnet@main |
/???????
…On Fri, Sep 30, 2022 at 4:57 AM Ivan ***@***.***> wrote:
@wzchua <https://github.com/wzchua>, could you try to change your
permissions? For example, you can try to use chown command.
—
Reply to this email directly, view it on GitHub
<#327 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZMBPB7ATK762VE2HUIS46DWA22RHANCNFSM6AAAAAAQZKNIAA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Tried it using main instead of v3 and worked in the same way. Also tried regressing leaving out the install directory and failed in the same way as previous as well on v3. So from a user perspective, v3 seems to be the same as main to me. |
Hi, @andrewgbell 👋 Could you, please, clarify that you didn't have any problems with |
Hi, yes, comparing v3 to main there was no difference for me, both worked, using the following:
|
@wzchua, I'm going to close this issue, as the new patch version of the actions was released and it fixes the problems that were stated in the issue and in the comments below. If you have any additional questions, feel free to ping me. |
It would probably be good update the docs to include instructions to set
On self hosted linux nodes. |
this solution pollutes your working directory so git commands or versioning tools that except clean working directory will fail! |
Description:
Runner does not have permission to install in the default directory
Task version:
3.0.0
Platform:
Runner type:
Repro steps:
Use action with selfhosted ubuntu runner with non-root user permissions
Expected behavior:
Install dotnet
Actual behavior:
Permission denied
I tried using the env
DOTNET_INSTALL_DIR
but it doesn't seem to workThe text was updated successfully, but these errors were encountered: