Skip to content

Fix "Access denied" problem in the git-artifacts CI runsΒ #36

@dscho

Description

@dscho

I have now hit this consistently, a couple of times, e.g. here: When the installer job of git-sdk-arm64's git-artifacts workflow tries to verify that the installer works, it fails. When you download the installer logs, you can see that it is always the same issue:

[...]
2025-02-05 15:02:20.819   Installing the file.
2025-02-05 15:02:20.819   Defaulting to Abort for suppressed message box (Abort/Retry/Ignore):
                          C:\Program Files\Git\unins000.exe
                          
                          An error occurred while trying to create a file in the destination directory:
                          Access is denied.
2025-02-05 15:02:20.821   User canceled the installation process.
2025-02-05 15:02:20.821   Rolling back changes.
2025-02-05 15:02:20.821   Starting the uninstallation process.
2025-02-05 15:02:20.824   Uninstallation process succeeded.
2025-02-05 15:02:20.824   Deinitializing Setup.
2025-02-05 15:02:20.846   Log closed.

The installer cannot (maybe over-)write unins000.exe.

Could the problem be that Git for Windows is installed using a different account in self-hosted runner VMs than the actual GitHub Actions runner ends up running as?

@dennisameling any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions