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

Moving M-Files client cache to a drive with different sector size

Last updated on 30 March 2021

Admin
M-Files Desktop

Overview

When the M-Files client cache is moved to another location where the sector size reported by the system differs from the previous location's sector size, it is possible that users are unable to use the M-Files Client anymore. The cache is by default located within the installation directory of the M-Files client under c:\Program Files\M-Files but in some systems, such as Citrix/RDS deployments, it is moved to another location, typically a network share.

Symptoms

One possibility is that M-Files Client shows error with title "Invalid data file:" and points to some .bin file. Error / error stack must also contain a text "Unexpected metadata header size: X. ( Expected: Y )" where X and Y are numeric values.

Cause and Reason

Migration of the cache between disks with different sector size is not supported.

Solution

Make sure that the new cache location reports the same sector size as the previous cache location. One possibility to check this would be using Windows command for Administrators called fsutil. This command is quite powerful and should be used only by advanced users who have a thorough knowledge of Windows operating systems. One example (Command Prompt ran as Administrator):
fsutil fsinfo sectorInfo C:

More information about the Windows command:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil

Note that this command only works with local drives. For environments where the cache is stored on a network location, such as a Citrix/RDS environment, you should not modify the cache location and take the environment into production use prior to ensuring the cache can be successfully transferred.
You can force the cache rebuild simply by deleting the old cache, however this will mean that all data not checked in to M-Files in that cache will be lost.

 

Still need help?