Image files suddenly missing from local file directory folder

Hello. We’ve been testing an application locally for a short while now and have encountered a problem where files in the project suddenly disappear. When creating a profile, we can add a profile picture to it. This is done via a specialization of the System.Image entity. However, after a random amount of time (can be days, can be weeks), we notice that the association is still there and all the data of this image is also still in the database (Thumbnail. name, size, associations, etc.), but the system can’t find the file anymore. We get the following error: The file '180888cddd787c829634da.jpg' could not be found. -------- LocalFileSystemStore:: File does not exist for key: bd630536-ab22-4667-a88b-778f7bdeb5ec at at at at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.getFileDocumentFileLength( at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.getImageFileLength( at com.mendix.webui.requesthandling.FileDownloadHelper.getContentLength(FileDownloadHelper.scala:199) at com.mendix.webui.requesthandling.FileDownloadHelper.doDownload(FileDownloadHelper.scala:54) at com.mendix.webui.requesthandling.FileDownloadHelper.handleDownload(FileDownloadHelper.scala:39) at com.mendix.webui.requesthandling.FileRequestHandler.handleRequest(FileRequestHandler.scala:47) at com.mendix.webui.requesthandling.FileRequestHandler.processRequest(FileRequestHandler.scala:33) at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest( at com.mendix.external.connector.MxRuntimeConnector.lambda$processRequest$0( at com.mendix.util.classloading.Runner.withContextClassLoader( at com.mendix.external.connector.MxRuntimeConnector.processRequest( at com.mendix.basis.impl.MxRuntimeImplBase.processRequest( at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service( at javax.servlet.http.HttpServlet.service( at org.eclipse.jetty.servlet.ServletHolder.handle( at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter( at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter( at org.eclipse.jetty.servlet.FilterHolder.doFilter( at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter( at org.eclipse.jetty.servlet.ServletHandler.doHandle( at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle( at org.eclipse.jetty.server.session.SessionHandler.doHandle( at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle( at org.eclipse.jetty.server.handler.ContextHandler.doHandle( at org.eclipse.jetty.server.handler.ScopedHandler.nextScope( at org.eclipse.jetty.servlet.ServletHandler.doScope( at org.eclipse.jetty.server.session.SessionHandler.doScope( at org.eclipse.jetty.server.handler.ScopedHandler.nextScope( at org.eclipse.jetty.server.handler.ContextHandler.doScope( at org.eclipse.jetty.server.handler.ScopedHandler.handle( at org.eclipse.jetty.server.handler.HandlerWrapper.handle( at org.eclipse.jetty.server.Server.handle( at org.eclipse.jetty.server.HttpChannel.lambda$handle$1( at org.eclipse.jetty.server.HttpChannel.dispatch( at org.eclipse.jetty.server.HttpChannel.handle( at org.eclipse.jetty.server.HttpConnection.onFillable( at$ReadCallback.succeeded( at at$ at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask( at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce( at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce( at at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( at org.eclipse.jetty.util.thread.QueuedThreadPool$ at java.base/ When we then look in our file explorer, the file itself has been removed but all of its data is obviously still in the database. So we haven’t performed any sort of delete action inside of the app, otherwise we wouldn’t still have the data. Does anyone know what the cause of this issue could be? Could it perhaps be a restriction on the local file storage of Mendix that it for example removes certain files after a certain time to limit the file storage size? Couldn’t find anything in the documentations about this. Any help or insights would be appreciated!
1 answers

This should not be happening and you might want to create a support ticket for this. Assumption is that you are using the Mendix cloud then you can try to debug furhter by downloading full backups of your environment. Try to find the filedocument object in the postgres database. The __uuid__ will correspond with the filename in files directory of your backup. So you can at least try to trace back when this is happening. But normally in the Mendix cloud files only dissappear if something in your model deletes the file. But then the record in the system.filedocument would also be changing.

If you are not in the Mendix cloud check the server for actions that might delete files in the deployment files directory of your project.