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

Tomcat install started failing on checksum error #402

Open
johnymachine opened this issue Feb 14, 2024 · 3 comments
Open

Tomcat install started failing on checksum error #402

johnymachine opened this issue Feb 14, 2024 · 3 comments

Comments

@johnymachine
Copy link

johnymachine commented Feb 14, 2024

👻 Brief Description

Tomcat install started failing with:

[2024-02-13T21:24:54+00:00] FATAL: Fetching the Tomcat tarball checksum at http://archive.apache.org/dist/tomcat/tomcat-10/v10.1.18/bin/apache-tomcat-10.1.18.tar.gz.sha512 resulted in an error 301
[2024-02-13T21:24:54+00:00] FATAL: Could not fetch the checksum due to an error:
================================================================================
Error executing action `create` on resource 'remote_file[apache 10.1.18 tarball]'
image

🥞 Cookbook version

5.0.16

👩‍🍳 Chef-Infra Version

18.4.2

🎩 Platform details

Ubuntu 20.04 on AWS

Steps To Reproduce

Steps to reproduce the behavior:

Just simply run install

🚓 Expected behavior

Tomcat install successfully

➕ Additional context

Seems like if you specify checksum_uri https it works.

@gitbisect
Copy link

The http URI does not get redirected to https. I think the same happens for the tarball_uri

@johnymachine
Copy link
Author

Yes, I validated that it works with tarball_base_uri and checksum_base_uri = https://archive.apache.org/dist/tomcat/

@rolffujino
Copy link

rolffujino commented Aug 6, 2024

Just to spell it out for the readers, update your tomcat_install resource to the following:

tomcat_install '10.1.9' do
  tarball_base_uri  'https://archive.apache.org/dist/tomcat/'
  checksum_base_uri 'https://archive.apache.org/dist/tomcat/'
end

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

3 participants