-
Notifications
You must be signed in to change notification settings - Fork 100
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
DSC Compliance Failed: Cannot find path C:\\choco\\cache\\ChocoInstalled.xml\ because it does not exist. #160
Comments
I am seeying the exact same behaviour, during uninstall the chocoinstalled.xml is removed, and 1~3 seconds after the dsc state fails the file is recreated. |
Hello, We are encountering the same issue when upgrading OpenJDK. Partial contained 11.0.8.1 before. When set to 11.0.14.1, the upgrade process runs succesfully (installer exits 0). However a second later we receive the same missing XML error |
We need steps to reproduce this before it can be looked at, including sample code. |
I just encountered the same error when upgrading the
Here is the configuration fragment:
We are specifying the exact pnpm package version (using the The culprit seems to be this line in cChocoPackageInstall.psm1:
This will fail if the file does not exist (and the function does not check for it). When |
This happens when the resource is called with the Version parameter set, but a different version is already installed. See cChocoPackageInstall.psm1 - Set-TargetResource Steps to Reproduce:choco install notepadplusplus --version=8.5.8
Invoke-DscResource -ModuleName 'cChoco' -Name 'cChocoPackageInstaller' -Method 'Set' -Property @{
Name='notepadplusplus'
Version='8.6.5'
Ensure='Present'
} -Verbose If instead, you use MinimumVersion, the package is upgraded instead of being uninstalled/installed. Of course, this has the side effect of not downgrading packages if that is the desire. Invoke-DscResource -ModuleName 'cChoco' -Name 'cChocoPackageInstaller' -Method 'Set' -Property @{
Name='notepadplusplus'
MinimumVersion='8.6.5'
Ensure='Present'
} -Verbose |
Hi, Any update regarding this issue? This is still happening. We've added retries to prevent failing pipelines. Thank you |
There is no update on this at the moment. For transparency we have not prioritised this issue. If this is an issue for you, have you looked at the Chocolatey DSC resource? |
Hi there.
Recently the DSC process which had been running smoothly began failing due to the below error:
I have seen that the "chocoinstalled.xml" file is being created in the correct location, but then deleted before the DSC process is completed causing it to fail. I've also noticed that the step that's failing is taking longer than the previous steps to run and I'm not sure if that might be the issue?
Any assistance would be appreciated.
Kind Regards,
Devon Britton.
The text was updated successfully, but these errors were encountered: