0

I keep getting the below error in sitecore CD servers every 5 seconds time.Is there any way to stop this error from happening.We dont use core DB for any security membership or for any login ourposes.But still we are getting this error very often.

ERROR Application error.
Exception: System.InvalidOperationException
Message: Could not find configuration node: databases/database[@id='core']
Source: Sitecore.Kernel
at Sitecore.Configuration.DefaultFactory.GetConfigNode(String xpath, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetDatabase(String name, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetDatabase(String name)
at Sitecore.Sites.SiteContext.get_Database()
at Sitecore.Pipelines.HttpRequest.DeviceResolver.Process(HttpRequestArgs args)
at (Object , Object )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
at Sitecore.Web.RequestEventsHandler.OnPostAuthenticateRequest(HttpContextBase context)
at Sitecore.Nexus.Web.HttpModule.​‏‭‬‌‪‫‭‏‭‫​‍​‮‬‭‪‏‍​‏‫‎‮​‫‮(Object , EventArgs )
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
7
  • This issue is related to some config issue, do you have core DB reference in connectionstring.config? – Gaurav Agarwal Oct 19 '20 at 10:31
  • Hi Surya Thank you so much for your answer,Is there a way to find that specific function or code, I have tried but I couldnt able to locate it. – Harish Oct 19 '20 at 13:35
  • Hi Yes, we have core DB reference in connectionstring config file. – Jay Oct 19 '20 at 13:40
  • Did you try this - sitecore.stackexchange.com/questions/18217/… – Gaurav Agarwal Oct 19 '20 at 13:42
  • Gaurav , No i didn't try that , because the reason for hesitation since its not recommended by sitecore. So we dont want want to take that risk. So if we can able to locate particular code where we call core DB as reference, then it will be useful for us. – Jay Oct 19 '20 at 13:46
1

The issue is that your content delivery server is trying to access core database and core database is not enabled on CD servers.

To fix this, you need to either find specific config/code/task which is calling "core" database and handle it accordingly or you should enable core database on content delivery by applying this patch . By the way enabeling core database on CD servers are not recommended.

2
  • Surya Thank you so much for your answer, Is there a way to find that specific function or code, I have tried but I couldn't able to locate it. – Jay Oct 19 '20 at 13:51
  • @Jay Search for "Core" in your entire solution and also in showconfig.aspx. You might find code/custom config referring to core db. – Surya Narayan Oct 20 '20 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.