In addition to my previous question, When I tried to re-execute the script with the help of script provided by Alex in his repository and my previous exception resolved but got one more error.
Commerce Services BootStrapping completed
[--------------------------- EnsureSyncDefaultContentPaths : EnsureSyncDefaultContentPaths ---------------------------]
Ensure/Sync default content paths for: AdventureWorksAuthoring
Checking if https://commerce-shops.sc9u1.sc/commerceops/CheckCommandStatus(taskId=1934) has completed ...
Ensure/Sync default content paths for environment AdventureWorksAuthoring failed, please check Engine service logs for more info.
Install-SitecoreConfiguration : ScriptHalted
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\Public\Install-SitecoreConfiguration.ps1:253
char:21
+ & $entry.Task.Command @paramSet | Out-Default
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
When I gone through the service logs (mentioned in above error log), I see below exception:
8 21:58:58 INFO Management.block.getitemsbypath./sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/BusinessTools/ViewPropertyNames|en
8 21:58:58 ERROR SitecoreConnectionManager.Error: Message=Invalid URI: The hostname could not be parsed.|Trace= at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.ProcessRequest(CommerceContext commerceContext, String action, String method, ItemModel itemModel)
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.ProcessRequest(CommerceContext commerceContext, String action, String method, ItemModel itemModel)
8 21:58:58 ERROR Management.block.getitemsbypath: Sitecore Item Service Get item failed, Item /sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/BusinessTools/ViewPropertyNames not found.
I checked ViewPropertyNames
and other nodes in Sitecore tree and all are there. My doubt on hostname related issue but not sure, which hostname the script is looking for. I cross verified all applications hosted in IIS and entries are there in the host file.
Thus not sure, what exactly the hostname missing here?