Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Verify And Repair Times Out Due to Communication Failure

Last updated on 16 December 2021 · 5 min read

Admin

Overview

When Verify And Repair Quick or Thorough is run, an error in the Windows Event Log is seen telling the operation failed due to a reason similar to one of the two entries below - related to a communication failure with the SQL server.

This usually happens with large vaults (there is file data about 1TB or more and usually that is on disk), and more often with the Thorough operation, as it performs more thorough checks on the files.

The time of the error usually coincides with (or is very near to) the time of the Nightly Maintenance (by default, 4:30 AM every day).

Vault name {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

The job "Verify Vault" finished running.

Status: Failed. Error: Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000))

Communication link failure (ERROR: -1, SQLSTATE: 08S01)

Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01)

Communication link failure (ERROR: -1, SQLSTATE: 08S01)

Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01)

Communication link failure (ERROR: 10054, SQLSTATE: 08S01)

TCP Provider: An existing connection was forcibly closed by the remote host.

 (ERROR: 10054, SQLSTATE: 08S01)

Or to

Vault name {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

The job "Verify Vault" finished running.

Status: Failed. Error: Unspecified error. (Communication link failure (ERROR: 10054, SQLSTATE: 08S01))

TCP Provider: An existing connection was forcibly closed by the remote host.

(ERROR: 10054, SQLSTATE: 08S01)

Description

This error is a combination of several events in the Windows Event Log that indicate the operation times out. Samples of their contents are listed below in chronological order.

To make sure that you are hitting the same issue, review the events you got and confirm they are similar to this event sequence.

The underlying issue is that due to the size of the vault, the operation takes too long to complete, and the SQL statement that is being processed times out, and so the SQL server closes the connection.

Information 1

SQL statement exceeded the maximum allowed runtime and was terminated.

Vault-GUID: {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

SPID: XXX

SQL command: SELECT

Start time: 12/1/2021 7:19:53 AM

Status: suspended

Where the "Start time" matches the time you started the Verify and Repair operation.

Information 2

Vault name {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

Connection to the database failed. Switching to a new connection pool.

New connection pool identifier: 4

Error stack:

DBSession.cpp, 1061, Catastrophic failure. (Communication link failure (ERROR: -1, SQLSTATE: 08S01)) (0x8000FFFF)

DBSession.cpp, 1061, Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01) (0x89790002)

(M-Files 21.11.10853.5)

Warning

M-Files Online

Rolling back the database transaction failed.

Catastrophic failure. (Communication link failure (ERROR: -1, SQLSTATE: 08S01))

Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01)

DBSession.cpp, 199, Rolling back the database transaction failed. (0x80040120)

VaultDBSession.cpp, 101, Rolling back the database transaction failed. (0x80040120)

DBSession.cpp, 123, Rolling back the database transaction failed. (0x80040120)

DBSession.cpp, 72, Rolling back the database transaction failed. (0x80040120)

DBSession.cpp, 72, Catastrophic failure. (Communication link failure (ERROR: -1, SQLSTATE: 08S01)) (0x8000FFFF)

DBSession.cpp, 1074, Catastrophic failure. (Communication link failure (ERROR: -1, SQLSTATE: 08S01)) (0x8000FFFF)

DBSession.cpp, 1061, Catastrophic failure. (Communication link failure (ERROR: -1, SQLSTATE: 08S01)) (0x8000FFFF)

DBSession.cpp, 1061, Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01) (0x89790002)

(M-Files 21.11.10853.5)

Error

Vault name {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

The job "Verify Vault" finished running.

Status: Failed. Error: Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000))

Communication link failure (ERROR: -1, SQLSTATE: 08S01)

Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01)

Communication link failure (ERROR: -1, SQLSTATE: 08S01)

Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01)

Communication link failure (ERROR: 10054, SQLSTATE: 08S01)

TCP Provider: An existing connection was forcibly closed by the remote host.

 (ERROR: 10054, SQLSTATE: 08S01)

RPCScheduledJobsHelper.cpp, 3191, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

RPCScheduledJobsHelper.cpp, 2767, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

VaultManager.cpp, 4904, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

Vault.cpp, 11866, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

VerifyVault.cpp, 544, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

VerifyVault.cpp, 3414, Unspecified error. (Protocol error in TDS stream (ERROR: 0, SQLSTATE: HY000)) (0x80004005)

VerifyVault.cpp, 3414, Communication link failure (ERROR: -1, SQLSTATE: 08S01) (0x89790002)

VerifyVault.cpp, 3414, Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01) (0x89790003)

VerifyVault.cpp, 3414, Communication link failure (ERROR: -1, SQLSTATE: 08S01) (0x89790004)

VerifyVault.cpp, 3414, Session Provider: Physical connection is not usable [xFFFFFFFF].  (ERROR: -1, SQLSTATE: 08S01) (0x89790005)

VerifyVault.cpp, 3414, Communication link failure (ERROR: 10054, SQLSTATE: 08S01) (0x89790006)

VerifyVault.cpp, 3414, TCP Provider: An existing connection was forcibly closed by the remote host.

 (ERROR: 10054, SQLSTATE: 08S01) (0x89790007)

(M-Files 21.11.10853.5)

Job type: Verify Vault

Vault name: Vault name

Vault ID: {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

Job execution ID: {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}

Solution

There are two things to try if you notice your Verify and Repair operation failing like that with SQL timeout errors related to communication failure:

  1. Increase the SQL operation timeout:
    1. Select the desired vault and click its Configurations item.
    2. Expand Advanced Vault Settings > Configuration > Databases.
    3. Select Nightly Maintenance and then the Configuration tab on the right-hand side.
    4. Go to the Time Limit for SQL Queries setting and change its value from the default 48 hours to the desired value. 
      If you estimate V&R will take three days, set it to 72 hours.
      For very large vaults you may need a larger value.
      You can set it to 0 to disable timeouts.
      Consider resetting it to the default value once the V&R operation is completed.
  2. If that alone does not help, disable the Nightly Maintenance for a while until the V&R operation completes:
    1. Select the desired vault and click its Configurations item.
    2. Expand Advanced Vault Settings > Configuration > Databases.
    3. Select Nightly Maintenance and then the Configuration tab on the right-hand side.
    4. Set the Enabled setting to No.
      Make sure to set it back to Yes after the V&R operation completes.

Still need help?