Gravatar for

Question by naveen, Oct 3, 2016 3:37 PM

Error reading license file from the disk

I have one CM server and 2 CD servers . I have configured coveo for sitecore in CM server and it works fine. So, I have copied coveolicense.xml file from CM server to CD servers as CD servers reside in DMZ which don't have outbound access.

Then I am getting following exception , What can I do to resolve this issue without opening port for

6148 14:21:45 WARN  An error occurred while retrieving license from disk.
Exception: Coveo.SearchProvider.Licensing.Exceptions.InvalidLicenseCodeException
Message: The Coveo license code is currently invalid.
Source: Coveo.SearchProvider.Licensing
   at Coveo.SearchProvider.Licensing.LicenseCodeParser.DecryptLicense(String p_LicenseCode)
   at Coveo.SearchProvider.Licensing.OnDiskLicenseRetriever.GetLicense()

6148 14:21:45 ERROR Exception occurred while trying to validate license in the content editor. Features will be disabled.
Exception: Coveo.SearchProvider.Licensing.Exceptions.LicenseNotFoundException
Message: Could not retrieve Coveo for Sitecore license.
Source: Coveo.SearchProvider.Licensing
   at Coveo.SearchProvider.Licensing.Cloud.LicenseRetriever.GetLicense()
   at Coveo.SearchProvider.Licensing.LicenseManager.ValidateLicense()
   at Coveo.SearchProvider.Licensing.LicenseManager.IsFeatureEnabled(LicenseFeature p_LicenseFeature)
Gravatar for

Comment by François Lachance-Guillemette, Oct 3, 2016 4:04 PM

Hi @Naveen,

There should be another error in the logs which might give us more information about your error, starting with "An error occurred when trying to validate the license code:"

What is your Coveo for Sitecore version? Sitecore version ?


1 Reply
Gravatar for

Answer by abhisfortitude, Nov 7, 2016 1:30 PM

@Naveen: You would have to request DMZ exception to allow communication. We had to do the same.

On another note, although not exactly the same architecture but I had the exact same exception when I was trying to set up CM and CD on my "local" environment despite coping the /Data/Coveo folder from CM to CD. Here is what resolved the issue on my local:

  1. Ensured that /Data folder has proper read permissions.
  2. Cleared the browser cache.
  3. Restarted the IIS.
Gravatar for

Comment by abhisfortitude, Nov 7, 2016 1:33 PM

Also remember that the cached license file which is located at /Data/coveolicense.xml is used as a backup incase there is a network connection issue to validate the license key from the Coveo Cloud. So you may be able to go this route, however you would have to seek Coveo support to confirm.

Ask a question