-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
error on ssl handshake with database in native image mode #4640
Comments
Can you post the output of:
or even the output of:
|
Output of jre/lib/amd64:
And the tree output:
|
Thank you. While I have you here, can you also post us the output of:
and then
and
|
Just reinstalled the latest graalvm for linux (befor my runtime was openjdk only) but resulted in the same error. My new call of my executable:
My graalvm env variable:
The libraries:
The directory tree:
|
I had a bit more closer look at your logs. So:
So you are building the native-image on Windows OS? Of course using |
By the way, does that exception occur when you hit some rest endpoint? If so, we can sort this out very quickly if you can add the following statement as the first line in your rest endpoint method, before doing the other implementation:
If you can get that output log when you launch your application, then we will know what exactly is going on. |
Some infos about my environment:
I did an additional successful test (without docker build):
So for me it seams to be an issue with the docker build. You asked me when the exception occurs - it occurs on application startup (no REST endpoint). |
@jaikiran Are you able to reproduce the issue? |
I have an other running solution, using a multistage docker build.
|
So the error remaining is using the native image docker build and then building and running the docker-image or running it directly inside WSL in Windows10.
|
@haraldatbmw Thank you for the detailed information. I have been able to correlate this back to the code which sets up this infrastructure. I do see that there is an issue in the way this is done. However, I don't see any other way out, other than probably adding a prominent note explain these issues in the guide. Before getting to that though, I want to make sure I've understood the code correctly, so I'm just waiting for some spare time that I can spend on this. Probably later this weekend, if no one else gets to it. |
This should be fine now, there have been a lof of changes in the GraalVM SSL support since this issue was opened. |
Describe the bug
I have a quarkus application which makes a flyway database migration at startup.
My database is a postgres db allowing only ssl connections.
I compile a native image successfully.
Expected behavior
Successful SSL connection to my postgres database.
Actual behavior
Can not start to application due to ssl handshake error.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
Output of
uname -a
orver
:Linux LMUC795407 4.4.0-17134-Microsoft Make the resource generation optional in the maven plugin #706-Microsoft Mon Apr 01 18:13:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
:openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Quarkus version or git rev: 0.25.0
The text was updated successfully, but these errors were encountered: