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

rails-buildpack:2.6 has ssl certificate issue of letsencrypt #11

Open
essa opened this issue Oct 4, 2021 · 1 comment
Open

rails-buildpack:2.6 has ssl certificate issue of letsencrypt #11

essa opened this issue Oct 4, 2021 · 1 comment

Comments

@essa
Copy link

essa commented Oct 4, 2021

rails-buildpack:2.6 fails apt-get update because of the certificate issue of letsencrypt.

$ docker run -ti degica/rails-buildpack:2.6 bash
# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Ign:3 https://deb.nodesource.com/node_10.x buster InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Err:5 https://deb.nodesource.com/node_10.x buster Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 23.192.45.81 443]
Reading package lists... Done
E: The repository 'https://deb.nodesource.com/node_10.x buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

This issue is reported at nodesource/distributions#1266 and a workaround in a comment will solve the issue.

$ docker run -ti degica/rails-buildpack:2.6 bash
# apt-get update
...
E: The repository 'https://deb.nodesource.com/node_10.x buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
# echo $?
100
# apt-get install -y libgnutls30   # <<<==== This fixes the issue
# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Get:4 https://deb.nodesource.com/node_10.x buster InRelease [4584 B]
Get:5 https://deb.nodesource.com/node_10.x buster/main amd64 Packages [767 B]
Fetched 5351 B in 1s (4546 B/s)
Reading package lists... Done
# echo $?
0
@essa
Copy link
Author

essa commented Oct 4, 2021

I think just rebuilding the image will resolve the issue

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

1 participant