Skip to content
July 21, 2019 / kiranpatils

Does your Sitecore Azure App Index rebuild got stuck?

Challenge:

For one of our solution, Index rebuild was getting stuck after deployment (Jobs.aspx will show sitecore_Web_index is running since hours and it won’t complete till you restart and rebuild again). It never happened for other clients. One thing about this solution was it was on Azure App.

Solution:

As you do, We also did quick google search and found good posts around same topic. But neither of it was helpful.

So, we started digging more on our own.

Our solution was having Solr Switching configurations. So, we thought to check some records in Core DB. Want to know more about it? This post explains it nicely : https://sitecoresaga.wordpress.com/2016/02/27/solr-index-changing-existing-solr-index-configuration-to-point-to-a-new-collection/

  • From KUDU – We found out MachineName
  • Fired following query against Core DB:
  • We noticed lot of duplicate entries. Which we were not expecting to see.

We reached out to Sitecore and they suggested us to change Instance name setting to use custom name instead of default (Which is combination of website and machine name): <setting name=”InstanceName” value=”” />. We set this value to MYCLIENT-VM on our CM Server and this fixed issue!

How?

As you know Sitecore Web Apps are Azure Web Apps and Azure spins up new VM and swaps it on the fly. Which means your machine name will change. And Sitecore EventQueue relies a lot on Instance name value. Read this nice post to know more about EventQueue : https://www.geekhive.com/buzz/post/2018/02/sitecore-event-queue-visual-diagram/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: