I have setup the sitecore 9 on my machine and used setup guide
I have installed SQL Server 2017 and SOLR 6.6.2 in Remote Server. [The OS is Windows Server 2012 R2 Standard]
I have followed the instruction for setting up the SOLR, enabled the SSL ...
In my dev machine [Windows 10], I have tried to execute install.ps1 file to install the Sitecore 9
Below is the install.ps1 file
#define parameters
$prefix = "sc9"
$PSScriptRoot = "D:\sc9_install"
$XConnectCollectionService = "$prefix.xconnect"
$sitecoreSiteName = "$prefix.sc"
$SolrUrl = "https://sg1dev06:8983/solr"
$SolrRoot = "\\sg1dev06\solr-6.6.2"
$SolrService = "Solr_6.6.2"
$SqlServer = "SG1DEV06"
$SqlAdminUser = "sa"
$SqlAdminPassword = "AtmLg69K"
#$solrParams = @{
# Path = "$PSScriptRoot\sitecore-solr.json"
# SolrUrl = $SolrUrl
# SolrRoot = $SolrRoot
# SolrService = $SolrService
# CorePrefix = $prefix
#}
#Install-SitecoreConfiguration @solrParams
#install client certificate for xconnect
$certParams = @{
Path = "$PSScriptRoot\xconnect-createcert.json"
CertificateName = "$prefix.xconnect_client"
}
Install-SitecoreConfiguration @certParams -Verbose
#install solr cores for xdb
$solrParams =
@{
Path = "$PSScriptRoot\xconnect-solr.json"
SolrUrl = $SolrUrl
SolrRoot = $SolrRoot
SolrService = $SolrService
CorePrefix = $prefix
}
Install-SitecoreConfiguration @solrParams -Verbose
#deploy xconnect instance
$xconnectParams = @{
Path = "$PSScriptRoot\xconnect-xp0.json"
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_xp0xconnect.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml"
Sitename = $XConnectCollectionService
XConnectCert = $certParams.CertificateName
SqlDbPrefix = $prefix
SqlServer = $SqlServer
SqlAdminUser = $SqlAdminUser
SqlAdminPassword = $SqlAdminPassword
SolrCorePrefix = $prefix
SolrURL = $SolrUrl
}
Install-SitecoreConfiguration @xconnectParams -Verbose
#install solr cores for sitecore $solrParams =
$solrParams = @{
Path = "$PSScriptRoot\sitecore-solr.json"
SolrUrl = $SolrUrl
SolrRoot = $SolrRoot
SolrService = $SolrService
CorePrefix = $prefix
}
Install-SitecoreConfiguration @solrParams
#install sitecore instance
$xconnectHostName = "$prefix.xconnect"
$sitecoreParams = @{
Path = "$PSScriptRoot\sitecore-XP0.json"
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_single.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml"
SqlDbPrefix = $prefix
SqlServer = $SqlServer
SqlAdminUser = $SqlAdminUser
SqlAdminPassword = $SqlAdminPassword
SolrCorePrefix = $prefix
SolrUrl = $SolrUrl
XConnectCert = $certParams.CertificateName
Sitename = $sitecoreSiteName
XConnectCollectionService = "https://$XConnectCollectionService"
}
Install-SitecoreConfiguration @sitecoreParams
I have got below error during the installation
Below is the Error Stack Trace for reference
[-------------------------------------------- StartWebsite : ManageWebsite -------------------------------------------]
[StartWebsite]:[Start] sc9.xconnect
VERBOSE: Performing the operation "Start-Website" on target "sc9.xconnect".
VERBOSE: Checking state of Website 'sc9.xconnect'
VERBOSE: Starting Website 'sc9.xconnect'
[-------------------------------- ConfigureSolrSchemas [1] : ManageSolrSchema ----------------------------------------]
VERBOSE: Resolving ConfigFunction extension 'joinpath'
VERBOSE: Resolved 'Invoke-JoinPathConfigFunction'
VERBOSE: Invoke-JoinPathConfigFunction
VERBOSE: Joining: C:\inetpub\wwwroot\sc9.xconnect\App_Data solrcommands schema.json
VERBOSE: Result: C:\inetpub\wwwroot\sc9.xconnect\App_Data\solrcommands\schema.json
VERBOSE: Checking Solr instance 'https://sg1dev06:8983/solr'
VERBOSE: GET https://sg1dev06:8983/solr with 0-byte payload
>> TerminatingError(Invoke-WebRequest): "Unable to connect to the remote server"
>> TerminatingError(Invoke-ManageSolrSchemaTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Could not find Solr instance: https://sg1dev06:8983/solr"
>> TerminatingError(Invoke-ManageSolrSchemaTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Could not find Solr instance: https://sg1dev06:8983/solr"
Install-SitecoreConfiguration : Could not find Solr instance: https://sg1dev06:8983/solr
At D:\sc9_install\sc9_install.ps1:55 char:1
+ Install-SitecoreConfiguration @xconnectParams -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
Install-SitecoreConfiguration : Could not find Solr instance: https://sg1dev06:8983/solr
At D:\sc9_install\sc9_install.ps1:55 char:1
+ Install-SitecoreConfiguration @xconnectParams -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
[TIME] 00:02:25
**********************
Windows PowerShell transcript end
End time: 20180417184401
**********************
Kindly help to resolve the issue.
Update 1
My SOLR is working fine and the certificate is valid
My SIF Version is as below
Note: I did manual SIF installation since the I got below error when I tried to install using script
sitecore-install-framework
andxconnect
already signifies Sitecore 9. I also suggest that when a moderator helps you improve your post, you leave the edits be ;-)