MATLAB: Do I receive “Could not access MCR Component Cache ” when running an executable on the deployment machine

cachecomponentMATLAB Compilermcr

Why do I receive "Could not access MCR Component Cache " when running an executable on the deployment machine? We use a sever (fe-ml01) for building the executable and we use another server (fe-ml03) for executing this code. The fe-ml01 server has the MATLAB with compiler and licenses installed. The processing server (fe-ml03) has the correct MCR. 

Best Answer

The problem occurs when the mcrCache is corrupted. Set the "MCR_CACHE_ROOT" to a directory which has all the permissions. Use the mcrCache extracted in this directory. This will resolve the problem.