Overview
If a vault upgrade errors out, then these suggestions should be considered.
Solution
If upgrading several vaults at a single time, the error below may show if the upgrade process encounters a bottleneck in trying to access the database during the upgrade process. This could be for any number of reasons some of which might be:
- Resources maxed out. If the server didn't have enough resources to complete all requests it could have just failed some requests. Best practice is to upgrade the server / vaults after hours to minimize resource usage by users.
- The vault was in the process of being upgraded (which does take the vault offline) and the Admin hadn't updated yet to show the most recent status.
- The server was bogged down with the other upgrades so did not respond in a timely manner to if the vault was online/offline.
FeatureSupport.cpp, 1298, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
IRPCVaultsAdmin.generated.cpp, 209, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
gRPCClient.cpp, 496, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
gRPCClient.cpp, 465, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
gRPCClient.cpp, 98, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
gRPC.generated.cpp, 29515, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
RPCVaultsAdmin.cpp, 281, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
VaultManager.cpp, 4874, Upgrading the document vault "Vault Name Here" failed. (0x8004040E)
VaultManager.cpp, 4874, Bringing the vault online failed. (0x80040120)
Vault.cpp, 12511, Bringing the vault online failed. (0x80040120)
Vault.cpp, 12511, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 4042, M-Files Server cannot connect to the vault database. (0x80040456)
Vault.cpp, 18528, M-Files Server cannot connect to the vault database. (0x80040456)
VaultDBSession.cpp, 910, M-Files Server cannot connect to the vault database. (0x80040456)
VaultDBSession.cpp, 843, M-Files Server cannot connect to the vault database. (0x80040456)
DBSession.cpp, 650, M-Files Server cannot connect to the vault database. (0x80040456)
DBSession.cpp, 650, Unspecified error. (Login failed for user 'mfserver {VaultGUID}'. (ERROR: 18456, SQLSTATE: 28000)) (0x80004005)
DBSession.cpp, 592, Unspecified error. (Login failed for user 'mfserver {VaultGUID}'. (ERROR: 18456, SQLSTATE: 28000)) (0x80004005)
DBSession.cpp, 592, Cannot open database "DB Name Here" requested by the login. The login failed. (ERROR: 4060, SQLSTATE: 42000) (0x89790002)
(M-Files <version> <timestamp>)
Suggestions:
- Take the vaults offline before performing an upgrade and then selectively bring them online and if needed manually perform the upgrade on a vault-by-vault basis per the instructions at the link below
https://www.m-files.com/user-guide/latest/eng/Operations_Upgrade.html?hl=upgrade%2Cvault
Another thing to try is to open M-Files Admin for the vaults that showed as Offline temporarily and right-click the vault name --> Operations --> Upgrade just to make sure the vaults upgraded successfully. This will either let the vault be upgraded or will tell if it's the same version as was just applied to the server.
