Failed to create web application - AutoSPInstaller Error

Sep 24, 2013 at 9:40 AM
I am using Windows Server 2012 and have Microsft SQL Server 2012 installed and want to install SharePoint 2013.

When I run AutoSPInstaller-script, I get the following error message:
  • Adding Managed Accounts
    • Creating local profile for SharePoint\SP_Services...Ausnahme beim Aufrufen von "Add" mit 1 Argument(en): "Ein Mitglied konnte in der lokalen Gruppe nicht hinzugefügt
      oder entfernt werden, da das Mitglied nicht vorhanden ist.
      "
      In C:\Users\SP_Install\Desktop\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:1592 Zeichen:21
  • ([ADSI]"WinNT://$env:COMPUTERNAME/$builtinAdminGroup,group") ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : CatchFromBaseAdapterMethodInvokeTI
.
WARNUNG: Could not create local user profile for SharePoint\SP_Services

- Done Adding Managed Accounts


  • Creating web applications...
  • Creating Web App "Portal2"
    New-SPWebApplication : Manche oder alle Identitätsverweise konnten nicht übersetzt werden.
    In C:\Users\SP_Install\Desktop\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:2157 Zeichen:9
  • New-SPWebApplication -Name $webAppName @appPoolAccountSwitch -Applicatio ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:SPCmdletNewSPWebApplication) [New-SPWebA
      pplication], IdentityNotMappedException
    • FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWebApplication

  • Script halted!
  • Failed to create web application
In another thread I read that it was the fact that the user name was too long. I have already tried with short user name, but I had no success.

This is the link to the thread where someone had the same problem: http://autospinstaller.codeplex.com/discussions/276429

Here is the complete error log file:

| Automated SP2013 install script |

| Started on: 24.09.2013 10:48:49 |

- SharePoint 2013 binaries are already installed.

  • Validating user accounts and passwords...
  • Account "SharePoint\SP_Farm"...Verified.
  • Account "SharePoint\SP_Services"...Verified.
  • Account "SharePoint\SP_AppPool01"...Verified.
  • Account "SharePoint\SP_MySiteAppPool"...Verified.
  • Account "SharePoint\SP_SearchService"...Verified.
  • Account "SharePoint\SP_SearchService"...Verified.
  • Account "SharePoint\SP_SearchContent"...Verified.

- Account "SharePoint\SP_AppPool01"...Verified.

- Writing config-AutoSPInstaller.xml to (Get-Item C:\Users\SP_INS~1\AppData\Local\Temp).FullName...

  • Creating SQL alias "SharePoint"...
  • Creating SQL alias "SharePoint"...
  • Testing access to SQL server/instance/alias: SharePoint
  • Trying to connect to "SharePoint"...Success
  • SQL Server version is: 11.0.3128.0
  • This instance of SQL Server is not clustered
  • Check if SBG\SP_Install has dbcreator server role...Pass

- Check if SBG\SP_Install has securityadmin server role...Pass

  • Install based on:
    • C:\Users\SP_Install\Desktop\SP\AutoSPInstaller\AutoSPInstallerInput-SHAREPOINT.xml
    • Environment: Dev

- Version: 3.93

- Disabling Loopback Check...


- Disabling IE Enhanced Security...


  • Setting services Spooler, AudioSrv and TabletInputService to Manual...
  • Spooler is already stopped and set Manual, no action required.
  • AudioSrv is already stopped and set Manual, no action required.
  • TabletInputService is already stopped and set Manual, no action required.
  • Setting unused services WerSvc to Disabled...
  • WerSvc is already stopped and disabled, no action required.

- Finished disabling services.


- Not changing CRL check behavior.


- SharePoint 2013 prerequisites appear be already installed - skipping install.


  • Configuring IIS logging...

- C:\Inetpub\logs is already compressed.


- SharePoint 2013 binaries appear to be already installed - skipping installation.


  • Installing SharePoint Language Packs:
  • Language Pack installation complete.
  • Currently installed languages:
    • Englisch (USA)
    • Deutsch (Deutschland)
    • Spanisch (Spanien)
    • Französisch (Frankreich)
    • Italienisch (Italien)

- Russisch (Russische Föderation)


  • Looking for SharePoint updates to install...

- No updates found in C:\Users\SP_Install\Desktop\SP\2013\Updates, skipping.

- SharePoint 2013 binary file installation done!

  • Adding SharePoint\SP_Farm to local Administrators (only for install)...

- SharePoint\SP_Farm is already a member of "Administratoren".


- Loading SharePoint Powershell Snapin...


  • Checking farm membership for SHAREPOINT in "TestPrefix_Config"...

- SHAREPOINT is already joined to farm on "TestPrefix_Config".


  • Configuring the SharePoint farm/server...
  • Installing Help Collection...
  • Securing Resources...
  • Installing Services...
  • Installing Features...
  • Updating Central Admin branding text to "Dev"...
  • Installing Application Content...
  • Checking Default Web Site...Already stopped.

- Done initial farm/server config.


  • Configuring SharePoint diagnostic (ULS) logging...

- C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS is already compressed.


  • Adding Managed Accounts
  • Creating local profile for SharePoint\SP_Services...Ausnahme beim Aufrufen von "Add" mit 1 Argument(en): "Ein Mitglied konnte in der lokalen Gruppe nicht hinzugefügt
    oder entfernt werden, da das Mitglied nicht vorhanden ist.
    "
    In C:\Users\SP_Install\Desktop\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:1592 Zeichen:21
  • ([ADSI]"WinNT://$env:COMPUTERNAME/$builtinAdminGroup,group") ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : CatchFromBaseAdapterMethodInvokeTI
.
WARNUNG: Could not create local user profile for SharePoint\SP_Services

- Done Adding Managed Accounts


  • Creating web applications...
  • Creating Web App "Portal2"
    New-SPWebApplication : Manche oder alle Identitätsverweise konnten nicht übersetzt werden.
    In C:\Users\SP_Install\Desktop\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:2157 Zeichen:9
  • New-SPWebApplication -Name $webAppName @appPoolAccountSwitch -Applicatio ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:SPCmdletNewSPWebApplication) [New-SPWebA
      pplication], IdentityNotMappedException
    • FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWebApplication

  • Script halted!
  • Failed to create web application
can someone please help me? I am grateful for every solution

I have my xml file with the AutoSPInstallerGUI tool created by this German tutorial.: http://martinschlenker.wordpress.com/2012/12/21/sharepoint-2013unbeaufsichtigte-installation-6/

here is my question again in German:

Ich benutze Windows Server 2012 und habe Microsft SQL Server 2012 installiert und möchte SharePoint 2013 installieren.
Wenn ich das AutoSPInstaller Script ausführe, erhalte ich eine Fehlermeldung (sieh oben)
In einem anderen Thread habe ich gelesen, dass es daran lag, dass der Benutzername zu lang war. Ich habe es schon mit kurzen Benutzernamen versucht, jedoch hatte ich kein Erfolg.
Sep 24, 2013 at 9:42 AM
here is my AutoSPInstallerInput.xml file Part1:

<?xml version="1.0"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Environment="Dev" Version="3.93">
<Install SPVersion="2013">
<ConfigFile>config-AutoSPInstaller.xml</ConfigFile>
<DataDir />
<PIDKey>censored</PIDKey>
<SKU>Enterprise</SKU>
<OfflineInstall>true</OfflineInstall>
<PauseAfterInstall>false</PauseAfterInstall>
<RemoteInstall Enable="false">
  <ParallelInstall>false</ParallelInstall>
</RemoteInstall>
<AutoAdminLogon Enable="true" Password="censored" />
<Disable>
  <LoopbackCheck>true</LoopbackCheck>
  <UnusedServices>true</UnusedServices>
  <IEEnhancedSecurity>true</IEEnhancedSecurity>
  <CertificateRevocationListCheck>false</CertificateRevocationListCheck>
</Disable>
</Install>
<Farm>
<Passphrase>censored</Passphrase>
<Account AddToLocalAdminsDuringSetup="true" LeaveInLocalAdmins="false">
  <Username>SharePoint\SP_Farm</Username>
  <Password>censored</Password>
</Account>
<CentralAdmin Provision="true">
  <Database>Content_Admin</Database>
  <Port>2010</Port>
  <UseSSL>false</UseSSL>
</CentralAdmin>
<Database>
  <DBServer>SharePoint</DBServer>
  <DBAlias Create="true" DBInstance="SharePoint\Administrator" DBPort="" />
  <DBPrefix>TestPrefix</DBPrefix>
  <ConfigDB>Config</ConfigDB>
</Database>
<Services>
  <SandboxedCodeService Start="false" />
  <ClaimsToWindowsTokenService Start="false" UpdateAccount="false" />
  <SMTP Install="false" />
  <OutgoingEmail Configure="true">
    <SMTPServer />
    <EmailAddress />
    <ReplyToEmail />
  </OutgoingEmail>
  <IncomingEmail Start="true" />
  <DistributedCache Start="true" />
  <WorkflowTimer Start="true" />
  <FoundationWebApplication Start="true" />
</Services>
<ManagedAccounts>
  <ManagedAccount CommonName="spservice">
    <Username>SharePoint\SP_Services</Username>
    <Password>censored</Password>
  </ManagedAccount>
  <ManagedAccount CommonName="portalapppool">
    <Username>SharePoint\SP_AppPool01</Username>
    <Password>censored</Password>
  </ManagedAccount>
  <ManagedAccount CommonName="mysiteapppool">
    <Username>SharePoint\SP_MySiteAppPool</Username>
    <Password>censored</Password>
  </ManagedAccount>
  <ManagedAccount CommonName="searchservice">
    <Username>SharePoint\SP_SearchService</Username>
    <Password>censored</Password>
  </ManagedAccount>
</ManagedAccounts>
<ObjectCacheAccounts>
  <SuperUser>SharePoint\SP_CacheSuperAdmin</SuperUser>
  <SuperReader>SharePoint\SP_CacheSuperReader</SuperReader>
</ObjectCacheAccounts>
<Logging>
  <IISLogs Compress="true">
    <Path />
  </IISLogs>
  <ULSLogs Compress="true">
    <LogLocation />
    <LogDiskSpaceUsageGB />
    <DaysToKeepLogs />
    <LogCutInterval />
  </ULSLogs>
  <UsageLogs Compress="true">
    <UsageLogDir />
    <UsageLogMaxSpaceGB />
    <UsageLogCutTime />
  </UsageLogs>
</Logging>
</Farm>
<WebApplications AddURLsToHOSTS="true">
<WebApplication type="Portal2" name="Portal2" applicationPool="Portal2" applicationPoolAccount="SharePoint\SP_AppPool01" url="http://localhost" port="80" UseHostHeader="false" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="Content_Portal" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
  <Database>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
  <ManagedPaths>
    <ManagedPath relativeUrl="help" explicit="true" />
  </ManagedPaths>
  <SiteCollections>
    <SiteCollection siteUrl="http://localhost" HostNamedSiteCollection="false" Owner="SharePoint\SP_Install" Name="Portal Home" Description="Portal Home Site" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSPORTAL#0" LCID="1031" Locale="de-de" Time24="true" />
  </SiteCollections>
</WebApplication>
<WebApplication type="MySiteHost" name="MySite Host" applicationPool="MySites" applicationPoolAccount="SharePoint\SP_MySiteAppPool" url="http://localhost" port="8080" UseHostHeader="false" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="Content_MySites" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
  <Database>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
  <ManagedPaths>
    <ManagedPath relativeUrl="personal" explicit="false" />
  </ManagedPaths>
  <SiteCollections>
    <SiteCollection siteUrl="http://localhost:8080" HostNamedSiteCollection="false" Owner="SharePoint\SP_MySiteAppPool" Name="My Site Host" Description="My Site Host" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSMSITEHOST#0" LCID="1031" Locale="de-de" Time24="true" />
  </SiteCollections>
</WebApplication>
</WebApplications>
<ServiceApps>
<ManagedMetadataServiceApp Provision="true" Name="Managed Metadata Service" ProxyName="Managed Metadata Service">
  <Database>
    <Name>MetaData</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</ManagedMetadataServiceApp>
<UserProfileServiceApp Provision="true" Name="User Profile Service Application" ProxyName="User Profile Service Application" EnableNetBIOSDomainNames="false" StartProfileSync="true" CreateDefaultSyncConnection="false" SyncConnectionAccount="SharePoint\SP_ProfileSync" SyncConnectionAccountPassword="censored">
  <Database>
    <ProfileDB>Profile</ProfileDB>
    <SyncDB>Sync</SyncDB>
    <SocialDB>Social</SocialDB>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</UserProfileServiceApp>
<EnterpriseSearchService Provision="true" ContactEmail="" ConnectionTimeout="60" AcknowledgementTimeout="60" ProxyType="Default" IgnoreSSLWarnings="false" InternetIdentity="Mozilla/4.0 (compatible; MSIE 4.01; Windows NT; MS Search 6.0 Robot)" CustomIndexLocation="" PerformanceLevel="PartlyReduced" Account="SharePoint\SP_SearchService" Password="censored" ShareName="SearchIndex">
  <EnterpriseSearchServiceApplications>
    <EnterpriseSearchServiceApplication Name="Search Service Application" FailoverDatabaseServer="" Partitioned="false" Partitions="1" SearchServiceApplicationType="Regular" ContentAccessAccount="SharePoint\SP_SearchContent" ContentAccessAccountPassword="censored">
      <Database>
        <Name>Search Service Application</Name>
        <DBServer>SharePoint</DBServer>
        <DBAlias Create="true" DBInstance="localhost" DBPort="" />
      </Database>
      <ApplicationPool Name="SharePoint Search Application Pool" Account="SharePoint\SP_AppPool01" Password="censored" />
      <CrawlComponent>
        <Server Name="localhost" />
      </CrawlComponent>
      <QueryComponent>
        <Server Name="localhost" />
      </QueryComponent>
      <SearchQueryAndSiteSettingsServers>
        <Server Name="localhost" />
      </SearchQueryAndSiteSettingsServers>
      <AdminComponent>
        <Server Name="localhost" />
        <ApplicationPool Name="SharePoint Search Application Pool" Account="SharePoint\SP_AppPool01" />
      </AdminComponent>
      <IndexComponent>
        <Server Name="localhost" />
      </IndexComponent>
      <ContentProcessingComponent>
        <Server Name="localhost" />
      </ContentProcessingComponent>
      <AnalyticsProcessingComponent>
        <Server Name="localhost" />
      </AnalyticsProcessingComponent>
      <Proxy Name="Search Service Application" Partitioned="false">
        <ProxyGroup Name="Default" />
      </Proxy>
      <SearchCenterUrl />
    </EnterpriseSearchServiceApplication>
  </EnterpriseSearchServiceApplications>
</EnterpriseSearchService>
<StateService Provision="true" Name="State Service" ProxyName="State Service">
  <Database>
    <Name>StateService</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</StateService>
<WebAnalyticsService Provision="true" Name="Web Analytics Service Application">
  <Database>
    <ReportingDB>WebAnalyticsReporting</ReportingDB>
    <StagingDB>WebAnalyticsStaging</StagingDB>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</WebAnalyticsService>
<SPUsageService Provision="true" Name="Usage and Health Data Collection">
  <Database>
    <Name>UsageAndHealth</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</SPUsageService>
<SecureStoreService Provision="true" Name="Secure Store Service" ProxyName="Secure Store Service">
  <Database>
    <Name>SecureStore</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</SecureStoreService>
<BusinessDataConnectivity Provision="false" Name="Business Data Connectivity Service" ProxyName="Business Data Connectivity Service">
  <Database>
    <Name>BusinessDataCatalog</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</BusinessDataConnectivity>
<WordAutomationService Provision="false" Name="Word Automation Services" ProxyName="Word Automation Services">
Sep 24, 2013 at 9:42 AM
here is my AutoSPInstallerInput.xml file Part2:

<Database>
    <Name>WordAutomation</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</WordAutomationService>
<AppManagementService Provision="true" Name="App Management Service" ProxyName="App Management Service" AppDomain="apps.domain.com">
  <Database>
    <Name>AppManagement</Name>
    <DBServer />
    <DBAlias Create="true" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</AppManagementService>
<SubscriptionSettingsService Provision="true" Name="Subscription Settings Service" AppSiteSubscriptionName="app">
  <Database>
    <Name>SubscriptionSettings</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</SubscriptionSettingsService>
<WorkManagementService Provision="true" Name="Work Management Service Application" ProxyName="Work Management Service Application" />
<MachineTranslationService Provision="true" Name="Machine Translation Service" ProxyName="Machine Translation Service">
  <Database>
    <Name>TranslationService</Name>
    <DBServer />
    <DBAlias Create="true" DBInstance="SharePoint\Administrator" DBPort="" />
  </Database>
</MachineTranslationService>
<PowerPointConversionService Provision="true" Name="PowerPoint Conversion Service Application" ProxyName="PowerPoint Conversion Service Application" />
</ServiceApps>
<EnterpriseServiceApps>
<ExcelServices Provision="false" Name="Excel Services Application" UnattendedIDUser="DOMAIN\SP_ExcelUser" UnattendedIDPassword="" />
<VisioService Provision="false" Name="Visio Graphics Service" ProxyName="Visio Graphics Service" UnattendedIDUser="DOMAIN\SP_VisioUser" UnattendedIDPassword="" />
<AccessService Provision="false" Name="Access 2010 Service" ProxyName="Access 2010 Service" />
<AccessServices Provision="false" Name="Access Services" ProxyName="Access Services">
  <Database>
    <Name>AccessServices</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</AccessServices>
<PerformancePointService Provision="false" Name="PerformancePoint Service" ProxyName="PerformancePoint Service" UnattendedIDUser="DOMAIN\SP_PerfPointUser" UnattendedIDPassword="">
  <Database>
    <Name>PerformancePoint</Name>
    <DBServer />
    <DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
  </Database>
</PerformancePointService>
</EnterpriseServiceApps>
<OfficeWebApps Install="false" ConfigFile="config-OWA-2010.xml" PIDKeyOWA="">
<ExcelService Provision="false" Name="Excel Web App" ProxyName="Excel Web App" UnattendedIDUser="DOMAIN\SP_ExcelUser" UnattendedIDPassword="" />
<WordViewingService Provision="false" Name="Word Viewing Service" ProxyName="Word Viewing Service" />
<PowerPointService Provision="false" Name="PowerPoint Service Application" ProxyName="PowerPoint Service Application" />
</OfficeWebApps>
<AdobePDF>
<iFilter Install="false" />
<Icon Configure="true" />
<MIMEType Configure="true" />
</AdobePDF>
<ForeFront Install="false" ConfigFile="answerfile-ForeFront.xml" />
</Configuration>
Sep 24, 2013 at 11:46 AM
here one has such a similar problem: https://autospinstaller.codeplex.com/workitem/13586

can tell me what I have to do please? The user "SP_Services" has already been created in the AD
Sep 25, 2013 at 8:11 AM
I solved the problem. It was but because these are the names too long. But simply shorten the names is not enough. If you come across the problem and the script executes several times, then is no longer possible. You have to install the snapshot back and front with the right name