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, Func
2 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)