Open mayorvlf opened 3 years ago
Hi @mayorvlf,
Could you try the following request in a web browser (on the portal node) to see what is returned?
https://esr.domain.com:7443/arcgis/portaladmin/?f=pjson
We should see a response similar to:
{
"status": "error",
"messages": ["The portal site has not been initialized. Please create a new site and try again."],
"resources": ["license"],
"isPortalLicensed": false,
"isLicenseFileRequired": true,
"isUserTypeLicensing": true,
"version": "10.9"
}
Thanks, Cameron K.
Hi @cameronkroeker I followed your instructions and this is what I get in return from the browser: { "error" : { "code" : 499, "message" : "Token Required.", "details" : null } }
Hi @cameronkroeker I followed your instructions and this is what I get in return from the browser: { "error" : { "code" : 499, "message" : "Token Required.", "details" : null } }
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, Cameron K.
Hi Cameron, I was using a different chef run but as errors were coming up had to re-run the recipe after fixing the issue.
Hi Cameron, I was using a different chef run but as errors were coming up had to re-run the recipe after fixing the issue.
Hi @mayorvlf,
May I ask what steps were taken to resolve the issue?
Thanks, Cameron K.
Hi Cameron, I was able to fix some other issue related to directory location and run the recipe again to continue installation then I ran into this current issue that have not been able to fix for what I understand it is looking for this directory to run the authorization file /arcgis/portal/tools/authorizeSoftware but the authorizeSoftware is missing in that directory.
Hi Cameron, I was able to fix some other issue related to directory location and run the recipe again to continue installation then I ran into this current issue that have not been able to fix for what I understand it is looking for this directory to run the authorization file /arcgis/portal/tools/authorizeSoftware but the authorizeSoftware is missing in that directory.
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:
If "isUserTypeLicensing": true,
is returned then the authorization file will be sent to the Create Site action (I believe this started in 10.7+):
But if "isUserTypeLicensing": false,
is returned then that means the portal authorization file (.prvc or .ecp) needs to be authorized using the tool (10.6.1 and below):
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, Cameron K.
Hello @mayorvlf,
I wanted to follow up to see if there has been any progress made on this issue? Also, there is a new release of the cookbooks v3.8.0 that may be worth trying as well.
Thanks, Cameron K.
Similar issue: https://github.com/Esri/arcgis-cookbook/issues/257
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: