You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to ./mvnw package -Dpackaging=docker-native -Dmicronaut.runtime=lambda -Pgraalvm it fails with following. Any clue?
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.test:mylambdalight >---------------------
[INFO] Building mylambdalight 0.1
[INFO] ---------------------------[ docker-native ]----------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ mylambdalight ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ mylambdalight ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:aot-analysis (default-aot-analysis) @ mylambdalight ---
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:graalvm-resources (default-graalvm-resources) @ mylambdalight ---
[INFO] Generating /Users/Subash/dev/src11/micronaut/serverless/mylambdalight/target/classes/META-INF/native-image/com.test/mylambdalight/resource-config.json
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:docker-native (default-docker-native) @ mylambdalight ---
[INFO] Using GRAALVM_VERSION: 22.2.0
[INFO] Using GRAALVM_JVM_VERSION: java11
[INFO] Using GRAALVM_ARCH: amd64
[INFO] Using CLASS_NAME: com.test.FunctionLambdaRuntime
[INFO] Step 1/24 : FROM amazonlinux:2 AS graalvm
[INFO]
[INFO] ---> e2bbaeed78d2
[INFO] Step 2/24 : ENV LANG=en_US.UTF-8
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0a33370428f4
[INFO] Step 3/24 : ARG GRAALVM_VERSION
[INFO]
[INFO] ---> Using cache
[INFO] ---> a77d1cd42f0a
[INFO] Step 4/24 : ARG GRAALVM_JVM_VERSION
[INFO]
[INFO] ---> Using cache
[INFO] ---> 24d78e38a538
[INFO] Step 5/24 : ARG GRAALVM_ARCH
[INFO]
[INFO] ---> Using cache
[INFO] ---> b0eb747425a1
[INFO] Step 6/24 : RUN yum update -y && yum install -y gcc gcc-c++ zlib-devel zip tar gzip && yum clean all
[INFO]
[INFO] ---> Running in 5f5c1bcf5fe8
[INFO] Loaded plugins: ovl, priorities
[INFO] https://cdn.amazonlinux.com/2/core/2.0/x86_64/b2a940e38a9dc9fb817c16cf37a42866e742622a57bb83c1794fe670037d513b/repodata/repomd.xml?instance_id=timeout®ion=unknown: [Errno 14] curl#35 - "OpenSSL/1.0.2k-fips: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"
[INFO] Trying other mirror.
One of the configured repositories failed (Amazon Linux 2 core repository),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=amzn2-core ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable amzn2-core
or
subscription-manager repos --disable=amzn2-core
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=amzn2-core.skip_if_unavailable=true
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am following this https://guides.micronaut.io/latest/mn-serverless-function-aws-lambda-graalvm-gradle-java.html in maven to try out micronaut graalvm in aws lambda.
When I try to ./mvnw package -Dpackaging=docker-native -Dmicronaut.runtime=lambda -Pgraalvm it fails with following. Any clue?
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.test:mylambdalight >---------------------
[INFO] Building mylambdalight 0.1
[INFO] ---------------------------[ docker-native ]----------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ mylambdalight ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ mylambdalight ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:aot-analysis (default-aot-analysis) @ mylambdalight ---
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:graalvm-resources (default-graalvm-resources) @ mylambdalight ---
[INFO] Generating /Users/Subash/dev/src11/micronaut/serverless/mylambdalight/target/classes/META-INF/native-image/com.test/mylambdalight/resource-config.json
[INFO]
[INFO] --- micronaut-maven-plugin:3.4.0:docker-native (default-docker-native) @ mylambdalight ---
[INFO] Using GRAALVM_VERSION: 22.2.0
[INFO] Using GRAALVM_JVM_VERSION: java11
[INFO] Using GRAALVM_ARCH: amd64
[INFO] Using CLASS_NAME: com.test.FunctionLambdaRuntime
[INFO] Step 1/24 : FROM amazonlinux:2 AS graalvm
[INFO]
[INFO] ---> e2bbaeed78d2
[INFO] Step 2/24 : ENV LANG=en_US.UTF-8
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0a33370428f4
[INFO] Step 3/24 : ARG GRAALVM_VERSION
[INFO]
[INFO] ---> Using cache
[INFO] ---> a77d1cd42f0a
[INFO] Step 4/24 : ARG GRAALVM_JVM_VERSION
[INFO]
[INFO] ---> Using cache
[INFO] ---> 24d78e38a538
[INFO] Step 5/24 : ARG GRAALVM_ARCH
[INFO]
[INFO] ---> Using cache
[INFO] ---> b0eb747425a1
[INFO] Step 6/24 : RUN yum update -y && yum install -y gcc gcc-c++ zlib-devel zip tar gzip && yum clean all
[INFO]
[INFO] ---> Running in 5f5c1bcf5fe8
[INFO] Loaded plugins: ovl, priorities
[INFO] https://cdn.amazonlinux.com/2/core/2.0/x86_64/b2a940e38a9dc9fb817c16cf37a42866e742622a57bb83c1794fe670037d513b/repodata/repomd.xml?instance_id=timeout®ion=unknown: [Errno 14] curl#35 - "OpenSSL/1.0.2k-fips: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"
[INFO] Trying other mirror.
One of the configured repositories failed (Amazon Linux 2 core repository),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
failure: repodata/repomd.xml from amzn2-core: [Errno 256] No more mirrors to try.
https://cdn.amazonlinux.com/2/core/2.0/x86_64/b2a940e38a9dc9fb817c16cf37a42866e742622a57bb83c1794fe670037d513b/repodata/repomd.xml?instance_id=timeout®ion=unknown: [Errno 14] curl#35 - "OpenSSL/1.0.2k-fips: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"
`
Beta Was this translation helpful? Give feedback.
All reactions