Azure Devtest lab artiact failed to install and timeout after two hours

Vedachalam, Raj 1 Reputation point
2021-09-01T08:50:00.327+00:00

we are using choco package to install artifact. From choco log file we see below error message when artifact failed. same package working when we install directly on VM via choco

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\chocolatey\lib\testcomplete-1450.chocolateyPending'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass60.<write_file>b__5f()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retryT
2021-08-31 18:45:27,728 3992 [WARN ] - This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\chocolatey\lib\testcomplete-1450.chocolateyPending'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass60.<write_file>b__5f()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retryT
2021-08-31 18:45:28,140 3992 [ERROR] - Maximum tries of 3 reached. Throwing error.
2021-08-31 18:45:28,140 3992 [WARN ] -
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2021-08-31 18:45:28,157 3992 [ERROR] - Could not find a part of the path 'C:\ProgramData\chocolatey\lib\testcomplete-1450.chocolateyPending'.
2021-08-31 18:45:28,157 3992 [ERROR] - More Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\chocolatey\lib\testcomplete-1450.chocolateyPending'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass60.<write_file>b__5f()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retryT
at chocolatey.infrastructure.filesystem.DotNetFileSystem.write_file(String filePath, String fileText, Encoding encoding)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.set_pending(PackageResult packageResult, ChocolateyConfiguration config)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.handle_package_result(PackageResult packageResult, ChocolateyConfiguration config, CommandNameType commandName)
at chocolatey.infrastructure.app.services.NugetService.install_run(ChocolateyConfiguration config, Action1 continueAction) at chocolatey.infrastructure.app.services.ChocolateyPackageService.perform_source_runner_function[T](ChocolateyConfiguration config, Func2 function)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.install_run(ChocolateyConfiguration config)
at chocolatey.infrastructure.app.runners.GenericRunner.run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
at chocolatey.infrasructure.app.runners.ConsoleApplication.run(String[] args, ChocolateyConfiguration config, Container container)

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
262 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 25,151 Reputation points Microsoft Employee
    2021-09-03T06:26:21.293+00:00

    Hello, @Vedachalam, Raj !

    I've installed a number of successful Chocolatey packages on different VMs (over half a dozen at this point) and while most were successful, I did have to repeat one installation. I didn't see an individual package for TestComplete so I used FinalBuilder for my tests.

    If you continue to run into this, let me know and we can troubleshoot this further (unfortunately there are a number of issues that produce very similar error logs for Chocolatey installs).

    128899-image.png

    0 comments No comments