Overview
The following error usually means the entire M-Files system will be down. M-Files Server service will be stopped. Trying to log into the M-Files Admin or Client also gives the below error.
M-Files Online
Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000))
Database connection failed.
ServiceModuleBase.cpp, 1079, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
ServiceModuleBase.cpp, 825, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
ServiceModule.cpp, 196, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
Application.cpp, 1157, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
Application.cpp, 1945, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
DBSession.cpp, 645, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
DBSession.cpp, 585, Unspecified error. (Implementation limit exceeded
Transactions count exceeded. Perform backup and restore to make database operable again (ERROR: 335544381, SQLSTATE: 54000)) (0x80004005)
DBSession.cpp, 585, Database connection failed. (0x89790002)
(M-Files 22.4.11321.4 2022-06-15T15:48:24.467Z)
Solution
What has occurred is that the master.fdb file location in
C:\Program Files\M-Files\VERSION\Server\Data
Has become too large and the transactions cannot be committed. The quickest way to resolve the issue is to get a copy of the master.fdb file from previous known working time and replace the current one.
The easiest way to do this is to restore that working master database directly on the M-Files server if you still can use M-Files Admin:
If you cannot do this, follow these steps to restore this database backup through a separate server:
- In a separate blank (new) installation of M-Files Server, restore the Master Database MFB backup file.
- It is best if it is isolated from the internet and network so it cannot connect to any other system (e.g., a new virtual machine).
- Stop the M-Files Server service.
- Copy the master.fdb file from the location above.
- In the non-working location, stop the M-Files Server service.
- Take the non-working master.fdb file and rename it as something such as "_old_master.fdb".
- Paste the new master.fdb file into the same location as the non-working one.
- Make sure the permissions are *not* set to Read-Only for the new master.fdb file so that it can be read and written to.
- Start the M-Files Server service.
- Make sure that there is a scheduled job in the M-Files Admin for backing up the Master Database and that it is being run on a regular basis. Increase frequency if need be.
If you run into any issues or have any questions or are unsure about the above at all, please contact M-Files Support at support@m-files.com as there may be other ways to restore the Master DB.
Notes
The cause of this issue is most often because the Master Database does not have a backup job running. When the Master Database is backed up, it resets the transactions stored in the DB. The constant growth and overflow of transactions is the most likely root cause of this issue.
This is why it is suggested to have a Scheduled Backup Job set for the Master Database. Since this database is very small it can be set to run weekly with little system impact.
