Closed cameronkroeker closed 6 months ago
The following error occurs when a local copy of the tomcat installer does not exist:
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 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: [2024-02-19T05:28:03+00:00] FATAL: Could not fetch the checksum due to an error: 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: ================================================================================ 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: Error executing action create on resource 'remote_file[apache 9.0.48 tarball]' 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: ================================================================================ 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: RuntimeError 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu: ------------ 2024-02-19T14:58:03+09:30: 1_arcgis_ubuntu.amazon-ebs.arcgis_server_ubuntu:
node['tomcat']['tarball_path']
node['tomcat']['verify_checksum']
https://github.com/Esri/arcgis-cookbook/blob/a6140542a084fc81e90bfa2e8e9d97a734651c7c/cookbooks/esri-tomcat/attributes/default.rb#L2
Add:
default['tomcat']['tarball_base_uri'] = 'https://archive.apache.org/dist/tomcat/' default['tomcat']['checksum_base_uri'] = 'https://archive.apache.org/dist/tomcat/'
For example:
default['tomcat']['version'] = '9.0.48' default['tomcat']['tarball_base_uri'] = 'https://archive.apache.org/dist/tomcat/' default['tomcat']['checksum_base_uri'] = 'https://archive.apache.org/dist/tomcat/' default['tomcat']['instance_name'] = 'arcgis'
https://github.com/Esri/arcgis-cookbook/blob/a6140542a084fc81e90bfa2e8e9d97a734651c7c/cookbooks/esri-tomcat/recipes/install.rb#L22-L37
tarball_base_uri node['tomcat']['tarball_base_uri'] checksum_base_uri node['tomcat']['checksum_base_uri']
tomcat_install instance_name do version node['tomcat']['version'] install_path node['tomcat']['install_path'] tarball_base_uri node['tomcat']['tarball_base_uri'] checksum_base_uri node['tomcat']['checksum_base_uri'] tarball_path node['tomcat']['tarball_path'] verify_checksum node['tomcat']['verify_checksum'] tomcat_user node['tomcat']['user'] tomcat_group node['tomcat']['group'] create_user node['tomcat']['create_user'] create_group node['tomcat']['create_group'] tomcat_user_shell node['tomcat']['tomcat_user_shell'] create_symlink node['tomcat']['create_symlink'] symlink_path node['tomcat']['symlink_path'] exclude_manager true exclude_hostmanager true not_if { ::File.exist?(::File.join(node['tomcat']['install_path'], 'LICENSE')) } end
This has been addressed in v5.0.0: https://github.com/Esri/arcgis-cookbook/releases/tag/v5.0.0
Thanks, Cameron K.
The following error occurs when a local copy of the tomcat installer does not exist:
Workaround 1: Download and specify tarball_path
node['tomcat']['tarball_path']
attribute in json config.node['tomcat']['verify_checksum']
attribute in json config to false.Workaround 2: Modify Cookbooks to use https endpoint instead of http
https://github.com/Esri/arcgis-cookbook/blob/a6140542a084fc81e90bfa2e8e9d97a734651c7c/cookbooks/esri-tomcat/attributes/default.rb#L2
Add:
For example:
https://github.com/Esri/arcgis-cookbook/blob/a6140542a084fc81e90bfa2e8e9d97a734651c7c/cookbooks/esri-tomcat/recipes/install.rb#L22-L37
Add:
For example: