You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Narayanan, Bhagyasree" <bh...@capgemini.com.INVALID> on 2020/11/04 06:49:11 UTC

Solr 8.1.1 installation in Azure App service

Hi Team
              We have created a new sitecore environment with the Azure market place solution "Azure Experience Cloud" (PaaS). Sitecore version 9.3 XM scaled topology with SOLR search. Since Solr App doesn't come by default with the market place solution we created a new Web App for Solr.

Steps we followed for creating Solr App service:

  1.  Created a blank sitecore 9.3 solution from Azure market place and created a Web app for Solr.
  2.  Unzipped the Solr 8.1.1 package and copied all the contents to wwwroot folder of the Web app created for Solr using WinSCP/FTP.
  3.  Created a new Solr core by creating a new folder {index folder} and copied 'conf' from the "/site/wwwroot/server/solr/configsets/_default".
  4.  Created a core.properties file with numShards=2 & name={index folder}

We get the below error:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Index dir 'C:\home\site\wwwroot\server\solr{index folder}\data\index/' of core '{index folder}' is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: native

This is a pre-requisite for our Sitecore migration and we are not able to proceed further. Requesting you to kindly let us know whether the steps followed by us are correct.

Awaiting your earliest response.

Thanks
Bhagyasree
[cid:image001.jpg@01D6B2A4.B1B26ED0]
+91 9941709696

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

Re: Solr 8.1.1 installation in Azure App service

Posted by Erick Erickson <er...@gmail.com>.
I _strongly_ recommend you use the collections API CREATE command
rather than try what you’re describing.

You’re trying to mix manually creating core.properties 
files, which was the process for stand-alone Solr, with SolrCloud
and hoping that it somehow gets propagated to Zookeeper. This has
sometimes kind of worked in the past, but by luck rather than design.

This has never been a supported/recommended way of creating
collections. Even the lucky part has been removed in Solr 9.

The fact that you copy the config files to your folder is another red flag.
Configuration files live in Zookeeper as configsets and should never be
copied locally.

If this process is recommended by sitecore, then I suggest you contact
their support as I am certain this won’t be supported by Solr going
forward.

Best,
Erick

> On Nov 5, 2020, at 2:28 AM, Shawn Heisey <ap...@elyograg.org> wrote:
> 
> On 11/3/2020 11:49 PM, Narayanan, Bhagyasree wrote:
>> Steps we followed for creating Solr App service:
>> 1. Created a blank sitecore 9.3 solution from Azure market place and
>>    created a Web app for Solr.
>> 2. Unzipped the Solr 8.1.1 package and copied all the contents to
>>    wwwroot folder of the Web app created for Solr using WinSCP/FTP.
>> 3. Created a new Solr core by creating a new folder {index folder} and
>>    copied 'conf' from the "/site/wwwroot/server/solr/configsets/_default".
>> 4. Created a core.properties file with numShards=2 & name={index folder}
> 
> Can you give us the precise locations of all core.properties files that you have and ALL of the contents of those files?  There should not be any sensitive information in them -- no passwords or anything like that.
> 
> It would also be helpful to see the entire solr.log file, taken shortly after Solr starts.  The error will have much more detail than you shared in your previous message.
> 
> This mailing list eats attachments.  So for the logfile, you'll need to post the file to a filesharing service and give us a URL.  Dropbox is an example of this.  For the core.properties files, which are not very long, it will probably be best if you paste the entire contents into your email reply.  If you attach files to your email, we won't be able to see them.
> 
> Thanks,
> Shawn


Re: Solr 8.1.1 installation in Azure App service

Posted by Shawn Heisey <ap...@elyograg.org>.
On 11/3/2020 11:49 PM, Narayanan, Bhagyasree wrote:
> Steps we followed for creating Solr App service:
> 
>  1. Created a blank sitecore 9.3 solution from Azure market place and
>     created a Web app for Solr.
>  2. Unzipped the Solr 8.1.1 package and copied all the contents to
>     wwwroot folder of the Web app created for Solr using WinSCP/FTP.
>  3. Created a new Solr core by creating a new folder {index folder} and
>     copied 'conf' from the "/site/wwwroot/server/solr/configsets/_default".
>  4. Created a core.properties file with numShards=2 & name={index folder}

Can you give us the precise locations of all core.properties files that 
you have and ALL of the contents of those files?  There should not be 
any sensitive information in them -- no passwords or anything like that.

It would also be helpful to see the entire solr.log file, taken shortly 
after Solr starts.  The error will have much more detail than you shared 
in your previous message.

This mailing list eats attachments.  So for the logfile, you'll need to 
post the file to a filesharing service and give us a URL.  Dropbox is an 
example of this.  For the core.properties files, which are not very 
long, it will probably be best if you paste the entire contents into 
your email reply.  If you attach files to your email, we won't be able 
to see them.

Thanks,
Shawn