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
MSFT_SPSearchTopology: Issue with Set-TargetResource (Server name is null) #891
Comments
Hi @JoeAlanis You mention that there is a check in the code that is causing this. Have you been able to determine exactly which check that is? That would make troubleshooting a whole lot easier ;-) |
Good afternoon, I am also getting this same error on a sharepoint server 2013 farm with one sharepoint server and one sql server. Thank You! SPSearchTopology FarmSearchTopology{ SharePointDSC 2.5 |
Hi @ykuijs, I suspect that it's in the Set-TargetResource lines 258-265. I don't think it's catching that it is null. |
Are you using both short names and FQDNs in the same config? |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
@JoeAlanis Do you have an answer to my previous question? |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
@JoeAlanis Any update? |
And can you test with v3.1? |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
I had the same issue. I confirm it works when using the FQDN instead of the short name. |
Confirmed.... FQDN did the trick. Thank you @ykuijs ! |
ISSUE DESCRIPTION:
I am receiving the following error when pushing a Search topology configuration:
Details of the scenario you tried and the problem that is occurring
I am using a Push configuration using Partial configuration for both SQL 2017 and SharePoint 2016 onto a single server farm configuration. Server name is SQL1-2016 (localhost). There is a check in the MSFT_SPSearchTopology resource that is causing the error.
Verbose logs showing the problem
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Leaving ProcessRecord Method of Get-SPEnterpriseSearchServiceApplication.
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Leaving EndProcessing Method of Get-SPEnterpriseSearchServiceApplication.
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Leaving BeginProcessing Method of New-SPEnterpriseSearchTopology.
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Leaving ProcessRecord Method of New-SPEnterpriseSearchTopology.
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Leaving EndProcessing Method of New-SPEnterpriseSearchTopology.
VERBOSE: [Sql1-2016]: [[SPSearchTopology]FarmSearchTopology] Setting components for 'Admin' property
VERBOSE: [Sql1-2016]: LCM: [ End Set ] [[SPSearchTopology]FarmSearchTopology] in 0.4530 seconds.
PowerShell DSC resource MSFT_SPSearchTopology failed to execute Set-TargetResource functionality with error message: Cannot bind argument to parameter 'SearchServiceInstance' because it is null.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : localhost
Suggested solution to the issue
There is something in the Set-TargetResource that is causing this.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
OsName : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 14393.2430.amd64fre.rs1_release_inmarket_aim.180806-1810
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version of SharePoint that is used (e.g. SharePoint 2016)
SharePoint 2016
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.14393.2430
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2430
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used ('dev' if using current dev branch)
Manifest 2.5.0.0 SharePointDSC
The text was updated successfully, but these errors were encountered: