Giter VIP home page Giter VIP logo

Comments (4)

cameronkroeker avatar cameronkroeker commented on August 31, 2024

Hi @jhevenor,

This a valid use case that should work. The error is indicating that both Node.Name entries in the json config were set to the same ip 10.155.1.200. However, in the json example provided above, each Node.Name is unique and looks correct.

Perhaps at some point both node names were set to 10.155.1.200 then one was updated to 10.155.1.201 but the file was not saved before the DSC run?

Let's verify the json config is up to date with each NodeName value being unique and re-run.

Thanks,
Cameron K.

from arcgis-powershell-dsc.

jhevenor avatar jhevenor commented on August 31, 2024

Hello again @cameronkroeker. You were right, I had a copy/paste that had svr1 listed twice. I adjusted the original posts error message to show what I'm getting. It's still a dup config. Even when I changed the contexts to something else (foo, fooadmin) I still see the [ArcGIS_Install]WebAdaptorIIS-Server-mapsInstall message given. I'm running these in succession and I'm wondering if there's something cached that I need to clear?

from arcgis-powershell-dsc.

cameronkroeker avatar cameronkroeker commented on August 31, 2024

Hello again @cameronkroeker. You were right, I had a copy/paste that had svr1 listed twice. I adjusted the original posts error message to show what I'm getting. It's still a dup config. Even when I changed the contexts to something else (foo, fooadmin) I still see the [ArcGIS_Install]WebAdaptorIIS-Server-mapsInstall message given. I'm running these in succession and I'm wondering if there's something cached that I need to clear?

Perhaps the LCM is using a cached MOF from it being stuck in a pending state. Let's try the following:

  • Close and launch a fresh powershell window
  • Run command Stop-DscConfiguration
  • Run command Get-DscLocalConfigurationManager to check to see what state LCM is in
  • Run command Remove-DscConfigurationDocument -Stage current,pending,previous to remove any current/pending/previous configurations
  • Run command Get-DscLocalConfigurationManager to check to see what state LCM
  • Re-run the ArcGIS DSC Module

from arcgis-powershell-dsc.

jhevenor avatar jhevenor commented on August 31, 2024

I tried this with a fresh deployment and had the same errors. Config:

{
    "AllNodes": [
        {
            "NodeName": "10.155.1.201",
            "Role": [
                "Server",
                "WebAdaptor"
            ],
            "WebAdaptorConfig":[
                {
                    "Role": "Server",
                    "ServerContext": "maps-cartes",
                    "AdminAccessEnabled": false
                },
                {
                    "Role": "Server",
                    "ServerContext": "maps-cartes-admin",
                    "AdminAccessEnabled": true
                }
            ]
        },
        {
            "NodeName": "10.155.1.202",
            "Role": [
                "WebAdaptor"
            ],
            "WebAdaptorConfig":[
                {
                    "Role": "Server",
                    "ServerContext": "maps-cartes",
                    "AdminAccessEnabled": false
                },
                {
                    "Role": "Server",
                    "ServerContext": "maps-cartes-admin",
                    "AdminAccessEnabled": true
                }
            ]
        }
    ],
    "ConfigData": {
   ...

Resulting in the same error:

Dot Sourcing the Configuration:- ArcGISInstall
ArcGIS\ArcGIS_Install : A duplicate resource identifier '[ArcGIS_Install]WebAdaptorIIS-Server-maps-cartesInstall' was 
found while processing the specification for node '10.155.1.201'. Change the name of this resource so that it is 
unique within the node specification.
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\4.2.0\Configurations-OnPrem\ArcGISInstall.ps1:480 char:29
+                             ArcGIS_Install "$($WAName)Install"
+                             ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : DuplicateResourceIdInNodeStatement,ArcGIS\ArcGIS_Install
...
# error repeats for other server

I'm going to drop this for time being but will hopefully get a chance to dig in again in a couple weeks when I finish some other things.

from arcgis-powershell-dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.