Problem with Script....

Oct 31, 2012 at 2:57 PM

Sorry, for NOT detailing WHERE exactly the script jumps out, I simply don't know it.

Here is my log:

**********************
Windows PowerShell Transcript Start
Start time: 20121031151350
Username  : DOM01\sp_install
Machine   : DOM01SP02 (Microsoft Windows NT 6.1.7601 Service Pack 1)
**********************
Transcript started, output file is C:\Users\sp_install\Desktop\AutoSPInstaller-
2012-10-31_3-13.rtf
-----------------------------------
| Automated SP2010 install script |
| Started on: 31.10.2012 15:13:50 |
-----------------------------------
 - SharePoint 2010 binaries are already installed.
--------------------------------------------------------------
 - Validating user accounts and passwords...
 - Account "dom01\SP_Farm"...Verified.
 - Account "dom01\SP_Services"...Verified.
 - Account "dom01\SP_AppPool01"...Verified.
 - Account "dom01\SP_AppPool01"...Verified.
 - Account "dom01\SP_Search"...Verified.
 - Account "dom01\SP_Search"...Verified.
 - Account "dom01\SP_Crawl"...Verified.
 - Account "dom01\SP_Search"...Verified.
--------------------------------------------------------------
--------------------------------------------------------------
 - Creating SQL alias "sptest\spautoinst,14000"...
 - Testing access to SQL server/instance/alias: sptest\spautoinst
 - Trying to connect to "sptest\spautoinst"...Success
 - SQL Server version is: 10.50.1600.1
 - This instance of SQL Server is not clustered
 - Check if DOM01\sp_install has dbcreator server role...Pass
 - Check if DOM01\sp_install has securityadmin server role...Pass
--------------------------------------------------------------
 - Install based on:
  - C:\de_SP2010\AutoSPInstaller\\AutoSPInstallerInput-DOM01SP02.xml
  - Environment: Dev
  - Version: 3.2
--------------------------------------------------------------
 - 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 2010 prerequisites appear be already installed - skipping install.
--------------------------------------------------------------
--------------------------------------------------------------
 - Configuring IIS logging...
 - C:\Inetpub\logs is already compressed.
--------------------------------------------------------------
--------------------------------------------------------------
 - SharePoint 2010 binaries appear to be already installed - skipping installation.
--------------------------------------------------------------
--------------------------------------------------------------
 - No language packs found in C:\de_SP2010\LanguagePacks, skipping.
 - Currently installed languages:
  - German (Germany)
  - English (United States)
--------------------------------------------------------------
 - SharePoint 2010 binary file installation done!
--------------------------------------------------------------
 - Adding dom01\SP_Farm to local Administrators (only for install)...
 - dom01\SP_Farm is already a member of "Administrators".
--------------------------------------------------------------
--------------------------------------------------------------
 - Loading SharePoint Powershell Snapin
--------------------------------------------------------------
--------------------------------------------------------------
 - Checking farm membership for DOM01SP02 in "SP_Config"...
 - DOM01SP02 is already joined to farm on "SP_Config".
--------------------------------------------------------------
--------------------------------------------------------------
 - Configuring the SharePoint farm/server...
 - Installing Help Collection...
 - Securing Resources...
 - Installing Services...
 - Installing Features...
 - Installing Application Content...
 - Done initial farm/server config.
--------------------------------------------------------------
--------------------------------------------------------------
 - Configuring SharePoint diagnostic (ULS) logging...
 - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS is already compressed.
--------------------------------------------------------------
--------------------------------------------------------------
 - Adding Managed Accounts
 - Creating local profile for dom01\SP_Services...Done.
 - Managed account dom01\SP_Services already exists.
 - Creating local profile for dom01\SP_AppPool01...Done.
 - Managed account dom01\SP_AppPool01 already exists.
 - Creating local profile for dom01\SP_AppPool01...Done.
 - Managed account dom01\SP_AppPool01 already exists.
 - Creating local profile for dom01\SP_Search...Done.
 - Managed account dom01\SP_Search already exists.
 - Done Adding Managed Accounts
--------------------------------------------------------------
--------------------------------------------------------------
 - Creating web applications...
 - Web app "Portal" already provisioned.
 - Skipping creation of site "DOM01 Portal Home" - already provisioned.
--------------------------------------------------------------
 - Applying object cache accounts to "http://sp.dom01.intra:80"...
 - Done applying object cache accounts to "http://sp.dom01.intra:80"
 - Setting online webpart catalog access for "http://sp.dom01.intra:80"
 - Adding *.dom01.intra to local Intranet security zone...
--------------------------------------------------------------
 - Web app "MySite Host" already provisioned.
 - Creating Site Collection "http://mysite.dom01.intra:80"...
 - Setting the Portal Site Connection for "My Site Host"...
 - Updating the locale for "My Site Host" to "de-de"...
 - Updating 24 hour time format for "My Site Host" to "false"...
--------------------------------------------------------------
 - Applying object cache accounts to "http://mysite.dom01.intra:80"...
 - Done applying object cache accounts to "http://mysite.dom01.intra:80"
 - Setting online webpart catalog access for "http://mysite.dom01.intra:80"
 - Adding *.dom01.intra to local Intranet security zone...
--------------------------------------------------------------
 - Adding HOSTS file entries for local resolution...
 - Backing up HOSTS file to:
 - C:\Windows\System32\drivers\etc\HOSTS.121031151502.copy
 - HOSTS file entry for "mysite.dom01.intra" already exists - skipping.
 - HOSTS file entry for "sp.dom01.intra" already exists - skipping.
 - Deleting HOSTS backup file since no changes were made...
--------------------------------------------------------------
--------------------------------------------------------------
 - State Service Application already provisioned.
--------------------------------------------------------------
--------------------------------------------------------------
 - Provisioning Managed Metadata Service Application
 - Starting Managed Metadata Service:
 - Managed Metadata Service already started.
 - Managed Metadata Service Application already provisioned.
--------------------------------------------------------------
--------------------------------------------------------------
 - Provisioning User Profile Service Application
 - Starting User Profile Service instance...
 - Checking User Profile Synchronization Service...Already started.
--------------------------------------------------------------
--------------------------------------------------------------
 - SP Usage Application already provisioned.
--------------------------------------------------------------
--------------------------------------------------------------
 - Configuring Usage Logging...
 - Moving any contents in old location  to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS...
 - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS is already compressed.
 - Done configuring usage logging.
--------------------------------------------------------------
--------------------------------------------------------------
 - Provisioning Web Analytics Service Application...
 - Checking Analytics Service instances...
 - Starting local Analytics Web Service instance...
 - Updating Web Analytics-Datenverarbeitungsdienst to run as DOM01\SP_Services...
 - Starting local Analytics Data Processing Service instance...
 - Web Analytics Service Application already provisioned.
--------------------------------------------------------------
--------------------------------------------------------------
 - Provisioning Secure Store Service Application...
 - Secure Store Service Application already provisioned.
 - Creating the Master Key...
 - Creating the Application Key...
 - Done creating/configuring Secure Store Service Application.
--------------------------------------------------------------
--------------------------------------------------------------
 - Applying service account dom01\SP_Services to service SPSearch4...
 - Done.
--------------------------------------------------------------
--------------------------------------------------------------
 - Applying service account dom01\SP_Services to service SPTraceV4...
 - Adding dom01\SP_Services to local Performance Monitor Users group...
 - dom01\SP_Services is already a member of Performance Monitor Users.
 - Adding dom01\SP_Services to local Performance Log Users group...
 - dom01\SP_Services is already a member of Performance Log Users.
 - Updating service account...
 - Restarting service SPTraceV4...
 - Done.
--------------------------------------------------------------
--------------------------------------------------------------
 - Provisioning Enterprise Search...
 - Configuring search service...Done.
 - Setting default index location on search service instance...Done.
 - Enterprise search service application already exists, skipping creation.
--------------------------------------------------------------
 - Script halted!


Exception             : System.Management.Automation.RuntimeException: Cannot i
                        ndex into a null array.
                           at System.Management.Automation.ArrayReferenceNode.G
                        etValue(Object target, Object index, ExecutionContext c
                        ontext)
                           at System.Management.Automation.ArrayReferenceNode.E
                        xecute(Array input, Pipe outputPipe, ExecutionContext c
                        ontext)
                           at System.Management.Automation.ExpressionNode.Execu
                        te(Array input, Pipe outputPipe, ExecutionContext conte
                        xt)
                           at System.Management.Automation.ParseTreeNode.Execut
                        e(Array input, Pipe outputPipe, ArrayList& resultList,
                        ExecutionContext context)
                           at System.Management.Automation.StatementListNode.Ex
                        ecuteStatement(ParseTreeNode statement, Array input, Pi
                        pe outputPipe, ArrayList& resultList, ExecutionContext
                        context)
TargetObject          : URL
CategoryInfo          : InvalidOperation: (URL:String) [Where-Object], RuntimeE
                        xception
FullyQualifiedErrorId : NullArray,Microsoft.PowerShell.Commands.WhereObjectComm
                        and
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {1, 1}
PSMessageDetails      :

 

-----------------------------------
| Automated SP2010 install script |
| Started on: 31.10.2012 15:13:50 |
| Aborted:    31.10.2012 15:16:09 |
-----------------------------------
Press any key to exit...
PS C:\Windows\system32>

Any idea would be appreciate....

Regards

Martin

Nov 1, 2012 at 12:32 PM

Martin,

It seems like you possible have a problem with your Search, BDC, or Office Web Apps configuration. Could you post your AutoSPInstallerInput.xml file?

Nov 1, 2012 at 12:35 PM

Wahidsaleemi,

thanks for taking care. I think I have solved the issue by myself this morning. I placed the SharePoint files in the "SP" Directory instead of "SP\SharePoint". After changing this, things are wirkong well...

Sorry for not posting this earlier, but I am heavily working on a Major deployment Scenario....

Kind regards

Martin

Aug 8, 2014 at 7:33 PM
Hello every body,
trying to use AutoSPInstaller i got this error belonne

Some one to help me

Please!!!!

  • Provisioning Enterprise Search...
    • Configuring search service...Done.
    • Fixing registry permissions for Search Host Controller Service...Done.
    • Checking Search Service Instance...Already Online.
    • Checking Search Query and Site Settings Service Instance...Already Online.
    • Checking Search Service Application...Already exists.
    • Setting content access account for Search Service Application...
    • Cloning the active search topology...
    • Checking admin component...Already exists on this server.
    • Admin component(s) already exist(s) in the farm.
    • Checking content processing component...Already exists on this server.
    • Content processing component(s) already exist(s) in the farm.
    • Checking analytics processing component...Already exists on this server.
    • Analytics processing component(s) already exist(s) in the farm.
    • Checking crawl component...Already exists on this server.
    • Crawl component(s) already exist(s) in the farm.
    • Checking index component...Already exists on this server.
    • Index component(s) already exist(s) in the farm.
    • Checking query processing component...Already exists on this server.
    • Query component(s) already exist(s) in the farm.
    • Deleting unneeded cloned topology...
    • Checking search service application proxy...Already exists.

- Checking for stuck Search Host Controller Service (known issue)...

  • Script halted!
Exception : System.Management.Automation.RuntimeException: Indexation impossible dans un tableau Null.
                       à System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
                    funcContext, Exception exception)
                       à System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
                    frame)
                       à
                    System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                    frame)
                       à
                    System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                    frame)
                       à System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
                       à System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
                       à System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope,
                    ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object
                    scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
                       à System.Management.Automation.ScriptBlock.<>c__DisplayClass4.<InvokeWithPipe>b__2()
                       à System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThrea
                    dCheck(Action action)
                       à System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope,
                    ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object
                    scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
                       à Microsoft.PowerShell.Commands.WhereObjectCommand.ProcessRecord()
                       à System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject :
CategoryInfo : InvalidOperation : (:) [Where-Object], RuntimeException
FullyQualifiedErrorId : NullArray,Microsoft.PowerShell.Commands.WhereObjectCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : à <ScriptBlock>, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1 : ligne 7180
                    à AddResourcesLink, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1 : ligne 7180
                    à <ScriptBlock>, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1 : ligne 4802
                    à CreateEnterpriseSearchServiceApp, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1 :
                    ligne 4467
                    à Setup-Services, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerMain.ps1 : ligne 222
                    à <ScriptBlock>, C:\Temp\SP\AutoSPInstaller\AutoSPInstallerMain.ps1 : ligne 404
                    à <ScriptBlock>, <Aucun fichier> : ligne 1
PipelineIterationInfo : {}

PSMessageDetails :

| Automated SP2013 install script |
| Started on: 08/08/2014 20:55:12 |

| Aborted: 08/08/2014 21:08:44 |

Aug 8, 2014 at 8:14 PM
This looks to be an issue with ASPI and your language.

This is the line that fails:
$item = $centraladmin.RootWeb.Lists["Resources"].Items | Where { $_["URL"] -match ".*, $title" }
ASPI is expecting a List with the Title "Resources" and its not able to find it.. What language of SharePoint are you installing?

If you need to solve this quickly you can comment out all of the code in "Function AddResourcesLink" as all this does is add some quick links to Search and User Profile Service. It's not something that's required.
Aug 8, 2014 at 10:59 PM
Thank you IvanJosipovic,
I use French version.
Is there a way to solve this without comment Function AddResourcesLink?

Thank you !!!
Aug 9, 2014 at 2:27 AM
Hello very thank you mrV IvanJosipovic,
Commented function AddResourcesLink every thing work.
But what is the consequences on my Farm?
Aug 9, 2014 at 3:30 AM
There is no functional impact on your farm. All what you will be missing is 2 shortcuts to access User Profile Service application and Search Service application from the central administration home page.
Aug 10, 2014 at 10:32 PM
OK. thank very much.
I have an other problem with user profil service.
User profile Synchronization service don't start using the script.
What is the problem? is ther some prerequist that i need to configure to be work?

thank you for your help
Feb 16, 2015 at 6:41 AM
Hallo all

Thank you for the tipp! I had the same problem. It crashed everytime at "Provisioning Search" - "Searching for stuck Search Host controller Service".
Then I found this link and added a Tray-Catch to the function AddResourcesLink:
# ====================================================================================
Function AddResourcesLink([string]$title,[string]$url)
{
    $centraladminapp = Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication}
    $centraladminurl = $centraladminapp.Url
    $centraladmin = (Get-SPSite $centraladminurl)

    Try
    {
        $item = $centraladmin.RootWeb.Lists["Resources"].Items | Where { $_["URL"] -match ".*, $title" }
        If ($item -eq $null )
        {
            $item = $centraladmin.RootWeb.Lists["Resources"].Items.Add();
        }

        $url = $centraladminurl + $url + ", $title";
        $item["URL"] = $url;
        $item.Update();
    }
    Catch
    {
        # Modified by vii 2015-02-13
        Write-Host -ForegroundColor Yellow " Error in Function AddResourcesLink: param title: ($title), param url: ($url)"
    }
}
Know I get the following output:
  - Checking for stuck Search Host Controller Service (known issue)...
 Error in Function AddResourcesLink: param title: (Search Service Application), param url: (searchadministration.aspx?appid=a08e8fd7-b8d5-469e-84e2-7a136b4a0b11)
regards

Vii