问题
I am deploying spring boot hello world app to cloud foundry. Used cf push command.Getting below Error:
Open JDK Memory Calculator Error: No Version Reasonable for '2.0.2_RELEASE' in 3.13.0_RELEASE
Any one have idea about this? From below stackoverflow, I can see 2.0.2.RELEASE as open jdk version: JDK availability in Cloud Foundry I am unable to get 3.13.0_RELEASE?
Complete Log:
Updating app TestPOC1...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
256.00 KiB / 256.00 KiB [=====================================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
Staging app and tracing logs...
Cell 919f72a9-975c-4bf3-8b2f-1f0e73bda65b creating container for instance 0597e6a8-7b92-4c71-8942-15c68c29b535
Cell 919f72a9-975c-4bf3-8b2f-1f0e73bda65b successfully created container for instance 0597e6a8-7b92-4c71-8942-15c68c29b535
Downloading app package...
Downloaded app package (16.2M)
[Buildpack] ERROR Compile failed with exception #<RuntimeError: Open JDK Like Memory Calculator error: No version resolvable for '2.0.2_RELEASE' in 3.13.0_RELEASE>
Open JDK Like Memory Calculator error: No version resolvable for '2.0.2_RELEASE' in 3.13.0_RELEASE
Failed to compile droplet: Failed to compile droplet: exit status 1
Exit status 223
Cell 919f72a9-975c-4bf3-8b2f-1f0e73bda65b stopping instance 0597e6a8-7b92-4c71-8942-15c68c29b535
Cell 919f72a9-975c-4bf3-8b2f-1f0e73bda65b destroying container for instance 0597e6a8-7b92-4c71-8942-15c68c29b535
Cell 919f72a9-975c-4bf3-8b2f-1f0e73bda65b successfully destroyed container for instance 0597e6a8-7b92-4c71-8942-15c68c29b535
Error staging application: App staging failed in the buildpack compile phase
FAILED
回答1:
It looks like a CloudFundry issue which according to this comment is solved by updating stack to trusty.
It seems that precise stack doesn't support version 2.0.2_RELEASE while trusty stack does. Somehow bionic stack only works with 3.X.
来源:https://stackoverflow.com/questions/58921947/open-jdk-like-memory-calculator-error-cloud-foundry