Comments (5)
Hi fivetran-darrenlien,
At this point from your description it is not clear what the issue could be. The tunnel should not be an issue, if it is properly configured. It is possible it could be a driver configuration issue or it could be a networking/SSH Tunnel issue. Have you been able to confirm that you can ping the SQL Server using the SSH tunnel? If that works can you use telnet to test if you can access the specified SQL Server port (i.e. telnet
<port_number>)? If telnet connects, there are no network/SSH issues and the specified port is open and the driver should connect.If you are still seeing issues, could you please provide driver logs that capture the failure?
Thx,
Barry
from mssql-jdbc.
Thank for replying. We know the ssh tunnel is not the issue because we connect when not use the listener via the ssh tunnel 100% of the time. On the ssh tunnel server, we can also do a dns lookup for the listener and it shows 2 A records as expected. Yes, we can ping the server fine. The connection connected intermittently via the listener. It's random. If you make 5 connections, sometime you get 1 or 2 that is ok. I will try to get some logs. Are you expect some driver logs and how do I enable it?
from mssql-jdbc.
Please follow these instructions for the JDBC driver logging - https://learn.microsoft.com/en-us/sql/connect/jdbc/tracing-driver-operation?view=sql-server-ver16
It is recommended that you always inspect the driver logs when there is an issue as there will likely be information in the logs that will help you or the JDBC driver team diagnose the issue
from mssql-jdbc.
We'll be moving forward with closing this issue in the next few days if there is no further reply. If you are still experiencing the above issue, please include driver logs as mentioned above.
from mssql-jdbc.
I would try using multiSubnetFailover=true. That should result in a faster successful connection than TNIR when there are multiple IP addresses and not all of them are active.
from mssql-jdbc.
Related Issues (20)
- [QUESTION] Release 12.7.0 without suffix .jre8/.jre11 HOT 2
- The server selected protocol version TLS10 is not accepted by client preferences [TLS12] HOT 3
- [QUESTION] How to pass MAXDOP option HOT 5
- StackOverFlow when trying to write to Server HOT 9
- com.microsoft.sqlserver.jdbc.KerbAuthentication HOT 5
- Add support for a multi-release jar HOT 1
- SQLServerMetaData Constructor Issue HOT 1
- [QUESTION] How to connect using an AD Domain user from Linux HOT 19
- Date handling is broken. Returns datetime with time zone offset for date field HOT 11
- MFA Authentication within the same application window HOT 7
- "The multi-part identifier \"sys.schemas.name\" could not be bound. HOT 3
- NoClassDefFoundError: com/microsoft/sqlserver/jdbc/StreamInfo HOT 4
- Does this version run on Android? HOT 5
- Implementation bug in `SqlAuthenticationToken` constructor accepting unix epoch HOT 1
- Slowness in MS SQL Server JDBC driver HOT 37
- Conversion exception when calling a stored procedure with a datetime in-out parameter while setting a String value HOT 4
- Intermittent driver exception on shutdown HOT 9
- Reconnection issue with `lockTimeout` configured HOT 2
- Azure TokenCredential class required if using Always Encrypted but not using Azure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mssql-jdbc.