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
121 stars 62 forks source link

Upgrade 11.1 to 11.3 - Portal Upgrade Install Step Failed | Error 28809 - Could not validate the credentials #583

Open tigerwoulds opened 6 days ago

tigerwoulds commented 6 days ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

{
    "AllNodes": [
        {
            "NodeName": "[REDACTED]",
            "Role": [
                "Portal"
            ]   
        },
        {
            "NodeName": "[REDACTED]",
            "Role": [
                "Server"
            ]
        },
        {
            "NodeName": "[REDACTED]",
            "DataStoreTypes": [
                "Relational",
        "Tilecache"
            ],
            "Role": [
                "DataStore"
            ]
        },
        {
            "NodeName": "[REDACTED]",
            "DataStoreTypes": [
                "SpatioTemporal"   
            ],
            "Role": [
                "DataStore"
            ]
        },
        {
            "NodeName": "[REDACTED]",
            "Role": [
                "WebAdaptor"
            ],
            "WebAdaptorConfig":[
                {
                    "Role": "Portal",
                    "Context": "portal",
                    "AdminAccessEnabled": true,
                    "WebSiteId": 1
                },
                {
                    "Role": "Server",
                    "Context": "server",
                    "AdminAccessEnabled": true,
                    "WebSiteId": 1
                }
            ],
            "SslCertificates": [
        {
            "Path": "[REDACTED]",
            "Password": "[REDACTED]",
            "CNameFQDN": "[REDACTED]",
            "Target": [
                "WebAdaptor"
            ]
        }
            ]   
        }
    ],
    "ConfigData": {
        "Version": "11.3",
        "OldVersion": "11.1",
        "ServerContext": "server",
        "PortalContext": "portal",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "Password": "[REDACTED]",
                "UserName": "domain\\service_acct",
                "IsDomainAccount": true,
                "IsMSAAccount": false
            },
            "AGOCredential":{
                "UserName": "[REDACTED]",
                "Password": "[REDACTED]"
             }
        },
        "DownloadSetups": true,
        "DownloadPatches": false,
        "Server": {
            "LicenseFilePath": "[REDACTED]",
            "Installer": {
                "Path": "D:\\software\\ArcGIS_Server_Windows_113_190188.exe",
                "VolumePaths": [
                   "D:\\software\\ArcGIS_Server_Windows_113_190188.exe.001"
                ],
                "InstallDir": "D:\\ArcGIS\\Server",
                "EnableArcMapRuntime": false,
                "EnableDotnetSupport": false
            },
            "ServerDirectoriesRootLocation": "D:\\arcgisserver\\directories",
            "ConfigStoreLocation": "D:\\arcgisserver\\arcgisserver\\config-store",
            "PrimarySiteAdmin": {
                "UserName": "[REDACTED]",
                "Password": "[REDACTED]"
            },
        "ExternalLoadBalancer": "[REDACTED]",
            "InternalLoadBalancer": "[REDACTED]"
        },
        "Portal": {
            "LicenseFilePath": "[REDACTED]",
            "PortalLicenseUserTypeId": "creatorUT",
            "Installer": {
                "Path": "D:\\software\\Portal_for_ArcGIS_Windows_113_189790.exe",
                "VolumePaths": [
                   "D:\\software\\Portal_for_ArcGIS_Windows_113_189790.exe.001"
                ],
                "InstallDir": "D:\\ArcGIS\\Portal",
                "WebStylesPath": "",
                "ContentDir": "D:\\arcgisportal"
            },
            "ContentDirectoryLocation":"D:\\arcgisportal\\content",
            "PortalAdministrator": {
                "UserName": "[REDACTED]",
                "Email": "[REDACTED]",
                "Password": "[REDACTED]",
                "SecurityQuestionIndex": 1,
                "SecurityAnswer": "[REDACTED]"
            },
        "ExternalLoadBalancer": "[REDACTED]",
            "InternalLoadBalancer": "[REDACTED]"
        },
        "DataStore": {
            "ContentDirectoryLocation": "D:\\arcgisdatastore",
            "EnableFailoverOnPrimaryStop": false,
            "Installer": {
                "Path": "D:\\software\\ArcGIS_DataStore_Windows_113_190233.exe"
            }
        },
        "WebAdaptor": {
            "AdminAccessEnabled": true,
            "Installer": {
                "Path": "D:\\software\\ArcGIS_Web_Adaptor_for_Microsoft_IIS_113_190234.exe",
        "DotnetHostingBundlePath": "D:\\software\\dotnet-hosting-6.0.33-win.exe",
        "WebDeployPath": "D:\\software\\WebDeploy_amd64_en-US.msi"
            }
        }
    }
}

Expected Behavior

Portal should upgrade from 11.1 to 11.3

Actual Behavior

Error encountered during Portal upgrade

Trace-DSCJob : 11/22/2024 7:32:29 PM: The SendConfigurationApply function did not succeed.
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\4.4.0\ArcGIS.psm1:263 char:5
+     Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob

Logs Directory: C:\Windows\system32\Logs
Finished DSC Job:- PortalUpgrade. Time Taken - 00:02:30.4714472
PortalUpgrade - Failed
Portal Upgrade Install Step Failed
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\4.4.0\ArcGIS.psm1:2840 char:9
+         throw "Portal Upgrade Install Step Failed"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Portal Upgrade Install Step Failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Portal Upgrade Install Step Failed

Windows event logs on the Portal host return Error 28809 - Could not validate the credentials for account domain\service_acct. Confirm the credentials are correct and attempt the installation again. The setup will now exit.

This is an Active Directory account on our domain. The account is currently used for our 11.1 deployment. In fact, I did a fresh install of 11.1 today using the same AD account. The password does not contain any special characters.

Steps to Reproduce

Important Factoids

References

https://github.com/Esri/arcgis-powershell-dsc/issues/309

cameronkroeker commented 2 days ago

Hi @tigerwoulds,

Based on the error message it sounds like the portal setup.exe is not able to validate the windows service run as account for portal. Could you check the following items:

  1. Check to ensure the password defined for ConfigData.Credentials.ServiceAccount.Password matches the actual password. There could be perhaps an extra space in the beginning or end of the value that is difficult to spot. This can happen often when using copy/paste. For example:
"Password": "[REDACTED] ",

or

"Password": " [REDACTED]",

Validate the correct values are being passed in via Task Manager. Prior to kicking off the upgrade, on the portal node launch task manager and select the details tab. Right click the column bar and select columns to enable command line:

Screenshot 2024-11-27 at 8 32 38 AM

Then when you kick off the upgrade, monitor task manager for the portal setup.exe process to see what values are being passed in:

Screenshot 2024-11-27 at 8 35 26 AM

Thanks, Cameron K.