Closed skunz42 closed 2 weeks ago
@skunz42 Great find. This will be addressed in the next release of the ArcGIS Module. For now, here is a workaround:
To after Line 198: https://github.com/Esri/arcgis-powershell-dsc/blob/4e1ea910cf3c237c378dfcfc1130a296de3c4bcb/Modules/ArcGIS/Configurations-OnPrem/ArcGISNotebookServer.ps1#L197-L201
For example:
Node $AllNodes.NodeName
{
$Join = if($Node.NodeName -ine $PrimaryServerMachine) { $true } else { $false }
if($Node.Thumbprint){
LocalConfigurationManager
{
Thanks, Cameron K.
@cameronkroeker I ran into this with ArcGIS Mission Server 11.1 as well. Single machine deployment, on premise, version 4.3.0. DSC was trying to join a site that doesn't exist rather than creating a new site. Made the same change in ArcGISMisionServer.ps1
. Moved line 129 to the Node $AllNodes.NodeName
section on line 186 and that resolved my issue.
@cameronkroeker I ran into this with ArcGIS Mission Server 11.1 as well. Single machine deployment, on premise, version 4.3.0. DSC was trying to join a site that doesn't exist rather than creating a new site. Made the same change in
ArcGISMisionServer.ps1
. Moved line 129 to theNode $AllNodes.NodeName
section on line 186 and that resolved my issue.
Thanks @tigerwoulds. This will be addressed for both Notebook Server and Mission Server in the next release (coming soon).
This has been fixed for both Notebook Server and Mission Server in DSC ArcGIS Module v4.4.0:
https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v4.4.0
Community Note
Module Version
Affected Resource(s)
Configuration Files
Expected Behavior
When performing a single machine install of Notebook Server, the script will run the
CreateSite
command to generate the server site.Actual Behavior
When performing a single machine fresh install of Notebook Server, a
JoinSite
operation is attempted instead ofCreateSite
, causing the script to fail as there is no site to join.Steps to Reproduce
Run
InstallLicenseConfigure
using the example above. The Portal/Hosting server reside on Machine A (can provide config if needed), the Notebook Server on Machine B, and the Web Adaptors on Machine C.Important Factoids
I believe the problem line of code is here: https://github.com/Esri/arcgis-powershell-dsc/blob/4e1ea910cf3c237c378dfcfc1130a296de3c4bcb/Modules/ArcGIS/Configurations-OnPrem/ArcGISNotebookServer.ps1#L138
In my testing, the value of
$Node.NodeName
was$null
. Additionally, this appears to be the first reference to the variable$Node
in the file, which leads me to believe that$Node.NodeName
will always be$null
. If I set$Join
to$false
, the script continues on and everything behaves as expected.