SharePoint configuration failed in new server

Tevon2.0 1,106 Reputation points
2022-12-19T13:50:37.757+00:00

I tried to run the SharePoint configuration and it stopped on stage 6 with the error below. How can this error be rectified so that I can rerun and complete the configuration.

Failed to register SharePoint services.
This is a critical task. You have to fix the failures before you can continue. thrown by the target of an invocation.

An exception of type System.Reflection.TargetInvocationException was thrown. Additional exception information: Exception has been thrown by the target of an invocation.

To diagnose the problem, review the application event log and the configuration log file located at:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\LOGS\PSCDiagnostics_12_14_20...

12/14/2022 14:14:16 18 ERR Failed to register SharePoint services.
An exception of type System.Reflection.TargetInvocationException was thrown. Additional exception information: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
at Microsoft.SharePoint.Utilities.SPUserUtility.SidToAccountName(SecurityIdentifier sid)
at Microsoft.SharePoint.Utilities.SPUserUtility.IsLocalAccount(SecurityIdentifier sid)
at Microsoft.SharePoint.Utilities.SPUserUtility.WarnIfLocalAccountOnFarm(SecurityIdentifier sid, String accountUser)
at Microsoft.SharePoint.Administration.SPProcessIdentity.set_ManagedAccount(SPManagedAccount value)
at Microsoft.Office.Project.Server.Administration.ProjectServiceBase..ctor(String name, SPFarm farm)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.SharePoint.PostSetupConfiguration.ReflectionHelper.InvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters)
at Microsoft.SharePoint.PostSetupConfiguration.TaskCommon.ReflectionHelperInvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters, TaskBase task)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InvokeServiceConstructor(String serviceRegistryKeyName, String solutionIdRegistryName, String serviceNameRegistryName, Type[] constructorSignature, Object[] constructorParameters)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInConfigDB(Boolean provisionTheServiceToo, String serviceRegistryKeyName)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServices(Boolean provisionTheServicesToo)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2022-12-20T09:07:16.817+00:00

    Hi @

    Please check as following for basic troubleshooting:

    Enable search admin timer job via PowerShell.

     Enable-SPTimerJob job-application-server-admin-service  
    

    Update the account running Osearch15/Hostcontroller services using:

    $password = Read-Host -AsSecureString  
    Set-SPEnterpriseSearchService -IgnoreSSLWarnings $true -ServiceAccount <domain\Account> -ServicePassword $password  
    

    Make sure the account you use to configure the application is a member of the WSS_WPG group and the group has full control over the following path.

    C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications.  
    

    Run following powershell to check if AdminComponents has value returned.

    $ssa = Get-SPEnterpriseSearchServiceApplication 'Search Service Application'  
    Get-SPEnterpriseSearchAdministrationComponent -SearchApplication $ssa  
    

    If not, set as following:

    $varInstance = Get-SPEnterpriseSearchServiceInstance -local  
    set-spenterprisesearchadministrationcomponent –searchapplication $varSearchApp –searchserviceinstance $varInstance  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.