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

SQL Server Cannot Connect to the Vault Database

Last updated on 18 March 2022

Admin
Connections to External Databases (Integrated)

Overview

When attempting to access the M-Files vault the following error will appear for all vault users and M-Files will not open:
CoSnapIn.cpp, 737, M-Files Server cannot connect to the vault database. (0x80040456)
CoSnapIn.cpp, 981, M-Files Server cannot connect to the vault database. (0x80040456)
Item_DocumentVault.cpp, 2637, M-Files Server cannot connect to the vault database. (0x80040456)
Item_DocumentVault.cpp, 2827, M-Files Server cannot connect to the vault database. (0x80040456)
RPCMethodCallWithRetry.h, 177, M-Files Server cannot connect to the vault database. (0x80040456)
RPCMethodCallWithRetry.h, 177, M-Files Server cannot connect to the vault database. (0x80040456)
RPCVaultsAdmin.cpp, 1803, M-Files Server cannot connect to the vault database. (0x80040456)
RPCVaultsAdmin.cpp, 347, M-Files Server cannot connect to the vault database. (0x80040456)
VaultManager.cpp, 925, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 3733, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 3065, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 3034, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 3147, M-Files Server cannot connect to the vault database. (0x80040456)
VaultDBSession.cpp, 897, M-Files Server cannot connect to the vault database. (0x80040456)
VaultDBSession.cpp, 837, M-Files Server cannot connect to the vault database. (0x80040456)
DBSession.cpp, 643, M-Files Server cannot connect to the vault database. (0x80040456)
DBSession.cpp, 643, Unspecified error. (Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it.  (ERROR: 18486, SQLSTATE: 42000)) (0x80004005)
DBSession.cpp, 585, Unspecified error. (Login failed for user 'sa' because the account is currently locked out. The system administrator can unlock it.  (ERROR: 18486, SQLSTATE: 42000)) (0x80004005)
(M-Files 22.2.11149.3)

 

Solution

This is a critical error specific to on-premise vaults using Microsoft SQL as their database engine. The error appears when someone has unsuccessfully attempted to log in to the SQL Server too many times, causing the login to be locked out as a security measure.

A System Administrator will need to unlock the "sa" account in Microsoft SQL Server Management Studio. You can unlock the account in SSMS by using another SQL Server Admin account or by logging in with Windows Authentication. Use the following command:


ALTER LOGIN sa WITH PASSWORD = 'yourpass' UNLOCK ;
After this login has been unlocked, it is strongly suggested to create a new SQL login for the M-Files server so that the likelihood of such lockout occurring again is reduced. Since "sa" is the default SQL Server username, it is more prone to brute-force attacks and would cause this error to reoccur.

Still need help?

On this page