-
Notifications
You must be signed in to change notification settings - Fork 62
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 Enterprise 11.1: Portal federation failed with invalid token #464
Comments
Hi @Biboba, Is IWA enabled on the portal WA? Also, does it work if you change the following three attributes to use the local portal hostname, port 7443, and arcgis context? For example:
Thanks, |
Hi @cameronkroeker, Thanks for your reply.
Can you reproduce the issue on your side if webadaptor context is specified ? Thanks |
Thanks @cameronkroeker for the reply. I wonder if it is rather not a WebAdaptor for IIS bug. Can you eventually reproduce on a Java one ? Please let me know if I can help. Thanks |
I am still not sure why this doesn't work in 11.1 but works in 11.0 and below, however, below is another workaround (originally suggested by @dimesv!) that can be used, and will be the fix that will be included in the next release of the module: After line 137 arcgis-powershell-dsc/Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1 Line 137 in 8621f7a
add the following snippet: if($PortalPort -eq 443){
$Referer = "https://$($PortalFQDN)/$PortalContext"
} Then after line 337 arcgis-powershell-dsc/Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1 Line 337 in 8621f7a
add the following snippet: if($PortalPort -eq 443){
$Referer = "https://$($PortalFQDN)/$PortalContext"
} Thanks, |
Hi @cameronkroeker, Thanks for the reply and the fix. Thanks ! |
Hi @Biboba, I haven't had a chance to test this behavior with the Java Web Adaptor, however in my original effort I was able to replicate it outside of the PowerShell DSC ArcGIS Module via PostMan. I've reported the issue and it is being investigated. Thanks, |
Hi @Biboba, I was able to confirm this is a bug specific to the IIS 11.1 Web Adaptor, which will be addressed in an upcoming patch. Once the patch goes live I will post it here. Thanks, |
Hi @cameronkroeker, Thanks for the update and the great follow up! Thanks, |
Hi @cameronkroeker, I deployed the patch released fixing this issue: Unfortunately, it keeps being reinstalled whenever the configuration is run:
Though it seems, this time the patch has proper metadata: Could it be an "arcgis-powershell-dsc" issue this time ? Thanks, Nicolas |
Hi @Biboba, This is happening because the QFE_ID within the Windows registry does not match the QFE_ID extracted from the patch (.msp) file or the json website: DSC uses these values to determine if the patch needs to be installed or not. If they match then install is skipped. I have reported this to the patch team. Thanks, |
Hi @cameronkroeker, Thanks for quick reply and for the report to the patch team: much appreciated. Thanks ! |
I've tried to edit the powershell module, installed to , with this fix - however, nothing ever changes. I even add some Write-Verbose statements, but they never output. Is the file to edit the one in I'm not really versed in developing powershell modules so I'm not sure how to go about making this change or running a version from the repo. |
Hey @mjperez-usgs, that change will need to be made to all of the machines (including the orchestration machine) participating in the deployment. Ensure the change is made to all of the machines, close out all PowerShell windows, re-open PowerShell as an Administrator and retry the Invoke-ArcGISConfiguration command again. |
Is there any timeline on when this will be fixed in a release? While this is a simple fix to do by hand, when put into an automatically scaling setup it is a significant amount of additional work to add. |
Yes, the fix will be included in the next release of the ArcGIS Module, v4.2.0, which is set to be released alongside ArcGIS Enterprise 11.2. Thanks, |
This issue has been addressed in release v4.2.0: https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v4.2.0 |
Community Note
Module Version
Affected Resource(s)
Configuration Files
GisPortalAGSDeployment_anonymous.txt
Expected Behavior
Testing if ArcGIS Server is federated or not should work.
Actual Behavior
Testing if ArcGIS Server is federated fails with the following error:
Steps to Reproduce
Run the attached configuration to federate the ArcGIS Server.
Important Factoids
In ArcGIS_Federation.psm1:
instead use:
and it works.
Can you reproduce on your side ?
Thanks !
References
The text was updated successfully, but these errors were encountered: