-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
recipe[esri-tomcat] attempts to download remote_file despite apache-tomcat-9.0.48.tar.gz existing #357
Comments
The tomcat_install resource in esri-tomcat::install recipe checks if LICENSE file exists in the tomcat install_path folder to determine if tomcat is already installed. If the file does exist, then the tomcat installation is skipped. |
Hi @franchyze923, I suspect even though the file exists locally, it is attempting to verify the checksum of the local file over the internet.
By default this is set to true: https://github.com/Esri/arcgis-cookbook/tree/main/cookbooks/esri-tomcat#general
Trying adding the verify_checksum attribute to your "tomcat": {
"version": "9.0.48",
"tarball_path": "/opt/software/archives/apache-tomcat-9.0.48.tar.gz",
"install_path": "/opt/tomcat_arcgis_9.0.48",
"verify_checksum": false
}, Thanks, |
@cameronkroeker Thank you! Setting |
Im getting this when connected to the Internet, for ArcGIS Ent 10.9.1, using ArcGIS Cookbook 4.0.0 on Ubuntu 20.04, building with Packer. I can set it to false to probably make it work. But I think the root cause is the http request is now being 301 redirected to https, which makes the script fall over: log: remote_file[apache 9.0.48 tarball] action create[2024-02-19T05:28:03+00:00] FATAL: Fetching the Tomcat tarball checksum at http://archive.apache.org/dist/tomcat/tomcat-9/v9.0.48/bin/apache-tomcat-9.0.48.tar.gz.sha512 resulted in an error 301 |
Hi @df-sloughton I have posted 2 different workarounds here: Thanks, |
Trying to run https://github.com/Esri/arcgis-cookbook/tree/main/templates/arcgis-enterprise-base/11.1 on Linux.
I'm in an offline environment, so no internet access. I copied all the installers to the location defined in
arcgis-enterprise-primary.json
. It appears the Chef script fails to find the Tomcat installer and tries to download it from the internet, then fails.In the code below from cookbooks\esri-tomcat\recipes\install.rb -
I notice
not_if { ::File.exist?(::File.join(node['tomcat']['install_path'], 'LICENSE')) }
seems to be looking for the tomcat installer with "LICENSE" at the end of it? I believe this might be why it fails to find the file. I removed "LICENSE", and it progresses further but fails for other reasons. What isnot_if { ::File.exist?(::File.join(node['tomcat']['install_path'], 'LICENSE')) }
supposed to be doing?Thanks
The text was updated successfully, but these errors were encountered: