Closed gpgis closed 4 years ago
@scma-esrich sounds like your problem today....
@scma-esrich sounds like your problem today....
That's correct. As this issue is not restricted to upgrades, I created a more generic issue here - https://github.com/Esri/arcgis-powershell-dsc/issues/288.
I'm the esri Canada tech support helping @gpgis with this issue.
We found that the the error "Undefined property LicensePassword" comes from the line "LicensePassword = $Node.ServerLicensePassword"
in the file "
Commenting out that line solved the issue.
It looks like a bug: $Node.ServerLicensePassword is an optional variable according to the wiki and was not used in the JSON (see issue details). But it is seen as a required variable.
@xavierjunod thanks for helping out. We will try to fix this issue in the upcoming release.
@gpgis @scma-esrich we have included a fix for this in release v3.1.1:
https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v3.1.1
Closing the issue but if it's still being encounerted with v3.1.1 please feel free to reopen.
Trace-DSCJob : 7/8/2022 7:31:59 PM: Filename: Error: Unrecognized configuration path 'MACHINE/WEBROOT/APPHOST/server' At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\3.3.2\ArcGIS.psm1:261 char:5
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob
Trace-DSCJob : 7/8/2022 7:31:59 PM: PowerShell DSC resource ArcGIS_Install failed to execute Set-TargetResource functionality with error message: Failed to Install ServerWebAdaptor At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\3.3.2\ArcGIS.psm1:261 char:5
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob
Trace-DSCJob : 7/8/2022 7:31:59 PM: The SendConfigurationApply function did not succeed. At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\3.3.2\ArcGIS.psm1:261 char:5
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob
Still the same issue in new version, Please check
Community Note
Module Version
Affected Resource(s)
Configuration Files
Expected Behavior
It should have upgraded the server component and its web adaptor before moving on to the ArcGIS_Data stores as per the config.
Actual Behavior
Error is thrown: `Dot Sourcing the Configuration:- ServerUpgrade Write-NodeMOFFile : Invalid MOF definition for node '192.168.10.21': Exception calling "ValidateInstanceText" with "1" argument(s): "Undefined property LicensePassword At line:61, char:2 Buffer: = "ServerUpgrade"; };^ insta " At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:2369 char:21
Steps to Reproduce
Run this command: Invoke-ArcGISConfiguration -ConfigurationParametersFile "E:\ArcGISEnterpriseDeployment\10.8.1\configs\Dev_ArcGISEnterpriseBaseDeployment.json" -Mode Upgrade -Credential admuser -DebugSwitch
Important Factoids
Our default website was renamed to "Dev ArcGIS Enterprise" at version 10.7.0 and 10.7.1. I reverted it back to "Default Web Site" after we ran into the error shown below when attempting to upgrade the portal & web adaptor. "Unrecognized configuration path 'MACHINE/WEBROOT/APPHOST/Default Web Site/portal"
References
NONE