在Docker下使用MSSQL错误“消息10054,级别20,状态0,行0” [英] Error “Msg 10054, level 20, State 0, Line 0” with MSSQL under Docker

查看:663
本文介绍了在Docker下使用MSSQL错误“消息10054,级别20,状态0,行0”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Ubuntu 16.04 LTS机器中设置了几个docker容器。所有这些都有相同的[容器图像](https://hub.docker.com/r/microsoft/mssql-server-linux/)。 



它工作得很好,但有些用户在尝试持久查询时报告了一个常见问题,执行后大约一分钟,他们收到一条错误消息:



>男装。 10054,Nivel 20,Estado 0,Línea0
$
> Error en el nivel del transporte al recibir los resultados del servidor。 

> (提供者:TCP提供者,错误:0 - Se ha forzadolainterruptciónununconexiónexistentepor el host remoto。)



错误信息被翻译成英语为`消息10054,级别20,状态0,行0`。



我可以在其配置下修改某些内容吗? 



PS:我注意到在服务器的属性中连接> <远程服务器连接>我已经"Permitir conexiones remotas con este servidor checked",等待时间为0秒(无等待时间)。



我将一个容器的配置快照附加为我可以尽快。

I've set up several docker containers in my Ubuntu 16.04 LTS machine. All of them have in common the same [container image](https://hub.docker.com/r/microsoft/mssql-server-linux/). 

It works pretty well, but some users have reported me a common issue when attempting a long-lasting query and about a minute after it execution, they get an error message:

> Mens. 10054, Nivel 20, Estado 0, Línea 0
> Error en el nivel del transporte al recibir los resultados del servidor. 
> (provider: TCP Provider, error: 0 - Se ha forzado la interrupción de una conexión existente por el host remoto.)

The error message is translated into english as `Msg 10054, level 20, State 0, Line 0`.

Is there something I can modify under their configuration? 

PS: I've noticed that in server's properties Connection > Remote servers connections > I've "Permitir conexiones remotas con este servidor checked", having 0 seconds (no wait time) of waittime.

I'll attach one container's configuration snapshots as soon as I can.

推荐答案

您好,

如果只有部分用户收到连接错误,那可能是因为他们工作站上的防火墙阻止了访问:

配置Windows防火墙以允许SQL Server访问

If only some users get a Connection error, then may be because the Firewall on their Workstation is blocking the Access: Configure the Windows Firewall to Allow SQL Server Access


这篇关于在Docker下使用MSSQL错误“消息10054,级别20,状态0,行0”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆