Skip to main content

Posts

Showing posts with the label container

Sitecore Pod deployment not updating to the latest image in Kubernetes

A fellow Sitecorian reached out to me for help on an issue related to Sitecore pod deployments in Kubernetes. They built a web application based on Sitecore 10.4 Headless SXA on Azure Kubernetes Services Cluster and used Azure DevOps for CICD> The Problem We found that the latest code is not getting released to our Sitecore pods. We checked the release pipelines and Deploy Application Specifications steps has logs that mentioned that cm and cd pods are unchanged which means it did not find any differences in the build deployed to Sitecore pods and the build downloaded in pipeline. The Solution We discussed this with our Sitecore rep and he mentioned this is a known issue with Kuberenetes and it occurs as latest tag is used for fetching images from Container Repository. These images get cached and there are chances that the latest image is not picked correctly from Container Registry.  I tried googling for it and I found the following stackoverflow link talks about similar issue ...

Installing Sitecore 10.4 on Kubernetes: A Step-by-Step Guide

Introduction Recently, a community member attempted to install Sitecore 10.4 on a Kubernetes (K8s) cluster and reached out to me regarding the challenges they faced. Despite following Sitecore's standard installation document, they encountered issues due to their limited knowledge of Kubernetes. This blog post summarizes their experience and serves as a reference for other developers in a similar situation. Steps for Installation To successfully set up a Sitecore instance in a K8s cluster, follow these detailed steps: Prerequisites Access to Azure Kubernetes Service (AKS) : Ensure you have the ability to create namespaces and clusters in AKS. Having a team member knowledgeable in Kubernetes is highly beneficial. Local Tools : Install Azure CLI, Chocolatey, and Helm on your local machine. You'll be needing these while executing commands in PowerShell. Cluster Specifications Ensure your cluster meets these specifications: Kubernetes 1.27.x or later Windows Server 2019 version 18...

What are resource files in Sitecore 10.1?

Do you know that version 10.1 onwards, Sitecore is storing default items as resource files. This is an interesting update as the files on disk are binary-serialized item data using Google’s ProtoBuf specification – in this case using the ProtoBuf.Net library for .Net. Why to store item as resource files? Sitecore has lots of  out-of-box items like sitecore/content/Home which are present in Sitecore databases. Sitecore has changed this approach to store these items on file system as resource files as ProtoBuf data to solve the complexity related to upgrading the Sitecore instances especially in containerized environments. If you have an instance of Sitecore 10.1 or above running, you will find these below files. Default Sitecore items are part of these files now -  How do they help in upgrades? In containerized solution, code and config updates are wrapped in Docker Image. When the out of box Sitecore items are placed in resource files, they get updated as part of Docker I...

Error for Brightcove image in Sitecore Docker - Could not resolve type name: Brightcove.Web.Pipelines.RegisterRoutes, Brightcove.Web

This happened during one of our upgrade projects from Sitecore 8.2 to Sitecore 10.1 on dockers. We use Brightcove for videos in our solutions. We added a Brightcove image to docker-compose. After spinning up the environment using docker-compose up, we got the below error -  The reason we got this error as we missed the Brightcove dlls in our docker build folder -  These dlls were missed to be checked in to source control due to gitignore file. You man need to modify the paths in gitignore to include these files as well in source control. Hope it helps!

HOW TO DEBUG SITECORE 10.1 DOCKER BASED SOLUTION

Problem   We are upgrading from Sitecore 8.2.1 to Sitecore 10.1.1. We are moving towards containerized solution using Dockers as it is officially supported by Sitecore now. Most of the development team has worked on non-docker based Sitecore instances and are still adopting to working with containers based applications. One of the confusions pretty much every developer had was how to debug a Docker based containerized application.  Solution  Debugging container based application using Visual Studio is slightly different.  In Visual Studio, you have two options for attaching to a process in a container: Option 1: use the Containers window T o use the  Containers  window: If the  Containers  window is not showing, open it from the top  View  menu. Click  Other Windows , then  Containers . In the list of running containers, right-click on the one that you want to debug, and click  Attach to Process : The  Attach to Proce...

ERROR REBUILDING INDEXES IN SITECORE 10.1 ON DOCKER

We were using docker based Sitecore 10.1 for local development. This was an upgrade project and I was working on validating the items in upgraded Sitecore 10.1 environment.  Problem I started performing some simple searches in Content Editor's search box but got no results returned even when the item existed in the content tree. I realized I have never built the SOLR indexes since I setup the environment. So I went to control panel and attempted index rebuild. I got the following error -  Job started: Index_Update_IndexName=sitecore_master_index |# Exception : System . Reflection . TargetInvocationException : Exception has been thrown by the target of an invocation. ---> SolrNet . Exceptions . SolrConnectionException : <?xml version="1.0" encoding=" UTF -8"?> <response> <lst name="response Header "> < int name="rf">1< / int > < int name="status">400< / int > < int name=...