1
Vote

Error provisioning the Managed Metadata Service Application

description

Hi,
I've come across the following error while trying to install SP2013. Can anyone suggest what the issue might be?
Thanks in advance!
Phil.
  • Provisioning Managed Metadata Service Application
  • Starting Managed Metadata Service:
  • Managed Metadata Service already started.
  • Creating Metadata Service Application...
    New-SPMetadataServiceApplication : The term 'New-SPMetadataServiceApplication'
    is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify
    that the path is correct and try again.
    At E:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:1569 char:39
  • $metaDataServiceApp = New-SPMetadataServiceApplication -Name
    $me ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (New-SPMetadataServiceApplicatio
      n:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

  • Script halted!
  • Error provisioning the Managed Metadata Service Application

comments

brianlala wrote Apr 18, 2013 at 4:06 AM

It almost looks like something went wrong with the SharePoint installation, or the PowerShell cmdlets for SharePoint didn't load. Have never seen the above error before.

If you have since resolved it, could you please close/resolve the issue here.

Brian

plip1978 wrote Apr 18, 2013 at 10:02 AM

Brian,
thanks for replying. I wasn't sure if it occurred because I was installing SharePoint 2013 Foundation. I found that if I turned of the provisioning of the managed metadata service, the user profile service, the enterprise search service, excel, vision, access and performance point - then it would run to the end and complete the install.
Is this the behaviour you'd expect?
Thanks!

plip1978 wrote Apr 18, 2013 at 10:11 AM

Also, I'm not sure why, but the ALIAS didn't work. I had set up something like SERVER\INSTANCE, but all the databases were put into SERVER. Any ideas why this might have occurred?
Thanks!

plip1978 wrote Apr 18, 2013 at 2:37 PM

I've recreated everything for autospinstaller 3.86 (in terms of the xml file) and have asked it to provision all the services I said I had to turn off in the previous post.

I am currently running up against this error:

  • Done setting up managed paths at "http://RTMOSAIQSVR:80"
  • Granting CYMRU\vcc_sp_services rights to "Portal"...Done.
  • Creating Site Collection "http://RTMOSAIQSVR"...

WARNING: Template is not found and is not applied.

  • Script halted!
Exception : System.UnauthorizedAccessException: <nativehr>0x8007000
                    5</nativehr><nativestack></nativestack>Access denied.
                       at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedA
                    ccessException(UnauthorizedAccessException ex)
                       at 
                    Microsoft.SharePoint.Library.SPRequest.CreateSite(Guid 
                    gApplicationId, String bstrUrl, Int32 lZone, Guid 
                    gSiteId, Guid gDatabaseId, String bstrDatabaseServer, 
                    String bstrDatabaseName, String bstrDatabaseUsername, 
                    String bstrDatabasePassword, String bstrTitle, String 
                    bstrDescription, UInt32 nLCID, String bstrOwnerLogin, 
                    String bstrOwnerUserKey, String bstrOwnerName, String 
                    bstrOwnerEmail, String bstrSecondaryContactLogin, 
                    String bstrSecondaryContactUserKey, String 
                    bstrSecondaryContactName, String 
                    bstrSecondaryContactEmail, Boolean bADAccountMode, 
                    Boolean bHostHeaderIsSiteName, Int32 
                    iDatabaseVersionMajor, Int32 iDatabaseVersionMinor, 
                    Int32 iDatabaseVersionBuild, Int32 
                    iDatabaseVersionRevision, String bstrSiteSchemaVersion)
                       at Microsoft.SharePoint.Administration.SPSiteCollect
                    ion.Add(SPContentDatabase database, SPSiteSubscription 
                    siteSubscription, String siteUrl, String title, String 
                    description, UInt32 nLCID, Int32 compatibilityLevel, 
                    String webTemplate, String ownerLogin, String 
                    ownerName, String ownerEmail, String 
                    secondaryContactLogin, String secondaryContactName, 
                    String secondaryContactEmail, String quotaTemplate, 
                    String sscRootWebUrl, Boolean useHostHeaderAsSiteName, 
                    Boolean overrideCompatibilityRestriction)
                       at Microsoft.SharePoint.PowerShell.SPCmdletNewSite.C
                    reateDataObject()
                       at Microsoft.SharePoint.PowerShell.SPNewCmdletBase`1
                    .InternalProcessRecord()
                       at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessR
                    ecord()
TargetObject : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
CategoryInfo : InvalidData:
                    (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) 
                    [New-SPSite], UnauthorizedAccessException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, E:\Temp\SP\AutoSPInstaller\AutoSPInsta
                    llerFunctions.ps1: line 2111
                    at CreateWebApplications, E:\Temp\SP\AutoSPInstaller\Au
                    toSPInstallerFunctions.ps1: line 1966
                    at Setup-Farm, 
                    E:\Temp\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: 
                    line 189
                    at <ScriptBlock>, 
                    E:\Temp\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: 
                    line 357
                    at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}

PSMessageDetails :

This is my xml file:

<WebApplications AddURLsToHOSTS="true">
<WebApplication type="Portal" name="Portal" applicationPool="Portal" applicationPoolAccount="CYMRU\vcc_sp_portalapppool" url="http://localhost" port="80" UseHostHeader="false" AddURLToLocalIntranetZone="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="DOMAIN\portalapppool" Name="Portal Home" Description="Portal Home Site" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSPORTAL#0" LCID="1033" Locale="en-gb" Time24="false" />
  </SiteCollections>
</WebApplication>
<WebApplication type="MySiteHost" name="MySite Host" applicationPool="MySites" applicationPoolAccount="DOMAIN\profilesapppo" url="http://localhost" port="8080" UseHostHeader="true" AddURLToLocalIntranetZone="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="DOMAIN\profilesapppo" Name="My Site Host" Description="My Site Host" SearchUrl="http://localhost/search" CustomTemplate="false" Template="SPSMSITEHOST#0" LCID="1033" Locale="en-gb" Time24="false" />
  </SiteCollections>
</WebApplication>

</WebApplications>

plip1978 wrote Apr 18, 2013 at 2:39 PM

Apologies for the strange formatting! And thanks in advance!

plip1978 wrote Apr 26, 2013 at 10:14 AM

I can't seem to close this issue.

bjorn80 wrote Dec 10, 2013 at 7:52 AM

GEtting the same error :-/

bjorn80 wrote Dec 10, 2013 at 8:05 AM

Found answer http://objectmix.com/sharepoint/298178-access-denied-exception-hresult-0x80070005-e_accessden.html
:)

added the contentapppool account and farm on the security tab with local acitivation and launch.