Required license is missing: Runtime Sitecore
Asked Answered
F

9

13

I am getting this error

Required license is missing: Runtime

I have checked datafolder path

 <sc.variable name="dataFolder" value="C:\Path\Data" />

and license file settings

  <setting name="LicenseFile" value="$(dataFolder)/license.xml" />

also checked permission all is correct but still it is giving error.

Fawne answered 12/1, 2016 at 5:53 Comment(7)
Can you check using yourhostname/sitecore/admin/showconfig.aspx if the LicenseFile value is correct ? Maybe is overriden from a patch file.Whistling
I am not able to see config file because it is giving same error "Required license is missing: Runtime Sitecore"Fawne
Search for all dataFolder occurences in your App_config\include folderAthos
Partner License? They expire once a year.Nevels
No, It is not expired.Fawne
Were you able to solve this? I'm at this spot right now.Whiskey
@Swati Gupta Maybe you can help me. Look at this : #57904986Aborn
E
16

The most likely cause is a patch file in the include folder that is changing your path. Sometimes this is called "DataFolder.config" and may have the default path set in it, which will overwrite the setting value you might have in another patch config or in the Web.config file.

There are some tools that let you track down config settings without having a working Sitecore instance. I would try out the Config Builder (https://marketplace.sitecore.net/Modules/Sitecore_ConfigBuilder.aspx) which should be able to load up all your config settings and help you track down the problem.

Evolutionist answered 12/1, 2016 at 13:56 Comment(1)
Full path for reference: \App_Config\Include\DataFolder.configGynaeceum
W
6

I know it is a pretty late to answer, but for folks who end up here - this might be helpful. There could be couple of reasons why you get this error. Since OP had already mentioned that his license file has not expired - Another viable reason is

The datafolder path is wrong. the first line of the Sitecore.config line defines the datafolder path. For eg: something like this:

 <sc.variable name="dataFolder" value="C:\Inetpub\wwwroot\sitecoredev\Data\"/>

if you have any developer create a different instance name or folder and checks it in, it will not find the path and hence you will get this error.

Wersh answered 21/12, 2016 at 15:31 Comment(1)
This was my problem, thank you. Never would have thought to look for this. What a mess!Easterly
C
4

Check if the licence file has expired:

Confirm that the expiration date in the licenses has not been reached or passed. Open the license.xml file with a text editor and search for “expires”; find the line corresponding to the “20060319”. If the date has been reached or passed (for instance, if it is March 19, 2006 or later), the license will not work; obtain an updated license.

https://sdn.sitecore.net/Articles/Troubleshooting/License%20Issues.aspx

Chorea answered 21/6, 2016 at 14:19 Comment(3)
If it hadn't expired, it definitely has by now :)Relucent
I got this error and it was because the license was expired. I think the authors should have said as much in the exception's message, but fortunately, there's stackoverflow.com to compensate.Afire
just a note on this answer, i searched for "expiration" rather than "expires", not sure if this was changed from previous sitecore versions or not but this is what i found in sitecore 10 :)Pfeffer
E
3

I have installed 8.2 update 5 on my local machine. The default installation adds a folder called 'zzz' in App_config/include folder and creates DataFolder.config in that folder and references the data folder name from that config file. My publish overwrote/deleted that folder and i got the error 'Required license is missing: Runtime Sitecore'.

Adding that folder 'zzz' from my backup site resolved that issue.

Excited answered 9/12, 2017 at 1:7 Comment(0)
S
1

I have also noticed that even if after fixing the path you may still see this error. Once you fix path with valid license, DON'T forget to reset IIS/ Apppool.

Spatiotemporal answered 27/10, 2017 at 12:41 Comment(0)
L
1

Below are the possibilities for the error.

  1. Verify if the license file is present - You can check this in the default data directory of the Sitecore installation path. If the file is not there add it here and restart the IIS.
  2. The path of the License file is wrong - The default path of the Sitecore license file will be specified in the “web.config,” and if you are using the Sitecore 8+ version, then verify Sitecore.config file(App_config/Sitecore.config) where LicenseFile settings are provided
  3. Overriding the License file path - If you are using any Patch files or thrid-party libraries like brainjocks then make sure the patch file is not overriding the default path.
  4. License expired - Don't forget the check if you provided license is been still active or expired. You can do this by opening the license.xml in editor and verifying the field "expiry" and the date.

Config File settings

<sc.variable name="dataFolder" value="/data" />
<setting name="LicenseFile" value="$(dataFolder)/license.xml" />

Source - Sitecore Required license is missing: Runtime [Solved]

Lorianne answered 10/9, 2021 at 5:30 Comment(0)
O
0

Something to watch out for: I had multiple config files for different environments (e.g. DataFolder.QA.config, DataFolder.Live.config) which were overriding my DataFolder.config with values that were incorrect for my local environment. Deleting the unneeded environment configs got this working.

Oller answered 21/1, 2020 at 11:0 Comment(0)
O
0

go to "/app_config/sitecore.config" search for "LicenseFile" update the value to hold an absolute path to your sitecore license

Oneirocritic answered 7/4, 2023 at 12:5 Comment(0)
I
-4

if you have doubt whether sitecore is looking into correct place, check out /sitecore/admin/showconfig.aspx page. this is what sitecore really uses after combining all configurations. You can chekc both <sc.variable name="dataFolder" value="C:\Path\Data" /> and <setting name="LicenseFile" value="$(dataFolder)/license.xml" /> there. Of course this page only shows <sitecore>...</sitecore> part of configuration.

Also make sure that NETWORK SERVICE account or <your IIS app pool name here> account (depending on which Identity is bound to your App Pool instance) has full access to Data folder and also App_Data subfolder inside webroot, just to rule out any read/write access issue

Iconography answered 13/1, 2016 at 4:49 Comment(1)
You can not call /sitecore/admin/showconfig.aspx when the Licence file is missing. You get the same error then.Chorea

© 2022 - 2024 — McMap. All rights reserved.