-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
DotNetCoreCLI
Task version
2
Issue Description
A bug happened!
After Azure team removed .NET 6 from hosted machines, running test task fails. Nothing changed from our side. Azure machine cannot find a dll of shared library. See the logs below.
Also rerunning old successful CI pipelines ends in failure
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-22.04
Relevant log output
Error Message:
System.DllNotFoundException : Unable to load shared library 'MathFunctionsExL' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/MathFunctionsExL.so: cannot open shared object file: No such file or directory
/home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/MathFunctionsExL.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/libMathFunctionsExL.so: cannot open shared object file: No such file or directory
libnethost.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/MathFunctionsExL: cannot open shared object file: No such file or directory
/home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/MathFunctionsExL: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/libMathFunctionsExL: cannot open shared object file: No such file or directory
/home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/libMathFunctionsExL: cannot open shared object file: No such file or directory
Stack Trace:
at Aran.NativeOperations.MathFunctionsEx.StartL(String runtimeConfigPath, String path, String userSerial, String userKey, IntPtr retUserSerialPtr)
at Aran.NativeOperations.MathFunctionsEx.StartLinux(String sA, String sB, String& sC)
at Aran.NativeOperations.MathFunctionsEx.Load(String& result)
at DOST.Domain.Test.RequestTest..ctor() in /home/vsts/work/1/s/Tests/DOST.Domain.Tests/RequestTest.cs:line 25
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)Full task logs with system.debug enabled
Error Message: System.DllNotFoundException : Unable to load shared library 'MathFunctionsExL' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/MathFunctionsExL.so: cannot open shared object file: No such file or directory /home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/MathFunctionsExL.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/libMathFunctionsExL.so: cannot open shared object file: No such file or directory libnethost.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/MathFunctionsExL: cannot open shared object file: No such file or directory /home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/MathFunctionsExL: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.4/libMathFunctionsExL: cannot open shared object file: No such file or directory /home/vsts/work/1/s/Tests/DOST.Domain.Tests/bin/Release/net9.0/libMathFunctionsExL: cannot open shared object file: No such file or directoryStack Trace:
at Aran.NativeOperations.MathFunctionsEx.StartL(String runtimeConfigPath, String path, String userSerial, String userKey, IntPtr retUserSerialPtr)
at Aran.NativeOperations.MathFunctionsEx.StartLinux(String sA, String sB, String& sC)
at Aran.NativeOperations.MathFunctionsEx.Load(String& result)
at DOST.Domain.Test.RequestTest..ctor() in /home/vsts/work/1/s/Tests/DOST.Domain.Tests/RequestTest.cs:line 25
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
Repro steps
- job: build_cross_platform_services_job
displayName: Build cross platform services Job
pool:
vmImage: ubuntu-22.04
steps:
- checkout: self
submodules: recursive
- task: NuGetAuthenticate@1
displayName: NuGet Authenticate
- task: DotNetCoreCLI@2
displayName: Build cross platform services
inputs:
command: build
projects: ./DOST.sln
arguments: --configuration Release
verbosityRestore: Detailed
verbosityPack: Detailed
feedsToUse: 'config'
nugetConfigPath: './nuget.config'
- task: DotNetCoreCLI@2
displayName: Run tests
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: --configuration Release