runtime: [6.0 & 7.0] "Access to the [hidden] path is denied" failure in Linux, Linux_musl, arm and arm64

Multiple tests failed in [6.0] CI build for Linux arm with System.UnauthorizedAccessException : Access to the path or '/.microsoft/usersecrets/17b982f6-3dd4-4f02-8d72-197e5d34e3f2' is denied. or System.UnauthorizedAccessException : Access to the path ‘/.local/share’ is denied. Not sure if it is infra issue or IO issue.

Build: https://github.com/dotnet/runtime/pull/81291/checks?check_run_id=10939595157

Tests failed:

Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.AddUserSecrets_With_SecretsId_Passed_Explicitly [FAIL]
      System.UnauthorizedAccessException : Access to the path '/.microsoft/usersecrets/17b982f6-3dd4-4f02-8d72-197e5d34e3f2' is denied.
      ---- System.IO.IOException : Permission denied
      Stack Trace:
        /_/src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs(369,0): at System.IO.FileSystem.CreateDirectory(String fullPath)
        /_/src/libraries/System.Private.CoreLib/src/System/IO/Directory.cs(46,0): at System.IO.Directory.CreateDirectory(String path)
        /_/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/tests/ConfigurationExtensionTest.cs(30,0): at Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.SetSecret(String id, String key, String value)
        /_/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/tests/ConfigurationExtensionTest.cs(128,0): at Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.AddUserSecrets_With_SecretsId_Passed_Explicitly()
        ----- Inner Stack Trace -----
        
    Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.AddUserSecrets_FindsAssemblyAttribute [FAIL]
      System.UnauthorizedAccessException : Access to the path '/.microsoft/usersecrets/d6076a6d3ab24c00b2511f10a56c68cc' is denied.
      ---- System.IO.IOException : Permission denied
      Stack Trace:
        /_/src/libraries/System.Private.CoreLib/src/System/IO/FileSystem.Unix.cs(369,0): at System.IO.FileSystem.CreateDirectory(String fullPath)
        /_/src/libraries/System.Private.CoreLib/src/System/IO/Directory.cs(46,0): at System.IO.Directory.CreateDirectory(String path)
        /_/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/tests/ConfigurationExtensionTest.cs(30,0): at Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.SetSecret(String id, String key, String value)
        /_/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/tests/ConfigurationExtensionTest.cs(61,0): at Microsoft.Extensions.Configuration.UserSecrets.Test.ConfigurationExtensionTest.AddUserSecrets_FindsAssemblyAttribute()
{
  "BuildRetry": false,
  "ErrorPattern": "Access to the path '/\\..+' is denied",
  "ExcludeConsoleLog": false
}

Report

Summary

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

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

If you’re talking about this : https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-81786-merge-3fd244949f0b4c47be/System.IO.IsolatedStorage.Tests/1/console.2b89f0ff.log

Specifically this:

    System.IO.IsolatedStorage.Tests.HelperTests.GetDataDirectory(scope: Assembly) [FAIL]
      System.UnauthorizedAccessException : Access to the path '/.local/share' is denied.
      ---- System.IO.IOException : Permission denied
      Stack Trace:

… it’s because you need to change to use docker image mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7. Long story but the move from on-prem test machines to azure vms changed the user id we need inside the container and you’re running a nearly 3-year-old image

I merged https://github.com/dotnet/runtime/pull/81712

If we stop seeing the nuget failures in the next few days, we can close this.