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

Reliable BSOD when connecting to SQL in Windows containers from SSMS

Open gregpakes opened this issue 9 years ago • 42 comments

I'm not sure if this is the right github repo for this issue, but I am able to get a reliable BSOD when connecting to the running SQL container through SSMS.

Error is: DRIVER_IRQL_NOT_LESS_OR_EQUAL in winnat.sys

I am running Windows 10 Creators Update.

image

gregpakes avatar May 08 '17 23:05 gregpakes

+1

adamhwang avatar May 14 '17 18:05 adamhwang

+1

This also happens to me when I run SqlPackage against my container on container IP from my host.

Docker version: 17.05.0-ce Windows version: 15063.296 Surface Pro 4

ermontgo avatar May 23 '17 03:05 ermontgo

Are we talking about a SQL Server Windows container or a Linux container running on Docker for Windows here?

twright-msft avatar May 23 '17 05:05 twright-msft

@twright-msft Windows Host and Windows Container.

gregpakes avatar May 23 '17 05:05 gregpakes

+1 (windows container)

hugonijhuis avatar May 23 '17 11:05 hugonijhuis

We're looking into this...

twright-msft avatar May 24 '17 04:05 twright-msft

[@gregpakes, @adamhwang, @ermontgo, @HugoNijhuis]

I tried to repro this issue on multiple machines using the microsoft/mssql-server-windows:latest image, with no success so far. A couple of questions/requests so we can narrow down the investigation:

  1. Are you all using the microsoft/mssql-server-windows:latest (CTP2.1) image? Is it possible to see if you get the same issue with the previous microsoft/mssql-server-windows:vnext-ctp2.0 image?

  2. Are you all running Windows 10 Creators Update? Is it a VM?

  3. Any chance someone can share detailed repro steps (including the docker run command and the SSMS version)?

2017-05-24_15h36_03

perrysk-msft avatar May 24 '17 22:05 perrysk-msft

@perrysk-msft

So my machine no longer exhibits the issue (I rebuilt my docker environment from scratch), but I will try and help.

  1. I was using the latest image at the time, not vnext.
  2. I was running Creators Update
  3. I was mapping 1433 to my host, so I was connecting to localhost in SSMS.

gregpakes avatar May 24 '17 23:05 gregpakes

@perrysk-msft Thanks for investigating! Unfortunately I've since uninstalled Docker from the affected machine and am running SQL Server locally so cannot test the vnext image.

  1. Yes, I was running microsoft/mssql-server-windows:latest
  2. I was running Windows 10 Creators Update on host, not VM. Exact iso was: (Creator Update) SW_DVD5_WIN_ENT_10_1703_64BIT_English_MLF_X21-36478.iso
  3. Docker was latest as of 10 days ago when I originally posted. The InstallDocker.exe I used does not contain a version number but revision was {9D162334-8073-42CC-AB3E-A989BA9CA500}.

Repro steps

  • Ran the command docker run -d -p 1433:1433 -e sa_password=<SA_PASSWORD> -e ACCEPT_EULA=Y microsoft/mssql-server-windows after changing pw (from Docker hub)
  • Connect from SSMS on host to localhost or .
  • See BSOD

Alternatively, even without connecting, would eventually get BSOD 5-10 mins after the container was started. Hope this helps

adamhwang avatar May 24 '17 23:05 adamhwang

Thanks @gregpakes and @adamhwang. Still no repro on my side, but I'll also try on a couple of different environments.

perrysk-msft avatar May 26 '17 19:05 perrysk-msft

This is occurring again on my machine. Makes docker unusable...

Current Error:

file-2

gregpakes avatar Jun 08 '17 22:06 gregpakes

Getting the same with microsoft/mssql-server-windows-developer:latest, Win10 Creators Edition, same steps as @adamhwang.

Using Docker for Windows, Version 17.03.1-ce-win12 (12058) Channel: stable d1db126

flcdrg avatar Jun 24 '17 12:06 flcdrg

Also getting the same BSOD when connecting via SSMS (17.1) to a docker SQL image (using latest windows mssql-server-windows-developer).. same steps as above

Fresh install of windows(Windows 10 Creator) and docker(12058), only other software VS 2017, Bitdefender and Office. Bash for Windows turned on.

corsjune avatar Jun 28 '17 14:06 corsjune

Thanks @corsjune, @flcdrg! We will try to repro this issue and investigate. Do you get the same behavior when using the container IP (from docker inspect) instead of localhost or . in SSMS?

perrysk-msft avatar Jun 28 '17 20:06 perrysk-msft

@perrysk-msft: I'm also experiencing this exact issue running Docker (12627) on Windows 10 Creators Update, connecting to localhost with SSMS. Using the container IP seems to help, though, as I have not yet experienced any BSODs when doing that.

tormodfj avatar Jun 29 '17 12:06 tormodfj

Yesterday.. I was experiencing the BSOD using . TO repro, I would first fail auth using Windows Auth two or three times and then try the sa password. If sa auth was successful, BSOD.

I think localhost did the same.

Today the container IP and external HOST IP seems successful. Also, but strangely . and localhost is going through also w/o a BSOD also. Only difference between last night and today is that I installed the June OS Rollups for Creator Edition

corsjune avatar Jun 29 '17 14:06 corsjune

@perrysk-msft fresh boot.. tried . , instant BSOD

boot again, tried container IP, success:

tried . again, instant BSOD bad header pool

latest "stable" docker bits and OS bits

corsjune avatar Jun 29 '17 16:06 corsjune

it seems that if I use the HOST external IP first and then try . , it is slightly more stable.. no bsod just SSMS hang

EDIT: I take that back.. although it seemed fine when I went to restart, another BSOD PAGE_FAULT_IN_NONPAGED_AREA

corsjune avatar Jun 29 '17 17:06 corsjune

While this thread so far has revolved around connecting to the container using SSMS, it is worth mentioning that the BSOD also occurs when connecting to the 'localhost' using ADO.NET in general. I just got the BSOD when an application I'm developing tried to connect to the database via 'localhost'. Again, connecting using IP does not give BSOD.

tormodfj avatar Jun 30 '17 06:06 tormodfj

I'm having the exact same issue. My laptop would BSOD upon connecting with SSMS to localhost. The actual error of the BSOD was different everytime. Looks like pointer into the kernel going wrong...

bravecobra avatar Jul 11 '17 22:07 bravecobra