Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
118 stars 62 forks source link

Portal installed but site note created #176

Closed jhevenor closed 5 years ago

jhevenor commented 5 years ago

I'm updating my 10.6 templates to 10.7 using the new ArcGIS 2.0 powershell module. My template follows the 3 machine example.

The install appears to complete successfully, but I don't get URLs listed at completion like the examples show. When I load localhost:6443/ArcGIS on the portal machine I see that the portal isn't created. When I load localhost 7443/ArcGIS on the server machine I see that the server site isn't created. I'll include some pics and a log.

My templates are mostly just my 10.6 templates with version and install media paths updated. What am I missing?

portal_not_created server_not_created

Log ArcGISInstall-5-27-2019-12-28-43-PM-Verbose.txt:

Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
An LCM method call arrived from computer TEST-DEV-WEB0 with user sid S-1-5-21-1913768633-3977125795-686675056-1607.
[TEST-DEV-WEB0]: LCM:  [ Start  Set      ]
[TEST-DEV-WEB0]: LCM:  [ Start  Resource ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]
[TEST-DEV-WEB0]: LCM:  [ Start  Test     ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Installed Version
[TEST-DEV-WEB0]: LCM:  [ End    Test     ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]  in 0.3440 seconds.
[TEST-DEV-WEB0]: LCM:  [ Start  Set      ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Self Extracting Installer
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] 7Zip not found at C:\Program Files\7-Zip\7z.exe
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Installing 7Zip
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] GET https://osdn.net/frs/redir.php?m=pumath&f=sevenzip/64449/7z938-x64.msi with 0-byte payload
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] received 1513472-byte response of content type
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] msiexec /i C:\windows\TEMP\6A640642-4D74-4A2F-8350-92B6371378C5\7Zip.msi /qn  INSTALLDIR="C:\Program Files\7-Zip"
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Extracting \\TEST-DEV-ds\installs\Portal_for_ArcGIS_Windows_107_167632.exe to C:\windows\TEMP\6A640642-4D74-4A2F-8350-92B6371378C5
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] "C:\Program Files\7-Zip\7z.exe" x -y \\TEST-DEV-ds\installs\Portal_for_ArcGIS_Windows_107_167632.exe -oC:\windows\TEMP\6A640642-4D74-4A2F-8350-92B6371378C5
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Done Extracting. Waiting 15 seconds to allow the extractor to close files
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Executing C:\windows\TEMP\6A640642-4D74-4A2F-8350-92B6371378C5\PortalForArcGIS\Setup.exe with arguments /qn INSTALLDIR="C:\ArcGIS\Portal" CONTENTDIR="C:\portalforarcgis\content"
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] C:\windows\TEMP\6A640642-4D74-4A2F-8350-92B6371378C5\PortalForArcGIS\Setup.exe /qn INSTALLDIR="C:\ArcGIS\Portal" CONTENTDIR="C:\portalforarcgis\content"
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Waiting just in case for Portal to finish unpacking any additional dependecies - 120 Seconds
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Validating the Portal Installation
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] Portal installation was successful!
[TEST-DEV-WEB0]:                            [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0] In Set-Resource for Portal
[TEST-DEV-WEB0]: LCM:  [ End    Set      ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]  in 2479.1680 seconds.
[TEST-DEV-WEB0]: LCM:  [ End    Resource ]  [[ArcGIS_Install]PortalInstallTEST-DEV-WEB0]
[TEST-DEV-WEB0]: LCM:  [ Start  Resource ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]
[TEST-DEV-WEB0]: LCM:  [ Start  Test     ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]
[TEST-DEV-WEB0]: LCM:  [ End    Test     ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]  in 0.4640 seconds.
[TEST-DEV-WEB0]: LCM:  [ Start  Set      ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ManagementConsole
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ManagementScriptingTools
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ManagementService
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ISAPIExtensions
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ISAPIFilter
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-RequestFiltering
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-WindowsAuthentication
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-StaticContent
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-ASPNET45
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Installing Windows Feature: IIS-NetFxExtensibility45
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Self Extracting Installer
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Extracting \\TEST-DEV-ds\installs\Web_Adaptor_for_Microsoft_IIS_107_167634.exe to C:\windows\TEMP\WebAdaptor\portal
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] "C:\Program Files\7-Zip\7z.exe" x -y \\TEST-DEV-ds\installs\Web_Adaptor_for_Microsoft_IIS_107_167634.exe -oC:\windows\TEMP\WebAdaptor\portal
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Done Extracting. Waiting 15 seconds to allow the extractor to close files
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Executing C:\windows\TEMP\WebAdaptor\portal\WebAdaptorIIS\Setup.exe with arguments /qn VDIRNAME=portal WEBSITE_ID=1
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] C:\windows\TEMP\WebAdaptor\portal\WebAdaptorIIS\Setup.exe /qn VDIRNAME=portal WEBSITE_ID=1
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] Giving Permissions to Folders for IIS_IUSRS
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal] In Set-Resource for
[TEST-DEV-WEB0]: LCM:  [ End    Set      ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]  in 137.3790 seconds.
[TEST-DEV-WEB0]: LCM:  [ End    Resource ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallPortal]
[TEST-DEV-WEB0]: LCM:  [ Start  Resource ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]
[TEST-DEV-WEB0]: LCM:  [ Start  Test     ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]
[TEST-DEV-WEB0]: LCM:  [ End    Test     ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]  in 0.4070 seconds.
[TEST-DEV-WEB0]: LCM:  [ Start  Set      ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ManagementConsole
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ManagementScriptingTools
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ManagementService
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ISAPIExtensions
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ISAPIFilter
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-RequestFiltering
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-WindowsAuthentication
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-StaticContent
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-ASPNET45
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Installing Windows Feature: IIS-NetFxExtensibility45
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Target Image Version 10.0.14393.2782
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Self Extracting Installer
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Extracting \\TEST-DEV-ds\installs\Web_Adaptor_for_Microsoft_IIS_107_167634.exe to C:\windows\TEMP\WebAdaptor\server
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] "C:\Program Files\7-Zip\7z.exe" x -y \\TEST-DEV-ds\installs\Web_Adaptor_for_Microsoft_IIS_107_167634.exe -oC:\windows\TEMP\WebAdaptor\server
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Done Extracting. Waiting 15 seconds to allow the extractor to close files
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Executing C:\windows\TEMP\WebAdaptor\server\WebAdaptorIIS\Setup.exe with arguments /qn VDIRNAME=server WEBSITE_ID=1
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] C:\windows\TEMP\WebAdaptor\server\WebAdaptorIIS\Setup.exe /qn VDIRNAME=server WEBSITE_ID=1
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] Giving Permissions to Folders for IIS_IUSRS
[TEST-DEV-WEB0]:                            [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer] In Set-Resource for
[TEST-DEV-WEB0]: LCM:  [ End    Set      ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]  in 68.7120 seconds.
[TEST-DEV-WEB0]: LCM:  [ End    Resource ]  [[ArcGIS_WebAdaptorInstall]WebAdaptorInstallServer]
[TEST-DEV-WEB0]: LCM:  [ End    Set      ]
[TEST-DEV-WEB0]: LCM:  [ End    Set      ]    in  2686.9540 seconds.
Operation 'Invoke CimMethod' complete.
cameronkroeker commented 5 years ago

@jhevenor

Looks like the software was only installed, not licensed or configured. I recommend passing -Mode InstallLicenseConfigure option in the Configure-ArcGIS PowerShell DSC cmdlet. Below are all the options:

Configure-ArcGIS -ConfigurationParametersFile [[Path to Configuration JSON File]] -Mode [Install | InstallLicense | InstallLicenseConfigure | Uninstall | Upgrade] -Credential [Config RunAs - Optional]

-Mode Install will only run the setups -Mode InstallLicense will run the setups and authorize Portal/Server -Mode InstallLicenseConfigure will run the setups, authorize, and configure (create portal/server sites register Data Store, configure WA, federate, etc)

jhevenor commented 5 years ago

Thanks, that looks like the obvious solution to my problem. Are these options new at 10.7?

cameronkroeker commented 5 years ago

Thanks, that looks like the obvious solution to my problem. Are these options new at 10.7?

Yes, I believe InstallLicense and InstallLicenseConfigure were introduced in v2.0.0. Previously there were only 3 options: -Mode [Install | Uninstall | Upgrade].