Overview
There is slowness in Hubshare functions related to M-Files widgets. For example, the Views widget is loading views very slowly and sometimes the system gives an error like "The server has encountered an internal error". This happens to all users. The connection protocol has been changed from HTTPS to gRPC. The speed of the internet connection is checked, and the system is still slow.
When Views -widget is started the waiting time can be over 20 seconds and then error appears. (In Hubshare version 5.0.1 and later the waiting time is increased to 100 seconds).
There are enough M-Files Server resources available and other Widgets are working normally.
Also, this kind of error can be found from Hubshare server's logs:
[M-Files] Exception has been thrown by the target of an invocation.: Status (StatusCode="DeadlineExceeded", Detail="")
Solution
There can be one possible solution for this kind of slowness. Used database engine should be checked if it is Firebird.
First check what database engine you are using.
If Firebird is used, then check the size of the Firebird Metadata file.
Checking the Size of a Firebird Metadata File (m-files.com)
If metadata file's size is bigger than 1GB, then you should consider migrating the vault database to the Microsoft SQL Server. Here is the guide to how to migrate Vault database to Microsoft SQL Server.
Migrating the Vault Database to Microsoft SQL Server (m-files.com)
