Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
290 stars 115 forks source link

Unable to find the license file #334

Open suwenjiang opened 1 year ago

suwenjiang commented 1 year ago

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.

cameronkroeker commented 1 year ago

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.