Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: v4.248.0 Unable to perform source delete of build directory #5104

Open
2 of 4 tasks
rfolkker opened this issue Jan 31, 2025 · 5 comments
Open
2 of 4 tasks

[BUG]: v4.248.0 Unable to perform source delete of build directory #5104

rfolkker opened this issue Jan 31, 2025 · 5 comments

Comments

@rfolkker
Copy link

What happened?

Error occurs in Initialize Job when attempting to delete a file in the s directory. We did not have any issues with v3.251.0.
After running into the issue, we reverted back to v3.251.0 and the error went away. This occurred on Linux 22-04 x86/64 and ARM64 systems.
Logs attached (some names were changed for the sake of public sharing, but all of the information is as it occurred in the logs).
Bullseye is referenced as it includes both the ARM and AMD CPU types. It failed on all distributions we compiled for (Ubuntu and Debian)

Setup:
Base Linux 22.04 Build agent
Bullseye container for both x86/64 and ARM64

Build process Debian make as the build step to compile C/++ code and bundle it into a .deb

Steps:

  1. Run a build consisting of Stage > Job > (Container) > Steps
  2. Rerun the same build on the same agent

Result:
Build failed during initialize Job step
Expected result:
Successfully start build

See the following for more information:
build_agent_success_log.txt
Direct_system_log.txt
build_agent_error_log.txt

Versions

Azure Devops Version 4.248.0 Ubuntu 22.04

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

No response

Version controll system

No response

Relevant log output

Starting: Initialize job
Agent name: 'agent-a64'
Agent machine name: 'agent-a64'
Current agent version: '4.248.0'
Agent running as: 'root'
##[debug]Triggering repository: Internal_Library. repository type: Git
Prepare build directory.
##[debug]Delete existing build directory: '/home/BuildAgent/_work/2'
##[debug]Deleting build directory: '/home/BuildAgent/_work/2'
##[error]One or more errors occurred. (Could not find file '/home/BuildAgent/_work/2/s/debian/tmp/usr/lib/aarch64-linux-gnu/customlibrary.so.0'.)
##[debug]System.AggregateException: One or more errors occurred. (Could not find file '/home/BuildAgent/_work/2/s/debian/tmp/usr/lib/aarch64-linux-gnu/customlibrary.so.0'.)
 ---> System.IO.FileNotFoundException: Could not find file '/home/BuildAgent/_work/2/s/debian/tmp/usr/lib/aarch64-linux-gnu/customlibrary.so.0'.
File name: '/home/BuildAgent/_work/2/s/debian/tmp/usr/lib/aarch64-linux-gnu/customlibrary.so.0'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Interop.CheckIo(Int64 result, String path, Boolean isDirError)
   at System.IO.FileStatus.SetAttributes(SafeFileHandle handle, String path, FileAttributes attributes, Boolean asDirectory)
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.SetAttributesWithDiagnostics(FileSystemInfo item, FileAttributes newAttributes) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 538
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.RemoveReadOnly(FileSystemInfo item) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 565
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.<>c__DisplayClass12_0.<DeleteDirectory>b__0(FileSystemInfo item) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 150
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, Boolean contentsOnly, Boolean continueOnContentDeleteError, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 141
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 98
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.DeleteDirectory(IExecutionContext executionContext, String description, String path) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 268
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.CreateDirectory(IExecutionContext executionContext, String description, String path, Boolean deleteExisting) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 250
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.PrepareDirectory(IExecutionContext executionContext, IList`1 repositories, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 100
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.InitializeJobExtension(IExecutionContext executionContext, IList`1 steps, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildJobExtension.cs:line 163
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message) in /mnt/vss/_work/1/s/src/Agent.Worker/JobExtension.cs:line 123
Finishing: Initialize job
@dp-robleady
Copy link

dp-robleady commented Feb 4, 2025

I'm seeing a similar issue on some builds on some newly set up self-hosted agents, also running 4.248.0, but on Ubuntu 24.04.
Unfortunately I didn't have debug enabled at the time.

2025-02-03T17:48:14.0437529Z ##[section]Starting: Initialize job
2025-02-03T17:48:14.0439748Z Agent name: 'lnx-build-agent-02'
2025-02-03T17:48:14.0440261Z Agent machine name: 'lnx-build-01'
2025-02-03T17:48:14.0440506Z Current agent version: '4.248.0'
2025-02-03T17:48:16.0608216Z Agent running as: 'agentuser'
2025-02-03T17:48:16.0633707Z Prepare build directory.
2025-02-03T17:48:16.8505118Z ##[error]One or more errors occurred. (Could not find file '/agents/agent02/_work/1/s/xxxx/yocto/zzzzzz_release/zzzzzz/build/tmp/sysroots-components/x86_64/perl-native/usr/lib/libperl.so'.)
2025-02-03T17:48:16.8511356Z ##[section]Finishing: Initialize job

@dp-robleady
Copy link

Example error with debug enabled.

2025-02-04T10:32:05.0629313Z ##[section]Starting: Initialize job
2025-02-04T10:32:05.0631277Z Agent name: 'lnx-build-agent-06'
2025-02-04T10:32:05.0631765Z Agent machine name: 'lnx-build-03'
2025-02-04T10:32:05.0632009Z Current agent version: '4.248.0'
2025-02-04T10:32:06.8641072Z Agent running as: 'agentuser'
2025-02-04T10:32:06.8664078Z ##[debug]Triggering repository: Repo. repository type: Git
2025-02-04T10:32:06.8665697Z Prepare build directory.
2025-02-04T10:32:06.8807311Z ##[debug]Delete existing build directory: '/agents/agent02/_work/1'
2025-02-04T10:32:06.8808151Z ##[debug]Deleting build directory: '/agents/agent02/_work/1'
2025-02-04T10:32:07.9132995Z ##[error]One or more errors occurred. (Could not find file '/agents/agent02/_work/1/s/xxxx/yocto/yyyyyy_release/yyyyyy/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/lib/libperl.so.5'.)
2025-02-04T10:32:07.9141045Z ##[debug]System.AggregateException: One or more errors occurred. (Could not find file '/agents/agent02/_work/1/s/xxxx/yocto/yyyyyy_release/yyyyyy/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/lib/libperl.so.5'.)
 ---> System.IO.FileNotFoundException: Could not find file '/agents/agent02/_work/1/s/xxxx/yocto/yyyyyy_release/yyyyyy/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/lib/libperl.so.5'.
File name: '/agents/agent02/_work/1/s/xxxx/yocto/yyyyyy_release/yyyyyy/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/lib/libperl.so.5'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Interop.CheckIo(Int64 result, String path, Boolean isDirError)
   at System.IO.FileStatus.SetAttributes(SafeFileHandle handle, String path, FileAttributes attributes, Boolean asDirectory)
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.SetAttributesWithDiagnostics(FileSystemInfo item, FileAttributes newAttributes) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 538
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.RemoveReadOnly(FileSystemInfo item) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 565
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.<>c__DisplayClass12_0.<DeleteDirectory>b__0(FileSystemInfo item) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 150
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, Boolean contentsOnly, Boolean continueOnContentDeleteError, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 141
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 98
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.DeleteDirectory(IExecutionContext executionContext, String description, String path) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 268
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.CreateDirectory(IExecutionContext executionContext, String description, String path, Boolean deleteExisting) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 250
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.PrepareDirectory(IExecutionContext executionContext, IList`1 repositories, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 100
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.InitializeJobExtension(IExecutionContext executionContext, IList`1 steps, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildJobExtension.cs:line 163
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message) in /mnt/vss/_work/1/s/src/Agent.Worker/JobExtension.cs:line 123
2025-02-04T10:32:07.9156149Z ##[section]Finishing: Initialize job

@dp-robleady
Copy link

Also confirming that the same issue does not occur when using a v3 agent (v3.248.1).

@TomaszAIR
Copy link

We are having exact same libperl issue

Starting: Initialize job
Agent name: 'yyy'
Agent machine name: 'yyy'
Current agent version: '4.251.0'
Agent running as: 'xxx'
##[debug]Triggering repository: meta-tr-thanos. repository type: Git
Prepare build directory.
##[debug]Delete existing build directory: '/opt/xxx/yyy/_work/92'
##[debug]Deleting build directory: '/opt/xxx/yyy/_work/92'
##[error]One or more errors occurred. (Could not find file '/opt/xxx/yyy/_work/92/s/build/tmp/sysroots-components/x86_64/perl-native/usr/lib/libperl.so'.)
##[debug]System.AggregateException: One or more errors occurred. (Could not find file '/opt/xxx/yyy/_work/92/s/build/tmp/sysroots-components/x86_64/perl-native/usr/lib/libperl.so'.)
 ---> System.IO.FileNotFoundException: Could not find file '/opt/xxx/yyy/_work/92/s/build/tmp/sysroots-components/x86_64/perl-native/usr/lib/libperl.so'.
File name: '/opt/xxx/yyy/_work/92/s/build/tmp/sysroots-components/x86_64/perl-native/usr/lib/libperl.so'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Interop.CheckIo(Int64 result, String path, Boolean isDirError)
   at System.IO.FileStatus.SetAttributes(SafeFileHandle handle, String path, FileAttributes attributes, Boolean asDirectory)
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.SetAttributesWithDiagnostics(FileSystemInfo item, FileAttributes newAttributes) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 538
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.<>c__DisplayClass12_0.<DeleteDirectory>b__0(FileSystemInfo item) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 150
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, Boolean contentsOnly, Boolean continueOnContentDeleteError, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 141
   at Microsoft.VisualStudio.Services.Agent.Util.IOUtil.DeleteDirectory(String path, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/Util/IOUtil.cs:line 98
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.DeleteDirectory(IExecutionContext executionContext, String description, String path) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 268
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.CreateDirectory(IExecutionContext executionContext, String description, String path, Boolean deleteExisting) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 250
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildDirectoryManager.PrepareDirectory(IExecutionContext executionContext, IList`1 repositories, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildDirectoryManager.cs:line 100
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.InitializeJobExtension(IExecutionContext executionContext, IList`1 steps, WorkspaceOptions workspace) in /mnt/vss/_work/1/s/src/Agent.Worker/Build/BuildJobExtension.cs:line 163
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message) in /mnt/vss/_work/1/s/src/Agent.Worker/JobExtension.cs:line 123
Finishing: Initialize job

Agent used - v4.251.0 on Ubuntu 22.04

libperl.so is a symlink to libperl.so.5.38.0 which is not available

user@srv:/opt/ccc/_work/112/s/build/tmp/sysroots-components/x86_64/perl-native/usr/lib$ ls -la
total 12
drwxr-xr-x 3 zzz zzz 4096 Feb 19 10:41 .
drwxr-xr-x 5 zzz zzz 4096 Jan 26 06:10 ..
lrwxrwxrwx 1 zzz zzz   17 Jan 26 06:10 libperl.so -> libperl.so.5.38.0
lrwxrwxrwx 1 zzz zzz   17 Jan 26 06:10 libperl.so.5 -> libperl.so.5.38.0
drwxr-xr-x 4 zzz zzz 4096 Jan 26 06:10 perl5

Those libperl files were installed here by one of the previous jobs which build Yocto related stuff. I am not sure if azure client tried to remove all content of _work/112 dir and definitelly I do not understand why it try to access libperl.so file. Any idea how it could be debug further?

I think the only workaround would be to remove whole $Pipeline.Workspace after every job but I think that this is the same what Initialize job step tries to do at the beginning of job execution.

@TomaszAIR
Copy link

And I think that I can also confirm that it was working on v3.x.x (in our case v3.248.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants