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
110 stars 61 forks source link

Upgrade Base Deployment from 11.2 to 11.3 #544

Closed minagim closed 1 week ago

minagim commented 1 month ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

# Copy-paste your DSC JSON configurations here - for large configs,
# please use a service like Dropbox and share a link to the ZIP file.

Expected Behavior

Looks like upgrading order matters. Can I use the Base Deployment for multi machine sample script to upgrade from 11.2 to 11.3?

Invoke-ArcGISConfiguration -ConfigurationParametersFile C:\config\BaseDeployment.json -Mode Upgrade -EnableMSILogging

Actual Behavior

Steps to Reproduce

Important Factoids

References

cameronkroeker commented 4 weeks ago

Hi @minagim you will want to use your original 11.2 json configuration file for the upgrade to 11.3. A few modifications are required:

Thanks, Cameron K.

minagim commented 1 week ago

Thanks, Cameron.
I am getting the following error while installing web adaptor for portal. Invoke-ArcGISConfiguration -ConfigurationParametersFile d:\Install\Scripts\ParksAzure_11_3_BaseDeployment-MultiMachine.json -Mode Upgrade -EnableMSILogging

Trace-DSCJob : 6/23/2024 8:10:36 PM: PowerShell DSC resource ArcGIS_Install failed to execute Set-TargetResource functionality with error message: Failed to Install WebAdaptorIIS-Portal-portal At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\ArcGIS.psm1:261 char:5

Trace-DSCJob : 6/23/2024 8:10:36 PM: The SendConfigurationApply function did not succeed. At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\ArcGIS.psm1:261 char:5

Logs Directory: C:\Windows\system32\Logs Finished DSC Job:- WebAdaptorUpgrade. Time Taken - 00:00:50.2774322 WebAdaptorUpgrade - Failed Portal WebAdaptors Upgrade Failed At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\ArcGIS.psm1:2846 char:13

The following is in the error log. 6/21/2024: PowerShell DSC resource ArcGIS_Install failed to execute Set-TargetResource functionality with error message: Failed to Install WebAdaptorIIS-Portal-portal 6/21/2024: The SendConfigurationApply function did not succeed.

BaseDeployment_11_3_MultiMachine Share.json

Can you give me some guidance on this error?

Thanks,

Mina

cameronkroeker commented 1 week ago

Hi @minagim,

Can you check the MSI log for web adaptor? When passing in -EnableMSILogging it should capture a log of the silent installation that may provide more clues on the failure. By default it gets placed in C:\Windows\Temp.

I assume all the 11.3 Prerequisites are already pre-installed because I did not see them specified in your json config. For example, Web Deploy 3.6 or 4.0, and dot net hosting bundle 8?

https://enterprise.arcgis.com/en/system-requirements/latest/windows/arcgis-web-adaptor-system-requirements.htm#ESRI_SECTION1_B79830AA8CCE4FE4AD1E0981E8BAA2D1

Screenshot 2024-06-24 at 2 07 48 PM

If not, you can have the module install them:

https://github.com/Esri/arcgis-powershell-dsc/wiki/v4.3.0-Variables-reference-page-for-JSON-configuration-files

Screenshot 2024-06-24 at 2 04 51 PM

Here is a sample of the json: https://github.com/Esri/arcgis-powershell-dsc/blob/4e1ea910cf3c237c378dfcfc1130a296de3c4bcb/SampleConfigs/v4/v4.3.0/Base%20Deployment/BaseDeployment-SingleMachine.json#L194-L197

When those attributes are omitted from the json config it's assumed they are already installed.

Thanks, Cameron K.

minagim commented 1 week ago

The ASP.NET Core Runtime was outdated and updating it resolved the issue and I was able to finish the upgrade. Thanks for the advice, Cameron. I will close the case.