-
Notifications
You must be signed in to change notification settings - Fork 116
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
Error executing action authorize
on resource 'arcgis_enterprise_portal[Authorize Portal for ArcGIS]'
#295
Comments
Hi @mayorvlf, Could you try the following request in a web browser (on the portal node) to see what is returned?
We should see a response similar to:
Thanks, |
Hi @cameronkroeker I followed your instructions and this is what I get in return from the browser: |
Hi @mayorvlf, This means the portal site already exists which means you'll either need to pass in a token, or login with a portal administrator account then submit the request. Was the portal site previously created manually or on a different chef run? Thanks, |
Hi Cameron, |
Hi @mayorvlf, May I ask what steps were taken to resolve the issue? Thanks, |
Hi Cameron, |
Portal for ArcGIS 10.9 uses user type licenses, which means the authorization file (*.json) is passed through the portal site, and not the Authorization tool. In the cookbooks we do a check to see if its user type licensing or if the authorization needs to be handled by the tool: arcgis-cookbook/cookbooks/arcgis-enterprise/providers/portal.rb Lines 244 to 256 in f973da6
If arcgis-cookbook/cookbooks/arcgis-enterprise/recipes/portal.rb Lines 64 to 68 in f973da6
But if arcgis-cookbook/cookbooks/arcgis-enterprise/providers/portal.rb Lines 275 to 277 in f973da6
This is why I was curious to see what was being returned. For some reason in your case its going into the else statement and trying to authorize the portal license (*.json) via the tool when it should actually be passed into the create site action. Thanks, |
Similar issue: |
cinc-stacktrace.out.txt
tal']['authorization_file']
56: authorization_file_version node['arcgis']['portal']['authorization_file_version']
57: user_license_type_id node['arcgis']['portal']['user_license_type_id']
58: portal_url node['arcgis']['portal']['url']
59: username node['arcgis']['portal']['admin_username']
60: password node['arcgis']['portal']['admin_password']
61: action :authorize
62: end
63:
The text was updated successfully, but these errors were encountered: