-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error: File was unable to be removed Error: EACCES: permission denied, rmdir '/opt/actions-runner/_work/... #1720
Comments
@mihalt , any updates on this how to fix the error? ![]() |
@seniordev-ca Nothing better than this yet
|
We are facing the same issue on all GitHub managed runners since this morning.
A quick workaround for us was to disable the - run: |
echo "GOPROXY=off" >> $GITHUB_ENV |
I faced same issue. But the following code resolve this issue: ./svc.sh install root
sudo ./svc.sh start (please uninstall existing service, first) |
Y como lo hago?
El lun, 19 de ago de 2024, 1:46 a. m., Asei Inoue ***@***.***>
escribió:
… I faced same issue. But the following code resolve this issue:
./svc.sh install root
—
Reply to this email directly, view it on GitHub
<#1720 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKA5PLXFOCH35HYFVC45573ZSGPFLAVCNFSM6AAAAABHNSK6K6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVHA4DIOBUG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Having the same issue with Github cloud hosted runners and custom docker images using ghcr.io registry. jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/MY_CUSTOM_IMAGE:main
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4.1.0 Is producing the following output
|
Also getting this issue. I'm using this workaround with some success.
|
This worked for one of our pipelines that had two jobs running on a single self hosted server runner. The first job always succeeded but the second job would fail until we added |
Not working for me: https://github.com/Health-RI/ckanext-dcat/actions/runs/11841455363 |
I found the problem, at least what it looks like on our end. The build couldn't get rid of some golang build files, and I looked in the directory that couldn't be gotten rid of. Look what I found:
The files all have The solution (workaround) is to add this build step before checkout: - name: https://github.com/actions/checkout/issues/1720
run: |
chmod -R u+rwX . Perhaps you guys might add a |
I'm also facing the same issue, is there a workaround for this? |
I've tried the above workaround but the same issue persists. |
Some people might experience in self hosted runners that the writing of GitHub runner temp folders (anything under _work) that is done whilst using docker containers might not match what the runner can have access to. This could occur because a mismatch of what user docker is associated with and the user of the GitHub runner. The solution would be to just make sure that both users can access the same resources. For example, If you're running docker with --priviledge access, make sure your GitHub runner service is running as root. |
I am curious how many people get this error when running directly on the host compared to running in a container? |
The only way I have been able to resolve this issue when installing the service as non-root was to:
|
When I run checout second+ times I have error like this on the title on my ubuntu self-hosted runner. A config is very simple like
This command can help, but just once. After on the next running of job I see the same errors:
The text was updated successfully, but these errors were encountered: