Caching error in MongoIndexInput

When running Squidex locally I am encountering a FileNotFound exception in MongoIndexInput.cs on this code: cacheInput = indexDirectory.CacheDirectory.OpenInput(indexFileName, context);

It is looking for segments.gen in a temp folder but it is not there. Any idea why this is happening?

Are you debugging it, because the index system throws a few exceptions that are expected.

I am running Squidex locally in debug mode. Is a FIleNotFoundException expected? Is segments.gen supposed to exist?

Yes, it is expected. In GridFS there is no way to check for files.