arcgis-cookbook icon indicating copy to clipboard operation
arcgis-cookbook copied to clipboard

Unable to find the license file

Open suwenjiang opened this issue 2 years ago • 1 comments

Using the base template to create a base ArcGIS Enterprise environment but always failed at finding the license file. However I'm pretty sure that there is a copy of license file in the configured locaiton.

[2022-11-10T05:50:08+00:00] FATAL: RuntimeError: arcgis_enterprise_portal[Authorize Portal for ArcGIS] (arcgis-enterprise::portal line 54) had an error: RuntimeError: File 'C:\cinc\portal.json' not found.

suwenjiang avatar Nov 10 '22 05:11 suwenjiang

Hi @suwenjiang,

Looks like it is failing here:

https://github.com/Esri/arcgis-cookbook/blob/237b0e39fca0a3b5988b997430bf7beb3637e039/cookbooks/arcgis-enterprise/providers/portal.rb#L244-L247

Check to ensure the path defined in arcgis.portal.authorization_file attribute is json escaped, for example:

https://github.com/Esri/arcgis-cookbook/blob/237b0e39fca0a3b5988b997430bf7beb3637e039/templates/arcgis-enterprise-base/11.0/windows/arcgis-enterprise-primary.json#L67

"authorization_file": "C:\\cinc\\portal.json"

Or maybe the authorization_file C:\\cinc\\portal.json exists, but the account running Chef client does not have permission to read it. Try moving it to a different location, and/or ensuring the account running Chef has access to it.

Thanks, Cameron K.

cameronkroeker avatar Nov 10 '22 22:11 cameronkroeker