Skip to content

AccessDeniedException on Windows only when moving access-filter.json #945

Description

@sschuberth

Describe the bug

Even after #852, with Gradle plugin version 1.1.2, I'm seeing sporadic

Caused by: java.nio.file.AccessDeniedException: C:\Users\RUNNER~1\AppData\Local\Temp\agent-config\access-filter12513879036592000103.json -> C:\Users\RUNNER~1\AppData\Local\Temp\agent-config\access-filter.json
	at org.graalvm.buildtools.agent.AgentConfiguration.addDefaultAccessFilter(AgentConfiguration.java:173)
	... 105 more

in Windows CI on GitHub action runners.

To Reproduce

Hard to reproduce reliably, but this CI job fails more often than not (Windows only).

Expected behavior

No error should happen on Windows, just like on Linux.

System Info (please complete the following information):

  • OS: Windows
  • GraalVM Version: 25 CE
  • Java Version: 25
  • Plugin version: 1.1.2

Additional context

The error seems to happen during Gradle configuration phase while configuring the :analyzer project (in our case), not during task execution. It anyway seems wrong that access-filter.json is moved during configuration phase already. The "1 problem was found storing the configuration cache" error seems to be a red herring and just to be a follow-up failure, but not the root cause.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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