-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
Description
Hi there.
Recently the DSC process which had been running smoothly began failing due to the below error:
Error message
The PowerShell DSC resource '[cChocoPackageInstaller]installAndroidStudio' with SourceInfo '::660::9::cChocoPackageInstaller' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
More details
[cChocoPackageInstaller]installAndroidStudio
Resource instance error
{
"Exception": {
"Message": "The PowerShell DSC resource \u0027[cChocoPackageInstaller]installAndroidStudio\u0027 with SourceInfo \u0027::660::9::cChocoPackageInstaller\u0027 threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.",
"Data": {
},
"InnerException": {
"ErrorRecord": "Cannot find path \u0027C:\\choco\\cache\\ChocoInstalled.xml\u0027 because it does not exist.",
"ItemName": "C:\\choco\\cache\\ChocoInstalled.xml",
"SessionStateCategory": 4,
"WasThrownFromThrowStatement": false,
"Message": "Cannot find path \u0027C:\\choco\\cache\\ChocoInstalled.xml\u0027 because it does not exist.",
"Data": "System.Collections.ListDictionaryInternal",
"InnerException": null,
"TargetSite": "System.Collections.ObjectModel.Collection`1[System.String] ExpandMshGlobPath(System.String, Boolean, System.Management.Automation.PSDriveInfo, System.Management.Automation.Provider.ContainerCmdletProvider, System.Management.Automation.CmdletProviderContext)",
"StackTrace": " at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at Microsoft.PowerShell.Commands.RemoveItemCommand.ProcessRecord()",
"HelpLink": null,
"Source": "System.Management.Automation",
"HResult": -2146233087
},
"TargetSite": null,
"StackTrace": null,
"HelpLink": null,
"Source": null,
"HResult": -2146233079
},
"TargetObject": null,
"CategoryInfo": {
"Category": 7,
"Activity": "",
"Reason": "InvalidOperationException",
"TargetName": "",
"TargetType": ""
},
"FullyQualifiedErrorId": "NonTerminatingErrorFromProvider",
"ErrorDetails": null,
"InvocationInfo": null,
"ScriptStackTrace": null,
"PipelineIterationInfo": [
]
}
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.