Page MenuHomePhabricator

[Dashboard] git error failed to unlink... permission denied
Closed, ResolvedPublic

Description

Windows nightly dart clients fail to build because they cannot delete some temporary .git/object/*hash*.temp files.

warning: unable to unlink /.../MITK-Superbuild-Release-nightly/CMakeExternals/Source/MITK-Data/.git/objects/8e/235d23f03a4243e0424b93c2018646bca84d73.temp: Permission denied

see http://cdash.mitk.org/viewBuildError.php?buildid=57084

The problem is known to be a "windows-git-bug" (stackoverflow), rebooting the system before running the dart job may help.

Related Objects

Event Timeline

Error Message:

warning: unable to unlink
/.../MITK-MBI-Superbuild-Release-nightly/MITK-superbuild/CMakeExternals/Source/MITK-Data/.git/objects/da/d481471e02eca0106cd10e1439e4bb6527336b.temp:
Permission denied

on dart clients: mbi084, mbi013, mbi077, mbi068

This error still occurs after excluding dart client folders from virus scanner.

Is there TortoiseGit installed? Could you please update it to the latest version?

Two dartclients (mbi084 and mbi013) do not have TortoiseGit at all, mbi077 is at the latest TortoiseGit version (1.7.4) mbi068 is not at the latest version. mbi076 uses TortoiseGit -not latest version- and this error does not occur - probably because this client starts with empty source and binary (daily delete with batch file prior to dart client execution).

still no solution found...

The problem does not seem to be related to deleting the files.
Running the nightly dart clients in an empty folder still results in the error.

Uninstalling git from the default install-dir (c:\progam files x86\..) and reinstalling it to a directory without whitespace did not solve the problem.

It is also not related to TortoiseGit. It also occurs on machines which did not install TortoiseGit.

  • The problem is definitively an windows-git issue.
  • The error occurs randomly on all windows clients.
  • Only two folder are (so far) affected, whereas it is in 98% of the cases the MITK-Data folder.
    • ../CMakeExternals/Source/MITK-Data/.git/objects/...
    • ../CTK-build/DCMTK/.git/objects/...

MITK-data and CTK are no longer checkout in the nightly builds. They are downloaded as tarballs. With this workaround the problem does not occur anymore.