-
Notifications
You must be signed in to change notification settings - Fork 107
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
SPSearchServiceSettings: change Windows Service Account cause issue on the Search Host Controller service #1345
Comments
Hi @julmsy, I am trying to reproduce this issue but unfortunately I am unable to. Can you share a little more about your topology? Do you have dedicated Search servers? Is this occurring on all servers? Can you reproduce the issue consistently? |
Hi @ykuijs, For now the topology is simple: Single-server farm, as I'm working to provision DEVs environments. |
I have just tested to update the search account three times (twice on SP2016 and once on SP2019) and all work without issues. Are these farms part of an Active Directory? If so, since you are using a single server farm: Does this server also host the AD (100% stand alone environment)? Have you also tried the most recent patch levels (16.0.5134 is March 2021)? |
And is your environment hardened in any way? Like with group policies? |
Yes, these farm are part of an Active Directory, but AD (as well as SQL) are on separate servers. The SharePoint Server only have SharePoint, no other service. Here is what I done in my script in sequence:
I can try with a most recent CU to see if there is a different behavior. Give me some days. |
Currently my test SP2016 environment is running the Dec 2020 CU. Am updating to the most recent CU as well. |
FYI: I have just updated my environment to the same patch level you were using (March 2021). Changing the service account keeps working fine with that CU. Curious to see what effect updating to the most recent CU has on your environment. |
Hello SharePointDsc team,
Details of the scenario you tried and the problem that is occurring
When you call the SPSearchServiceSettings resource and WindowsServiceAccount parameter to change the service account, the following occurs:
Verbose logs showing the problem
Nothing interesting on the verbose logs, however in SharePoint ULS logs, you can see the following error:
Suggested solution to the issue
After search and test, I found the missing permission that cause this issue: the new service account that set on the SharePoint Search Host Controller must be added in the IIS_IUSRS local group. Currently the newly service account is only added in WSS_WPG local group automatically.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The Build/Cumulative Update of SharePoint is running
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
Let me know if you would like more information.
Edit -- Added information/testing:
At that point, it really confuse if you need to have the service account added in IIS_IUSRS group. However, if you add this account into that group when the problem occurs, the Windows service start automatically in the next minute.
The text was updated successfully, but these errors were encountered: