Excessive usages of threads on session expiration processing in Sitecore

Hi Champs,

Today I am sharing a case study for Excessive usages of threads on session expiration processing in Sitecore 9.2 XP and Sitecore 9.2 XC deployments.

Root cause for the issue:

Due to an issue in Session State providers during high load situations, Sitecore instance may end up in a thread starvation issue which can cause the website to become unresponsive.

Solution to the issue:

Sitecore has provided  SC Hotfix 367157-1.zip hotfix which is recommended to apply to all Sitecore 9.2 XP and Sitecore 9.2 XC deployments.

The patch should be installed on CD instances (or on servers that are dedicated for handling session expiration, if those are a part of a custom setup).

Happy Learning

Advertisement

Globalization Setting Sitecore PaaS and SMC

Hi Champs,

Today I am going to give you quick quick learning details about how you can setup default Culture of your Sitecore Application.

First question which will get raised why you want set  this?(specifically in Azure PaaS and Sitecore Managed Cloud)

Answer to this question is now a days we host Sitecore application in Azure PaaS or any Other Cloud offerings where the actual Timezone and Culture is different. In this case the impacts will come to few part off your application where your using default culture settings in application globalization. Which means miss match of time/date formats etc.

Next question will be How we can fix it ?

So the answer is as below.

  1. Go to your Sitecore application.
  2. Open Web.config.
  3. Serch for below term.                                                                                          “<globalization”
  4. You will find a predefined setting with few attributes but you can set few more attributes like below to set default Culture of your application.
<globalization requestEncoding="utf-8" responseEncoding="utf-8" enableClientBasedCulture="false" culture="en-GB" uiCulture="en-GB" />

Note:

  1. This setting is totally different than the Time Zone setting for Sitecore application.
  2. What I mean over here is even if you set Time Zone to the one which you want in Cloud still you will get issues with formats.
  3. So this settings will help all those issues in Sitecore.
  4. This settings is tested of in Azure PaaS and Sitecore Managed Cloud.

Happy Learning

Upgrading EXM to Sitecore Email Campaign Manger 9XP

Hi Champs,

Today I am going to write something which you require while upgrading your Sitecore EXM to Sitecore Email Campaign Manager 9XP. Below are some steps which you may need to check while upgrading.

  1. Make Sure that you have below all Email Campaign related items/Child’s from Sitecore 9XP Vanilla instance to your upgraded database, this means that you need to remove your items from the database which came from database upgrade add below items which are from the vanilla instance. Items from,
    • Items from /sitecore/templates/System 
    • Items from /sitecore/templates/System/Analytics 
    • Items from /sitecore/system/List Manager 
    • /sitecore/system/Marketing Control Panel 
    • Items from /sitecore/layout/Renderings/System/Email 
    • Items from /sitecore/media library/System/Email 
    •  Items from /sitecore/content/Email 
  2. After this, you can add all your previous items as different packages in Email experience.
  3. Follow the steps from https://doc.sitecore.com/developers/91/sitecore-experience-platform/en/rebuild-the-xdb-index-in-solr.html
  4. Also, change sittings for EXM config related to SMTP. Follow https://techienikhil.wordpress.com/2019/07/13/working-with-exm-in-sitecore-9xp/
  5. Disable all custom pipelines written for EXM from App_Config folder or any entry created from the respective pipeline config file.
  6. Also, follow https://sitecorehacker.com/2018/12/26/automatically-resuming/ this if you get issues for Email sending.

Please do write your comments,

Thanks for browsing !!

Sitecore 9XP installation in details with Issues(xDB, Solr, Multiple instance)

Hi Champs,

Today I am going to share not just Sitecore 9XP installation but the issues which you might get while installing Sitecore 9 on your machine or on Servers.

I will not waste time on explaining how to install Sitecore 9 installation as you can find generic steps on below articles

https://buoctrenmay.com/2019/04/06/sitecore-xp-9-1-update-1-step-by-step-install-guide-on-your-machine/

Issues which you will face while installing Sitecore 9 are below.

Issue 1 : Solr Core are not getting created while installing

  1. You need to go to Service.msc
  2. Need to find the Solr service which got created while running mentioned PowerShell script.
  3. Now you need to stop the service again restart service check your Solr is running.
  4. You also need to check the Solr port number you mentioned in the script.
  5. Now run again the Script.

Issue 2 : SSL certificate issue

  1. While installing/running the above script you will find an error for Marketing automation service.
  2. Error is while executing the above script it tries to start Marketing automation service for xDB with unsigned/non-self signed SSL.
  3. But it is unable to find it from machine root.
  4. for which you need to run below PowerShell code one by one to get unsigned/non-self signed SSL in proper machine root.
  5. And now again restart the installation by PowerShell script. also please check below link for any other issues related to this. https://sitecore.stackexchange.com/questions/8561/xconnect-the-http-response-was-not-successful-unauthorized
Get-Childitem cert:\LocalMachine\root -Recurse | 
    Where-Object {$_.Issuer -ne $_.Subject}

If you get any certificates, Move these non-self-signed certificates into the Intermediate Certification Authorities (i.e. CA) store

Get-Childitem cert:\LocalMachine\root -Recurse | 
    Where-Object {$_.Issuer -ne $_.Subject} | 
    Move-Item -Destination Cert:\LocalMachine\CA

Issue 3 : Installing multiple Sitecore 9 instance on same machine.

While installing multiple Sitecore 9 instance you need to take care of below.

  1. First, you need to change all parameter name’s according to other instance from the mentioned script.
  2. Please make sure that you will create Solr service with a different name and a different port.
  3. Before starting installation make sure that you will need to stop all Sitecore services for the other instances which you already created.
  4. Check that you have given proper SQL parameters.
  5. Now start the execution of PowerShell script.
  6. Don’t forget to restart all the services which you stopped for other instances.

Issue 4 : After installation issues with xDB service.

  1. If you found that there are issues for xDB you need to go to services.msc.
  2. Go to the Marketing Automation service for respective Sitecore instance you may find that it is started but actually not working.
  3. In this case, you need to go to PowerShell and need to run above commands for non-self signed certificates.
  4. Then go to IIS.
  5. Go to the connect website and rearrange the SSL for xConnect website bindings.
  6. Once this is done then again start the service.

Thanks you for reading !

Please write comments and post your questions.