-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
java buildpack giving error while creating offline package with OFFLINE=true #1080
Comments
Realized one more mis-match while pinning the version for offline buildpack. https://java-buildpack.cloudfoundry.org/jvmkill/bionic/x86_64/index.yml https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/index.yml |
@ashijay : Were you able to resolve this? I am also facing the same and seems like it is happening for Trusty machines as I was able to build an offline build-pack for this release in my local. $ bundle exec rake versions |
Hi @ArvindChaturvedi, It throws error which malformed the URL and remove trusty from it. Error: |
Hi, the buildpack supports Bionic and Jammy and publishes binaries for these where relevant. There were binaries available for Trusty when it was under general support, however you would need to fork the buildpack, specify Trusty as a packaging platform, and return to older versions of binaries to package, which would not be recommended. Have you investigated migrating to Jammy? |
Anyone found any solution or workaround to this ? |
Hi there!
I am trying to create cloudfoundry offline java package which is giving error as below.
Per instructions provided at https://github.com/cloudfoundry/java-buildpack#offline-package:
bundle install --- worked fine
bundle exec rake clean package --- worked fine
bundle exec rake clean package PINNED=true --- also worked fine
bundle exec rake clean package OFFLINE=true PINNED=true --- gives error
I am building this on ubuntu machine (details below):
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Error snapshot:
bundle exec rake clean package OFFLINE=true PINNED=true
[DownloadCache] WARN Unable to download https://java-buildpack.cloudfoundry.org/groovy/index.yml into cache build/staging/resources/cache: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
rake aborted!
Unable to find cached file for https://java-buildpack.cloudfoundry.org/groovy/index.yml
java-buildpack/lib/java_buildpack/util/cache/download_cache.rb:79:in
get' java-buildpack/rakelib/dependency_cache_task.rb:147:in
get_from_cache'java-buildpack/rakelib/dependency_cache_task.rb:139:in
block (2 levels) in uris' java-buildpack/rakelib/dependency_cache_task.rb:137:in
each'java-buildpack/rakelib/dependency_cache_task.rb:137:in
block in uris' java-buildpack/rakelib/dependency_cache_task.rb:136:in
each'java-buildpack/rakelib/dependency_cache_task.rb:136:in
uris' java-buildpack/rakelib/dependency_cache_task.rb:48:in
initialize'java-buildpack/Rakefile:42:in
new' java-buildpack/Rakefile:42:in
<top (required)>'/var/lib/gems/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tried to start on a solution with https://stackoverflow.com/questions/44227963/cloudfoundry-buildpack-compilation-fails-due-to-certificate-issue but the file container_certificate_trust_store.rb itself is not present in the path lib\java_buildpack\framework
Additionally bundle exec rake versions gives the same error.
Thank you for any input on this.
The text was updated successfully, but these errors were encountered: