rancher-desktop - artifact installation failed -

Ho, Angel-XT 0 Reputation points
2023-03-03T11:14:12.1533333+00:00

==

{"status":"Failed","error":{"code":"ResourceDeploymentFailure","message":"The 'AzureAsyncOperationWaiting' resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'CustomScriptExtension'. Error message: \"Command execution finished, but failed because it returned a non-zero exit code of: '1'\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "}]}}

The 'rancher-desktop' artifact failed to install. See artifact result for details.
atey\lib\rancher-desktop\tools\pkgenv.json'
  with checksum 'B4245F2CC9FB5EEFD4862E7608049278'
 Found 'C:\ProgramData\chocolatey\lib\rancher-desktop\tools\pkginstall.ps1'
  with checksum 'CCFE48B8FF2E3B39A371DE6560F6E2C0'
 Found 'C:\ProgramData\chocolatey\lib\rancher-desktop\tools\pkguninstall.ps1'
  with checksum 'E5CA2A555EDC1EF656C338D859342E48'
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\rancher-desktop.1.2.1.22062712\.arguments".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\rancher-desktop.1.2.1.22062712\.extra".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\rancher-desktop.1.2.1.22062712\.version".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\rancher-desktop.1.2.1.22062712\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\rancher-desktop.1.2.1.22062712\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\rancher-desktop".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The install of rancher-desktop was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\rancher-desktop\tools\chocolateyinstall.ps1'.
 See log for details.
Moving 'C:\ProgramData\chocolatey\lib\rancher-desktop'
 to 'C:\ProgramData\chocolatey\lib-bad\rancher-desktop'
rancher-desktop not installed. An error occurred during installation:
 Stopping further execution as rancher-desktop has failed install.
This is try 1/3. Retrying after 300 milliseconds.
 Error converted to warning:
 System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\chocolatey\lib\rancher-desktop\.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.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
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\rancher-desktop\.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.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent)
Maximum tries of 3 reached. Throwing error.

Chocolatey installed 0/0 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Sending message 'PostRunMessage' out if there are subscribers...
Could not find a part of the path 'C:\ProgramData\chocolatey\lib\rancher-desktop\.chocolateyPending'.
Exiting with -1

ERROR: Installation failed (-1). Please see the Chocolatey logs in %ALLUSERSPROFILE%\chocolatey\logs folder for details.

The artifact failed to apply.



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

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 23,341 Reputation points Microsoft Employee
    2023-03-05T09:37:26.6566667+00:00

    Hello, @Ho, Angel-XT !

    Why is my artifact installation of Rancher Desktop failing on DevTest Labs?

    I'm getting a similar (although not identical) error when attempting to use the DevTest Labs artifact installation, Install Chocolatey Packages with Rancher Desktop but not with other packages like Visual Studio Code. Rancher Desktop downloads successfully but ultimately fails to install which suggests that there may be an issue with the package. Including the local log from the VM (C:\ProgramData\chocolatey\logs\chocolatey.log) will help us determine exactly what happened.

    Repro:

    When adding an artifact, both rancher-desktop and rancher-desktop --version 1.7.0 -y were attempted. Both failed after successfully downloading and attempting to install. vscode successfully installed without issue.

    The installation command from the Chocolatey Rancher Desktop package page:

    User's image

    Install Chocolatey Packages artifact in Azure DevTest Labs:

    User's image

    Visual Studio Code installed successfully using Install Chocolatey Packages artifact however Rancher Desktop did not:

    User's image

    0 comments No comments