-
Notifications
You must be signed in to change notification settings - Fork 190
Connecting to Autonomous DB from linux fails when providing wallet #148
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@ChaosEngine My suspicion is inability to find the wallet. If you get an error, you can send the trace to us at dotnet_us(at)oracle.com. |
Ok, now it shows something in the area of SSL handshake:
and of course visibly failing with: I think it founds the wallet though. |
We can reproduce this error. Are you using Ubuntu 20.04? If so, you may be hitting the same issue we're seeing, which has this workaround. Another way to workaround the issue is to downgrade to .NET Core 3.1. I believe .NET 5 is requiring the use of TLS 1.3 here for Ubuntu. ADB uses TLS 1.2 currently. |
Yes,! this fixes things. So it is related to SSL. @alexkeh thank you for quick response and tests :-) |
When providing wallet directory (and necessary credentials and settings) creating ODP.NET connection fails. On Windows same code runs ok.
I've created a repro here: https://github.com/ChaosEngine/dotnet-db-samples/tree/autonomous-linux-fail/samples/dotnet-core/autonomous-db/console with guidance applied from here: #59
In my autonomous-linux-fail branch for reproducing the issue I've created 21c Oracle ADB (always free) and downloaded wallet zip.
Then it was unzipped with content placed inside console/wallet directory. I've also enabled tracing and which is placed inside console/traces directory.
I've run the
linux-x64
code both in ubuntu (with dotnet5) and from inside alpine container (mcr.microsoft.com/dotnet/sdk:5.0-alpine3.13
image.The output of this trivial console example gives:
I've tried various combinations of tnsnames.ora, wallet locations inside code and other options for ODP.NET OracleConnection.
For what it's wort in tracing I can see this
Seems like it can find all necessary params, but this missing ldap.ora is specifically peculiar :/
The very same code runs ok from within windows without any wallet files changed and run from console and VS2019.
If needed I can provide full trace files.
The text was updated successfully, but these errors were encountered: