Sitecore XP 10 Installation Errors

 Installed Sitecore 10 on my local machine using SIA. 

However, I faced one issue related to presence of PS Repository: https://sitecore.myget.org/F/sc-powershell/api/v2/

The error thrown by the installation process was:

The repository could not be registered because there exists a registered repository with Name 'SitecoreGallery' and SourceLocation 'https://sitecore.myget.org/F/sc-powershell/api/v2'. To register another repository with Name 'Temp41a681d3-a4e6-4aae-a74a-d8cb16de6089', please unregister the existing repository using the Unregister-PSRepository cmdlet.

Cannot validate argument on parameter 'Repository'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

The specified module 'SitecoreInstallFramework' with version '2.3.0' was not loaded because no valid module file was found in any module directory.

As per the error, i unregistered the repository with the cmdlet: 

unregister-psrepository

by providing the repository url -

I then ran the installer to see it finish successfully after the installation of SIF 2.3.0 as part of the pre-requisites.  Also, as part of pre-requisites, i installed Solr-8.4.0 in port 8989 since port 8983 was already in use. I also ensured to point to correct solr url and solr server path during the installation process.  

If you are someone like me who didn't modify the setup.exe.config, the installation will happen in a different folder and a different solr svc name will be created. I initially didn't take cognizance of the same and specified a path/url that didn't correspond to the solr install so, I got this error:

[------------- XConnectSolr_CleanCores : EnsurePath --------------------------]

Unable to parse [variable('XConnectSolr_Core.Root')] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [joinpath(variable('XConnectSolr_Solr.Server'), variable('XConnectSolr_Xdb.Name'))] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [joinpath(variable('XConnectSolr_Solr.FullRoot'), 'server', 'solr')] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [resolvepath(parameter('XConnectSolr_SolrRoot'))] - Exception calling "InvokeWithContext" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'C:\Solr\solr-8.4.0' because it does not exist.""""

[TIME] 00:00:33

Unable to parse [variable('XConnectSolr_Core.Root')] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [joinpath(variable('XConnectSolr_Solr.Server'), variable('XConnectSolr_Xdb.Name'))] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [joinpath(variable('XConnectSolr_Solr.FullRoot'), 'server', 'solr')] - Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to parse [resolvepath(parameter('XConnectSolr_SolrRoot'))] - Exception calling "InvokeWithContext" with "2" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'C:\Solr\solr-8.4.0' because it does not exist.""""

After i provided the right path and url (based on what is generated as per setup.exe.config), the install was successful. Needless to say, the better option, prior to the install, is to modify the setup.exe.config to ensure that the names match what is desired.

Post-installation, re-registered the PS repository just to maintain sanity:


Comments