Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArcGIS Server: Enterprise Geodatabases: IsManaged=false Ignored by Server Manager #349

Closed
ZianAtFirstWatch opened this issue Nov 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround

Comments

@ZianAtFirstWatch
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

  • 3.2.0

Affected Resource(s)

  • ArcGIS_Server

Configuration Files

{
    "AllNodes": [{
            "NodeName": "StoutESRI2",
            "DataStoreTypes": [
                "Relational"
            ],
            "Role": [
                "DataStore",
                "Server",
                "SQLServerClient"
            ]
        }
    ],
    "ConfigData": {
        "Version": "10.7.1",
        "ServerContext": "fw_arcgisserver",
        "PortalContext": "fw_arcgisportal",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "Password": "bleep",
                "UserName": "datacenter\\esri_admin",
                "IsDomainAccount": true,
                "IsMSAAccount": false
            }
        },
        "SQLServerClient": [{
                "Name": "Microsoft ODBC Driver 17 for SQL Server",
                "InstallerPath": "C:\\PowerShell DSC Installers\\10.7.1\\msodbcsql_17.3.1.1_x64.msi",
                "ProductId": "175BC9FC-C256-4EFC-9D87-4A9AF3B47A12",
                "Arguments": "/L*V \"C:\\users\\fwla\\desktop\\odbc installation.log\" /quiet /qn IACCEPTMSODBCSQLLICENSETERMS=YES ADDLOCAL=ALL"
            }
        ],
        "Server": {
            "LicenseFilePath": "C:\\PowerShell DSC Installers\\ArcGISGISServerStandard_ArcGISServer_1100345.prvc",
            "Installer": {
                "Path": "C:\\PowerShell DSC Installers\\10.7.1\\ArcGIS_Server_Windows_1071_169677.exe",
                "InstallDir": "C:\\Program Files\\ArcGIS\\Server",
                "InstallDirPython": "C:\\Python27",
                "PatchesDir": "C:\\PowerShell DSC Installers\\AGS Updates"
            },
            "ServerDirectoriesRootLocation": "C:\\arcgisserver\\directories",
            "ConfigStoreLocation": "C:\\arcgisserver\\config-store",
            "PrimarySiteAdmin": {
                "UserName": "fwadmin2",
                "Password": "bloop"
            },
            "Databases": {
                "DatabaseServerHostName": "FW_ArcGIS_SQL_SitePrimary",
                "DatabaseName": "arcsde",
                "DatabaseType": "SQLServerDatabase",
                "DatabaseAdminUser": {
                    "UserName": "SQL_Apps",
                    "Password": "dotdotdot"
                },
                "DatabaseUser": {
                    "UserName": "SQL_Apps",
                    "Password": "dotdotdot"
                },
                "IsManaged": false,
                "EnableGeodatabase": true
            }
        },
        "DataStore": {
            "ContentDirectoryLocation": "C:\\arcgisdatastore",
            "EnableFailoverOnPrimaryStop": false,
            "Installer": {
                "Path": "C:\\PowerShell DSC Installers\\10.7.1\\ArcGIS_DataStore_Windows_1071_169689.exe",
                "InstallDir": "C:\\Program Files\\ArcGIS\\DataStore",
                "PatchesDir": "C:\\PowerShell DSC Installers\\Data Store Updates"
            }
        }
    }
}

Expected Behavior

I expected to see something like the following screenshot in AGS Server Manager:
Happy Screenshot

Though without the 2 different connection strings, as I didn't provide the PowerShell module with both logins.

Actual Behavior

The "Managed database" checkbox was checked as shown below:
Sad Screenshot

Steps to Reproduce

  1. Run:
    $credential-Get-Credential
    Invoke-ArcGISConfiguration -Mode InstallLicenseConfigure -Credential $credential
  2. Wait
  3. Login to AGS Server Manager and look and the registered data stores.

Important Factoids

  • The EGDB already exists as a SQL Server database and is already an enterprise geodatabase.
  • I edited the module's EGDB script to include the PowerShell Module's version # in $pythonscriptpath. Without the change, the script errored out because PowerShell couldn't find the 2 Python files. The problem may be reproducible without this workaround if you install the Esri DSC module without specifying a version # when calling Install-Module.

References

https://github.com/Esri/arcgis-powershell-dsc/wiki/v3.2.0-Variables-reference-page-for-JSON-configuration-files
https://github.com/Esri/arcgis-powershell-dsc/blob/50a5cf49476a7059ea417dcc67f15c76e4d41522/Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1

@cameronkroeker cameronkroeker self-assigned this Mar 4, 2022
@cameronkroeker cameronkroeker added bug Something isn't working will fix labels Mar 4, 2022
@cameronkroeker
Copy link
Contributor

cameronkroeker commented Mar 4, 2022

Hi @ZianAtFirstWatch,

Thanks for bringing this to our attention. We will look to get this addressed in a future release of the module, however for now here is a workaround you can use:

In Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1 update line 789:

to

dataStoreConnectionType = if($IsManaged){'serverOnly'}else{'shared'}

Thanks,
Cameron K.

@cameronkroeker
Copy link
Contributor

Hi @ZianAtFirstWatch,

This issue has been addressed in the latest release, v3.3.2:

https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v3.3.2

Thanks,
Cameron K.

@cameronkroeker cameronkroeker added Fixed Label for when an issue is fixed. and removed will fix labels Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround
Projects
None yet
Development

No branches or pull requests

2 participants