WX 8.1/16.3 - Intermittent failure retrieving thumbnails or rendered pages when the render cache is hosted on a NAS.

Issue:
Clients who use a NAS device to host a CIFS share for the render server cache path receive intermittent failures while retrieving thumbnails and/or rendered pages.

Cause:
There are two factors that cause intermittent failures
  • Some NAS devices may not immediately show files created in one CIFS session available to other sessions. 
  • The default setting in Windows Server is to cache file not found exceptions to reduce network overhead.
This combination can cause Web Services and/or REST Services to receive a FileNotFound Exception when attempting to fetch a file from the Render Cache Path shortly after a new file has been created by the Render Server.

Reference
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-7/ff686200(v=ws.10)


Solution:
NOTE:  A system reboot is required before the registry change will take effect.
  1. Open Regedit
  2. Find the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanWorkstation\.
  3. Right-click on LanmanWorkstation and select New -> DWORD (32-bit) Value.
  4. Rename the newly created “New Value#1” entry to “FileNotFoundCacheLifetime”.
  5. Double click on the new “FileNotFoundCacheLifetime” and confirm the Value data: is set to 0.
  6. From the same LanmanWorkstation key select New -> DWORD (32-bit) Value.
  7. Rename the newly creates “NewValue#x” to “DirectoryCacheLifetime” and confirm the Value data is set to 0.
  8. Reboot the server.

Did you find this article helpful?