-
Notifications
You must be signed in to change notification settings - Fork 766
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
SQL Server connectivity issue - 'TCP Provider: Error code 0x68' #917
Comments
OK I have done some more investigation into the above issue and it is to do with the Red Hat base image used to produce the 'Microsoft SQL Server - RHEL based images' here. Here is the results of my investigation so far, all testing is done with the option
Notes:-
So in conclusion the Red Hat base image that MS uses is broken for encryption and causes sqlcmd to error out when attempting to connect from one container to another (in the same docker network) using encryption. |
I can confirm the issue exists for me as well with the 2022-CU17-rhel-9.1 (:latest) tagged image. It started occurring in my Podman Desktop environment when I re-built our images against the :latest tag. After reverting to the 2022-CU16-rhel-9.1 tagged image the problem goes away. When I rebuild against the :latest tagged image the issue re-occurs. |
I have now created a simple bash script to demonstrate the issue, this script is actually even simpler than explained in the OP requiring a single SQL Server Red Hat container running and executing a SQL script (included inline in the script) with connection encryption turned on (fully automated in the script). Link to script:- https://gist.github.com/Paul-Eccleston-i2/b22980c317bbf04132ecdbee2743f843 |
I am seeing a repeatable but slightly random error of
TCP Provider: Error code 0x68
when running two MS SQL Server Docker containers in the same Docker bridge network.The first docker container (server) is running as follows:-
The second docker container (client) is running as follows:-
The following is the test command executed:-
test_command="${1:-"/opt/mssql-tools/bin/sqlcmd -S server.test -U sa -P StrongPassword -N -C -i '<sql scripts to run>'"}"
Things I have tried:-
So I am at a loss as to the cause of the issue at this point, it seems to me to be network connectivity related, but I see nothing obviously wrong with the above, does anybody have any suggestions on how I can try and debug this further, if you need any further information then please let me know.
The text was updated successfully, but these errors were encountered: