brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
170 stars 80 forks source link

AutoSPInstaller: Error: Custom file location is not accessible #71

Closed danone1985 closed 2 years ago

danone1985 commented 3 years ago

hello,

I'm installing a SharePoint 2016 in automated way using autospinstaller.

Scripts is blocked with the following error, all the time (from what I understand, something related to a prerquisite missing or not found).

Does anyone have any idea ?


Windows PowerShell transcript start Start time: 20201112092651 Username: CONTOSO\admin RunAs User: CONTOSO\admin Machine: APP (Microsoft Windows NT 6.3.9600.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ExecutionPolicy Bypass C:\SP\Automation\AutoSPInstallerMain.ps1 C:\SP\Automation\AutoSPInstallerInput-APP.xml Process ID: 3868


Transcript started, output file is C:\Users\admin.CONTOSO\Desktop\AutoSPInstaller-2020-11-12_9-26.log

| Automated SP2016 install script | | Started on: 11/12/2020 9:26:51 AM |

PS>TerminatingError(Write-Warning): "Cannot bind argument to parameter 'Message' because it is null."

TerminatingError(Write-Warning): "Cannot bind argument to parameter 'Message' because it is null." TerminatingError(Write-Warning): "Cannot bind argument to parameter 'Message' because it is null."

  • Script halted!

Exception : System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Message' because it is null. at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) TargetObject : CategoryInfo : InvalidData: (:) [Write-Warning], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.WriteWarningComman d ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at InstallPrerequisites, C:\SP\Automation\AutoSPInstallerModule.psm1: line 911 at Start-Install, C:\SP\Automation\AutoSPInstallerMain.ps1: line 195 at , C:\SP\Automation\AutoSPInstallerMain.ps1: line 409 at , : line 1 PipelineIterationInfo : {} PSMessageDetails :


| Automated SP2016 install script | | Started on: 11/12/2020 9:26:51 AM | | Aborted: 11/12/2020 9:27:05 AM |

PS C:\SP\Automation> 0 0

thank you.

brianlala commented 3 years ago

Could this be related to this?

danone1985 commented 3 years ago

Could this be related to this?

not sure, prerequisites seem to be complete. If i do an online install, it passes without problems

image

erichager commented 3 years ago

@brianlala I'm having the exact same issue. Prerequisites are complete. Servers don't have internet access so I had to do an offline install of the prereqs but the autospinstaller log file shows that it passes the prereq install and then fails with the same error @danone1985 is reporting. Was a solution ever found for this issue?

Thanks, Eric

trevevs commented 3 years ago

also getting this error installing 2013 SP1 onto 2012R2. I wonder if autoSP was ever tested fully for offline installation? It needs to be fixed. This was helpful https://azurecloudai.blog/2012/12/26/install-and-download-sharepoint-2013-prerequisites-offline-manually/ Make sure you download all needed file into the 2013\SharePoint\PrerequisiteInstallerFiles\ folder. The script should really check for the presence of prereq files, it needs better error trapping.

Even when all files are present, the prereq tool still trying to download them...

WARNING: 2021-03-25 08:15:50 - Error: This file does not exist WARNING: 2021-03-25 08:16:39 - Error: InternetOpenUrl failed (0X80072EFD=-2147012867) WARNING: 2021-03-25 08:16:39 - Error: Download failed (0) WARNING: 2021-03-25 08:16:39 - Error: The tool was unable to download Microsoft Sync Framework Runtime v1.0 SP1 (x64). Please check your Internet connection and try again. WARNING: 2021-03-25 08:20:09 - Error: InternetOpenUrl failed (0X80072EFD=-2147012867) WARNING: 2021-03-25 08:20:09 - Error: Download failed (0) WARNING: 2021-03-25 08:20:09 - Error: The tool was unable to download Windows Server AppFabric. Please check your Internet connection and try again. WARNING: 2021-03-25 08:20:09 - Last return code (-1)

trevevs commented 3 years ago

also had hellish time installing MicrosoftIdentityExtensions-64.. turns out my VM only had 2 CPUs- bumped it up to 4 CPUs and it suddenly started working- had to install all pre-reqs manually. This AutoSP script needs fixing :-)

AstrProp commented 2 years ago

также пришлось адское время на установку MicrosoftIdentityExtensions-64.. Оказывается, у моей виртуальной машины было только 2 процессора - доработал до 4 процессоров, и он внезапно начал работать - пришлось устанавливать все предварительные инструкции вручную. Этот скрипт AutoSP нуждается в исправлении :-)

У меня 4 ядра и это не помогло ( установка Identity в ручную тоже не помогла.

oshit commented 2 years ago

I found out Prerequisite Installer is looking for the file WcfDataServices.exe, so I rename the WcfDataServices56.exe to WcfDataServices.exe

brianlala commented 2 years ago

If you use AutoSPSourceBuilder to prep your source and prereqs it should help avoid all of this.

DiHendriks commented 11 months ago

This case is closed but it is not the solution. Building it with the AutoSPSourceBuilder is not the solution and the same error occurs. Even the version is not update ..

brianlala commented 11 months ago

If you're looking for community help for this fairly old problem it would be good to provide more information.