Skip to content

Failed to read NuGet.Config due to unauthorized access. #81619

Closed
@sbomer

Description

@sbomer

Build

All dotnet/runtime release/7.0 PRs seem to be failing in test runs with:

NuGet.Configuration.NuGetConfigurationException : Failed to read NuGet.Config due to unauthorized access. Path: '/.nuget/NuGet/NuGet.Config'.
---- System.UnauthorizedAccessException : Access to the path '/.nuget' is denied.
-------- System.IO.IOException : Permission denied

Direct link to one of the failures: https://dev.azure.com/dnceng-public/public/_build/results?buildId=158966&view=ms.vss-test-web.build-test-results-tab&runId=3279457&resultId=131719&paneView=debug

Build leg reported

Libraries Test Run checked coreclr Linux_musl arm Release
Libraries Test Run checked coreclr Linux_musl arm64 Release
Libraries Test Run checked coreclr Linux arm64 Debug

Pull Request

Examples:

Action required for the engineering services team

To triage this issue (First Responder / @dotnet/dnceng):

  • Open the failing build above and investigate
  • Add a comment explaining your findings

If this is an issue that is causing build breaks across multiple builds and would get benefit from being listed on the build analysis check, follow the next steps:

  1. Add the label "Known Build Error"
  2. Edit this issue and add an error string in the Json below that can help us match this issue with future build breaks. You should use the known issues documentation
{
   "ErrorMessage" : "NuGet.Configuration.NuGetConfigurationException : Failed to read NuGet.Config due to unauthorized access. Path: '\/.nuget\/NuGet\/NuGet.Config'.",
   "BuildRetry": false,
   "ExcludeConsoleLog": false
}

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions