Posts

Showing posts with the label learning

Resolved: Docker Not Starting with WSL2 - Here's the Fix

Image
Recently, I encountered an issue where Docker Desktop wasn’t starting properly on my Windows machine despite WSL2 being installed. After spending a good amount of time debugging and researching, I found the root cause and resolved it. I'm sharing this here in hopes that it might help someone else facing the same issue. Problem: Docker Desktop was failing to start and showed errors related to WSL2 or Hyper-V, such as: checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found. OR running WSL command wsl.exe --mount --bare --vhd <path-to-vhdx>: ... The usage help output is shown instead of execution.   Despite having WSL2 installed, Docker remained stuck or threw exceptions. Root Cause: WSL2 was installed on the machine, but its required Windows features were not enabled . Resolution Steps: Here is the step-by-step guide to fix this: ✅ 1. Check if Virtualization is Enabled Open Task Manager > Performance Tab > CPU Ensu...

Deleting solr documents from Solr Admin

Image
  Brief Introduction As we all knows many of the biggest websites on the internet use Solr as their search and navigation engine because it is extremely dependable. It offers centralised configuration, automated failover and recovery, distributed indexing, replication with load-balanced querying, and more. But sometimes while using it we face duplicates issues on to the sites search pages with broken image links which could not be resolved by either re-indexing the content tree/item in master/web databases or publish/unpublish the item/tree. when we query into the solr admin we found there were duplicates present into the respective cores. so below the steps you may follow to delete the respective document directly from the desired index.  Step 1 : Go to the respective solr server which you have configured for you sitecore instance for example http://localhost:8984/solr/#/ Step 2 : Select the respective core(from core selector dropdown) in which you want to delete the dup...
Image
How to Implement Custom Rendering Resolver for extending the Layout service in Sitecore  JSS Although Sitecore JSS allows you to configure a Rendering Contents Resolver on each rendering, which determines how a rendering and its associated data are serialized. Rendering Contents Resolvers are configured in /sitecore/system/Modules/Layout Service/Rendering Contents Resolvers ,  we might sometimes need some custom data in Layout service which is more relevant to the need of product. so in that case we have to write our custom Rendering Resolver in Sitecore , here we will discuss about that.   By default, Sitecore JSS provides below listed resolver : Datasource Resolver - The default behavior, serializes the rendering's datasource item Datasource Item Children Resolver - Serializes the children of the datasource item Context Item Resolver - Serializes the context item instead of the datasource item Context Item Children Resolver - Serializes the...