mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

Length specified in network packet did not match the number of packets read error- 17836

Open gbnyv opened this issue 5 years ago • 22 comments

Seeing the following error in Kitematic Container Log. MSSQL-SERVER linux is running but unable to connect to server

2019-07-22 21:38:12.21 Logon Error: 17836, Severity: 20, State: 17. 2019-07-22 21:38:12.21 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 192.168.99.1]

Getting this error the when trying to create a new connection in Azure Date Studio "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)"

gbnyv avatar Jul 22 '19 21:07 gbnyv

I am facing the same error, but the difference is that my sql server is installed on windows server, while my .net core is containered on linux; have u find a way to fix it? someone tells me to intall SQL_AS_OLEDB.msi on that sql server machine to resolve it. I've not tried it, its company server only dba can get access to it.

GaryShao avatar Nov 09 '19 09:11 GaryShao

My bad not the same issue, my issue is about the asp.net core 3.0 docker image.

GaryShao avatar Nov 09 '19 14:11 GaryShao

Same issue, any workaround ?

rdev-software avatar Jan 25 '20 09:01 rdev-software

Same issue with mcr.microsoft.com/mssql/server:2017-CU8-ubuntu

davidhenley avatar Feb 06 '20 17:02 davidhenley

Same issue with default version mcr.microsoft.com/mssql/server on MacOS with Docker.

2020-02-09 22:35:00.80 Logon Error: 17836, Severity: 20, State: 17. 2020-02-09 22:35:00.80 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library.

SoleCode avatar Feb 09 '20 22:02 SoleCode

Same issue for me as well, using this image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04

dastrn avatar Feb 11 '20 16:02 dastrn

Seems to only happen when I have Docker Desktop open.

davidhenley avatar Feb 11 '20 16:02 davidhenley

Having the same issue with this image: mcr.microsoft.com/mssql/server:2017-latest

"Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client"

Anybody have a solution / workaround?

Update: I cleared out all my container volumes following this link. After that, ran a docker-compose up --build and my issue was resolved. Hope this helps someone.

arthur-alexander avatar Feb 28 '20 17:02 arthur-alexander

This error is logged immediately multiple times a minute when starting up a container using the SQL Server image: microsoft/mssql-server-windows-developer

sandyrogersACF avatar Mar 04 '20 16:03 sandyrogersACF

Turning on this setting seems to have stopped it: image

sandyrogersACF avatar Mar 04 '20 16:03 sandyrogersACF

@sandyrogersACF I dont have that option on the newest version of Docker Desktop for Mac.

davidhenley avatar Mar 04 '20 16:03 davidhenley

Happening to me too. Latest 2017 image. These messages only seem to appear when I have the Docker Dashboard open and am looking at the containers.

stephenpope avatar Mar 05 '20 13:03 stephenpope

Same issue

ugurozturk avatar Mar 05 '20 18:03 ugurozturk

Same issue for me running Docker Desktop. I got the image from docker hub

When running it I get the following:

sqldocker

VenerableChris avatar Mar 09 '20 10:03 VenerableChris

This looks like the typical message you will see when someone or something is trying to scan/use the SQL Server port. Does anyone have any sort of Antivirus scanning the port 1433?

croblesm avatar Mar 10 '20 05:03 croblesm

The problem for me was the encription. When I disabled I could login with out issue.

image

image

metxito avatar May 05 '20 22:05 metxito

Turning on this setting seems to have stopped it: image

this solved for me

alikrc avatar Aug 20 '20 10:08 alikrc

anyone got solution to this issue. M facing similar issue in macbook. Docker doesnt have this option in General tab as per the above solution

TheR3njithR avatar Feb 08 '22 08:02 TheR3njithR

Tried all of the solutions in this thread, none of them worked. I'm using the image mcr.microsoft.com/mssql/server:2019-CU15-ubuntu-20.04

jsealekla avatar May 17 '22 22:05 jsealekla

I've also got this issue using mcr.microsoft.com/mssql/server:2022-latest, neither suggested workaround worked for me

matt-goldman avatar Apr 17 '23 03:04 matt-goldman

I also had this issue while running the docker container for 2019 latest.

Was using the login server name : .\

When trying to connect using Sql manager - I had to specify the TCP/IP network protocol - thinking it was because I was behind a corp proxy.

This worked in the SQL Studio however when running from the Microsoft.Data.SqlClient I was getting handshake and no response from endpoint errors.

After some tracing, I noticed I was running a local install version of MSSQL also.. This was causing the above errors..

Felt pretty stupid but maybe will help others.

** Edit : 2019 Latest not 2017

klexas avatar May 05 '23 09:05 klexas

I also had this issue while running the docker container for 2019 latest.

Was using the login server name : .\

When trying to connect using Sql manager - I had to specify the TCP/IP network protocol - thinking it was because I was behind a corp proxy.

This worked in the SQL Studio however when running from the Microsoft.Data.SqlClient I was getting handshake and no response from endpoint errors.

After some tracing, I noticed I was running a local install version of MSSQL also.. This was causing the above errors..

Felt pretty stupid but maybe will help others.

** Edit : 2019 Latest not 2017

Now that I think of it...this is almost certainly my issue too! I'll test and confirm.

matt-goldman avatar May 06 '23 00:05 matt-goldman