-
Notifications
You must be signed in to change notification settings - Fork 435
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
Problem connecting from macOS to SQL Azure #177
Comments
Thanks @diegolesli for reach out to us. From your comments we understood that on macOS you are facing connectivity problems. We will you keep posted.
|
Thanks, yes it is a problem connecting from macOS to SQL Azure |
Hi @diegolesli, I'm able to connect to Azure SQLServer with the macOS and JDK combination you mentioned even without any additional parameters. Can you try testing with increased loginTimeout just to see if Server responds? also, can you double check if the firewall rule in Azure is setup for the client machine? |
Hi, Thanks for your time. Just to be sure I created a new SQL Azure Database from scratch from the same computer I am connecting from and the error is still the same. So I took another mac same version and I checked with same JDK version and it works. So it is clearly a problem from my computer and not of the driver. Sorry for making you lose your time. Anyway, if you could help me identify what to look that would be very helpful, because I only have a problem with Azure (to Amazon RDS I can connect with no problem) I increased the loginTimeout to 60s and after 60s I get the same error. I double checked the default created firewall rule and it works ok since I can connect from the other computer. I guess it is something related with the certificates I have in my machine, but I cannot figure out what the real problem is. Thanks, |
@diegolesli no problem, we are happy to help, glad that you were able narrow down the cause to your local machine. Can you try enabling the logs for the level FINEST and see if the driver logs any warning message? The warning message, if any, should be at the end of log. |
Hi @diegolesli, if you do enable logs, please feel free to send them directly to andrela@microsoft.com. |
Hi, Attached you can find the trace.log after enabling logs for SQL Server driver. Thanks for all the help you are providing me! |
@diegolesli Hello, can I ask what version the driver is? |
@diegolesli could you please do us another favor? Could you please run it again on the Mac machine that is working for you, with the same SQL Azure credentials? and give us the log file? We want to compare the 2 log files and see the differences. Thank you very much. |
Hello @diegolesli , have you resolved the issue on your Mac? |
Hello @v-xiangs sorry for the lack of reply I have been out in a business trip without access to the other computer. The issue still persists. By tomorrow I will attach both files again with the same project. Sorry for the delay and thanks for all the help |
Hello, In the computer it was working it is not working anymore. It is from a different location (I asked a college of mine), different network and different computer, but same JDK and OSX version. Same problem as it is happening with me. I am going to try a couple of different macs to see if it is working in any of them. |
Hello, Attached is a different computer, same OSX and JDK and different network connection. The result is the same. The database has been created newly and from the app SQLPro for MSSQL is working ok, but from the plugin of VS Code the error is the same. Let me know if I can help with something else. I will try to find a MAC OSX in which is working. Thanks, |
Hi @diegolesli, we couldn't figure out much with the new trace you shared. We will look into the trace from Sierra that works with Azure, once you share it. |
we're experiencing the same issue (to the T)-- any steps we can take to produce diagnostic output for you to look at? @v-suhame |
Problem solved with these steps:
Source - https://youtrack.jetbrains.com/issue/JRE-221#comment=27-1826316 |
Hello @Grievoushead That really worked for me. In my case hostname was not even set so I set it to something without the local suffix and it connected perfectly. Thanks very much for all the help! |
@Grievoushead Thank you very much for providing the solution to this issue ! |
For three days i tried to connect to Azure SQL Server, i downloaded a fresh copy of JDBC 6 but I received the same "SQL Server did not return a response" error message. @Grievoushead Thanks for the solution, now it works perfectly! |
Driver uses PR #324 fixes the need to manually set localhostname. There might be noticeable delay while establishing connection, as driver continues to uses PS: The other alternative to |
Just got stung with the same issue trying to connect to MSSQL via SQuirreLSQL on MacOS - hostname fix worked for me too 👍 |
1 similar comment
Hi, I was facing the same issue when using IBM JDK 8 since it was using TLSv1 connecting to a MS SQL Server installed on Win2019 which was enforcing TLSv1.2. I solved the problem by setting this property at JVM level: |
Hello,
When connecting to a SQL Azure database from mac I am getting the error below running the connectURL example.
Output
I am using macOS 10.12.3, JDK 8 Update 121. Same example from Windows is working fine and I can connect with no problems.
I also tried a connection string different with the following format
I also tried the parameters in different combinations
-Djsse.enableCBCProtection=false
-Djdk.tls.client.protocols=TLSv1
Attached you can find the output when debugging SSL as suggested in a couple of places, but I could not figure out the root of the problem
output.txt
If I try to connect to a SQL Server deployed in the RDS service of AWS everything works as expected
Any help will be appreciated
The text was updated successfully, but these errors were encountered: