After upgrading some of our solutions to Sitecore 8.1 update-1 we started seeing errors in our log files, such as this:
... ERROR Error in FileWatcher. Internal buffer overflow.
Message: Too many changes at once in directory:path-to-data-dir\Data.
I haven’t figured out exactly why this happens yet, but we do quite a lot of automated file deployments etc, and it seems to occur more often around deployments as well as on local builds on our dev machines. I searched all our machines and the exception had occurred in all our instances that were running update-1, and I didn’t find the error in any instances running other versions of Sitecore.
With very good help from Sitecore support, it turned out it could be solved by moving the license file. As suggested, we just created a license folder in the Data dir and moved the license.xml file in there, and then we applied the following License.config patch into App_Config/Include:
<?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <settings> <setting name="LicenseFile"> <patch:attribute name="value">$(dataFolder)/license/license.xml</patch:attribute> </setting> </settings> </sitecore> </configuration>
Even if you haven’t seen the exception yet, I suggest you apply this patch if running Sitecore 8.1. It doesn’t do any harm regardless if you’re affected by it or not.