Potential errors whilst installing Sitecore 9x

Error 1-

Install-SitecoreConfiguration : Cannot validate argument on parameter ‘Signer’. The “$_.HasPrivateKey -eq $true”

sc9xerror1

In this case check the modules installed and remove SIF 2.0.0

Get-Module SitecoreInstallFramework -ListAvailable

sc9xerror2

Get-InstalledModule -Name “SitecoreInstallFramework” -RequiredVersion 2.0.0 | Uninstall-Module

C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework

In case if this command throws errors not having access or is used by any other process, its worth giving to try to close the existing PowerShell window and open a new one.

Error 2 –

Install-SitecoreConfiguration : Cannot process argument transformation on parameter ‘Signer’. Cannot convert the “System.Object[]” value of type “System.Object[]” to type “System.Security.Cryptography.X509Certificates.X509Certificate2”.

sc9xerror3

Error details-

VERBOSE: CertStorePath: cert:\LocalMachine\Root

VERBOSE: Found Cert with thumbprint: FB7F471ACE74834D9D60A64F0577EC7F089AF5F2 46E7B414E415AC99F4039B16F19EEEFA5A7ADF55 0657459CB264A881D8C49A5804B3CE5C62340719 05C4F9B989E2C55370BF36EA34EE062A4BC1044B

Install-SitecoreConfiguration : Cannot process argument transformation on parameter ‘Signer’. Cannot convert the “System.Object[]” value of type “System.Object[]” to type “System.Security.Cryptography.X509Certificates.X509Certificate2”.

At C:\SitecoreInstall\Sitecore\SIFLess\sc902commerce.ps1:18 char:1

+ Install-SitecoreConfiguration @certParams -Verbose

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

 

In this case check the certificates that are already installed, note the certificate location in error itself and set this location  and remove item(s)

Set-Location Cert:\LocalMachine\Root

Get-ChildItem

Get-ChildItem Cert:\LocalMachine\Root\FB7F471ACE74834D9D60A64F0577EC7F089AF5F2 | Remove-Item

Error-

sc902error1

Check if SOLR instance is running, also check if IIS is running.

 

Error- The time period is invalid. 0x80630705

sc902error2

Remove any duplicate certificates from C:\certificates

I will keep updating this post if I see and fix more issues whilst installing Sitecore 9x 🙂

Configure Azure Search for Sitecore 9.1

Sitecore supports mainly 3 search providers- Lucene, Solr and Azure, of this Solr comes default with the Sitecore 9x installation.

Azure is one of the search provider which is stable and easy to scale.

For more details on advantages and limitations see this -https://doc.sitecore.com/developers/91/platform-administration-and-architecture/en/sitecore-azure-search-overview.html

To configure Azure search for your Sitecore instance you may follow below steps-

Azure search resource in market place-

1.  Create a azure search resource   

az1

2. Create New Search Service

Provide a URL, Subscription, Resource Group, Location and Pricing Tier. Create a New Search Service

az2

3.   What to configure and where to find details? 

Once a resource is created you see more details in Overview tab. To configure this in Sitecore- Url, Api version and key is required. API version can be seen in “Search explorer”

az3

az4

4. Sitecore configurations

Change search to Azure in web.config –

<add key=”search:define” value=”Azure” />

Add connection string cloud.search in connectionstring.config file-

<add name=”cloud.search” connectionString=”serviceUrl=https://sc91azuresearch.search.windows.net;apiVersion=2017-11-11;apiKey=<<apikey>>” />

Create a new search index, this is optional, as you may index master and web database. Configuration for same is available in App_Config/ContentSearch.Azure folder

az8

I created a new index by copying Sitecore.ContentSearch.Azure.Index.Web.config file named “sitecore_web_search_index”

5. Create Items and rebuild index

I have create a blog items and content for same.

az6

Goto Control Panel >> Indexing Manager and rebuild a newly created Index.

az5

az9

6. Indexes and items in Azure

Goto Overview tab of newly created search service and open Search explorer

See the change index button and newly creaeted index can be seen along with api version and request url.

Click on Search button and the indexed items are now in there.

blog_title and blog_description fields are indexed.

az7

Hope this helps in configuring the Azure search.

Next blog will be on creating a computed field and some considerations on indexing with Azure search.

 

 

Sitecore 9.0.2 xDB error- baseAddress should not be null. Parameter name: baseAddress

xdbError

If you see error after installing Sitecore 9 –

baseAddress should not be null. Parameter name: baseAddress error

This error comes when xDB is enabled and if connectionstring for database aren’t set. Either install xDB or disable xDB.

 

To disable xDB change following in Sitecore.Xdb.config  file, can be found in Marketing.xDB  folder

<setting name=”Xdb.Enabled” value=”false” />