Skip to content

mkdir: cannot create directory ‘/usr/share/dotnet’: Permission denied #565

Closed
@kaby76

Description

@kaby76

Description:
This is the same bug as reported before, #327. Occurred elsewhere for me, at other times in the last few months, with no rhyme or reason, sometimes clearing up by itself.

I am using ubuntu-latest.

Here is the workflow: https://github.com/kaby76/Trash/blob/c93453d26cfdaca2dacce9db26d86f6d78511fcb/.github/workflows/main.yml#L40-L43

Adding this job fixes the problem temporarily until this action plugin works again.

Crashing without it: https://github.com/kaby76/Trash/actions/runs/12297495949/job/34318769805.

Now working with the workaround: https://github.com/kaby76/Trash/actions/runs/12297495949/job/34318769805#step:7:31

The problem is that once your plugin works magically again, this mkdir crashes your plugin.

Please fix your plugin to be more robust so that if the directory exists or not, no problem.

Task version:
4.0.1. Also now just the latest, 4.1.0.

Platform:

  • Ubuntu

Runner type:
It's a github hosted runner using one of they crappy VMs??. https://github.com/kaby76/Trash/blob/c93453d26cfdaca2dacce9db26d86f6d78511fcb/.github/workflows/main.yml

Repro steps:
Every PR kicks off the build and runs into this.

Expected behavior:
It should just work.

Actual behavior:
Fails with mkdir: cannot create directory ‘/usr/share/dotnet’: Permission denied.

Metadata

Metadata

Assignees

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