runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Multiple users are not able to build CoreCLR on the same Linux machine.

Open rartemev opened this issue 9 years ago • 2 comments

If we have two users (A and B) on the same Linux machine and A built CoreCLR first, user B is not able to build it too because build system creates /tmp/NuGet directory which is owned by A and inaccessible for B.

init-tools.log is like this

  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools.coreclr/index.json'.
  Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
    Permission denied
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/index.json'.
  Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
    Permission denied
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools.coreclr/index.json'.
  Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
    Permission denied
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/index.json'.
  Access to the path '/tmp/NuGet/TempCache/732c822b-ba09-4149-af0c-9b932510e059' is denied.
    Permission denied

rartemev avatar Jun 20 '17 22:06 rartemev

@ericstj is this nuget doing this? presumably if it maintains a global cache it needs some kind of locking system.

danmoseley avatar Jun 21 '17 18:06 danmoseley

Yeah, that's NuGet. We used to hit this sort of thing all the time when running multiple instances of nuget on machine at once even from a parallel build, which is why we try to call nuget once up-front. NuGet worked at fixing those issues but they likely still have lingering problems. Please file an issue on https://github.com/nuget/home

ericstj avatar Jun 21 '17 19:06 ericstj