Skip to content
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

Unable to find the license file #334

Open
suwenjiang opened this issue Nov 10, 2022 · 1 comment
Open

Unable to find the license file #334

suwenjiang opened this issue Nov 10, 2022 · 1 comment

Comments

@suwenjiang
Copy link

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
Copy link
Contributor

cameronkroeker commented Nov 10, 2022

Hi @suwenjiang,

Looks like it is failing here:

action :authorize do
unless ::File.exists?(@new_resource.authorization_file)
raise "File '#{@new_resource.authorization_file}' not found."
end

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

"authorization_file": "C:\\Software\\AuthorizationFiles\\11.0\\Portal.json",

"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants