【发布时间】:2023-03-11 15:57:01
【问题描述】:
我正在使用 DSC 来管理 2 个节点,我已经能够设置我的 pull-server,但现在的问题是从 pull-server 推送/拉取配置不起作用。
我尝试对问题进行故障排除,我可以在 GetAction 请求的响应中看到错误,但我不知道这意味着什么。
{
"odata.error": {
"code": "",
"message": {
"lang": "en-US",
"value": "nodeComplianceStatus or mofChecksum not found for MSFT.PSDSCAction."
},
"innererror": {
"message": "nodeComplianceStatus or mofChecksum not found for MSFT.PSDSCAction.",
"type": "System.ArgumentException",
"stacktrace": ""
},
"MODATA.Exception.ErrorRecord": {
"odata.type": "MODATA.Exception.DataServiceException",
"ErrorCode": "",
"MessageLanguage": "en-US",
"StatusCode": 400,
"Message": "nodeComplianceStatus or mofChecksum not found for MSFT.PSDSCAction.",
"Data": [],
"InnerException": {
"Message": "nodeComplianceStatus or mofChecksum not found for MSFT.PSDSCAction.",
"Data": [],
"InnerException": null,
"TargetSite": null,
"StackTrace": null,
"HelpLink": null,
"Source": null,
"HResult": -2147024809
},
"TargetSite": null,
"StackTrace": " at Microsoft.Management.Odata.Core.OperationManagerAdapter.InvokeMethod(IInvoker invoker, String functionName, String resourceTypeName, Boolean ignoreNotImplementedException)\r\n at Microsoft.Management.Odata.Core.OperationManagerAdapter.InvokeOperationManagerFunction[T](Func`1 func, String functionName, String resourceTypeName, Boolean ignoreNotImplementedException, T defaultResultForNotImplementedException)\r\n at Microsoft.Management.Odata.Core.OperationManagerAdapter.InvokeAction(ResourceType resourceType, IEnumerable`1 resourceKeys, String actionName, IEnumerable`1 inputParameters, ResourceType returnType)\r\n at Microsoft.Management.Odata.Core.DataServiceInvokable.InvokeActionOnAst(RequestAstNode root)\r\n at Microsoft.Management.Odata.Core.DataServiceInvokable.Invoke()\r\n at Microsoft.Management.Odata.Core.DataServiceUpdateProvider.SaveChanges()\r\n at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)\r\n at System.Data.Services.DataService`1.HandleRequest()",
"HelpLink": null,
"Source": "Microsoft.Management.OData",
"HResult": -2146233079
}
}
}
知道有什么问题吗?
【问题讨论】:
标签: powershell dsc