Network error code 0x80090330 - existing connection was forcibly closed by the remote host

Pds 46 Reputation points
2021-03-13T01:07:20.693+00:00

Hi,
We have on going issue within our one of the job running every few minutes but every day it's keep failing 2-3 times randomly, no specific timing.
Basically Client m/c running BCP job which trying contact target database sql server 2014.
We checked TLS and it's all same on both Client and server.
We also have updated ODBC drive 13.
When I am checking the Sql Server Error log, every time it shows following error on Server:

Error:
Network error code 0x80090330 occurred while establishing a connection; the connection has been closed. This may have been caused by client or server login timeout expiration. Time spent during login: total 136 ms, enqueued 0 ms, network writes 0 ms, network reads 1 ms, establishing SSL 134 ms, network reads during SSL 98 ms, network writes during SSL 0 ms, secure calls during SSL 36 ms, enqueued during SSL 0 ms, negotiating SSPI 0 ms, network reads during SSPI 0 ms, network writes during SSPI 0 ms, secure calls during SSPI 0 ms, enqueued during SSPI 0 ms, validating login 0 ms, including user-defined login processing 0 ms. [CLIENT: 10.X.X.X)

When I check log where our job running, I see following error:

SQLState = 08001, NativeError = 10054
Error = [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: An existing connection was forcibly closed by the remote host.
SQLState = 08001, NativeError = 10054
Error = [Microsoft][ODBC Driver 13 for SQL Server]Client unable to establish connection

Any idea what happening when job is failing?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,682 questions
{count} votes

6 answers

Sort by: Most helpful
  1. crlpr-mcsa-1314 1 Reputation point
    2021-03-13T04:02:47.413+00:00

    Hi!
    Try to disable TTL for all connections entrance to the database.
    Hope it help.


    If this answer ok, mark as resolved and Upvoted


  2. AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
    2021-03-15T08:27:22.5+00:00

    Hi @Pds ,

    What the version of SQL Server and OS are you using?
    Could you please try to install SP3 and SP3 CU4 for SQL Server 2014 if you have not installed them?
    Please refer to TLS 1.2 support for Microsoft SQL Server which might help.

    Best Regards,
    Amelia


  3. Erland Sommarskog 100.9K Reputation points MVP
    2021-04-15T21:09:42.953+00:00

    Not much help, but I looked up the code 0x80090330 the in the old Error Lookup utility and it tells me /The specified data could not be decrypted. /

    But I don't think it is a TLS issue, because I would not expect such errors to be intermittent.

    It could be something in your network that is eating bits and thereby disrupting communication. Although in that case, you could not only see errors on login. Unless the issue is in with the communication the AD?

    0 comments No comments

  4. pdsqsql 391 Reputation points
    2021-04-15T21:37:01.147+00:00

    Thanks Erland.
    I even don't think so any TLS issue.
    It's strange that randomly having issue so couldn't find it out but every time it has Network Error code 0x80090330 because I turned on Trace Flag otherwise I am not gonna know the error code.

    Any Driver related Issue?

    I can see in my Job scheduler following Error whenever I see error code 0x80090330.

    SQLState = 08001, NativeError = 10054 Error = [Microsoft][ODBC Driver 13 for SQL Server]SSL Provider: An existing connection was forcibly closed by the remote host.
    SQLState = 08001, NativeError = 10054
    Error = [Microsoft][ODBC Driver 13 for SQL Server]Client unable to establish connection


  5. pdsqsql 391 Reputation points
    2021-04-16T22:26:05.333+00:00

    Thanks once again Erland.

    So which version of driver you want me to update?
    It will be on Sql server 2014, right or both Job scheduler server (where code getting executed) ?
    Do you think that actual Server Memory also causing issue as we have total 8 GB and 6 GB is allocated?