Sitecore Commerce商业工具无法加载

时间:2018-10-01 13:10:18

标签: sitecore commerce sitecore-commerce-server

我在本地计算机上加载Sitecore Commerce商业工具时遇到问题。我的浏览器没有任何错误,您可以检查以下屏幕截图,但页面未初始化:

enter image description here

诸如GetNavigationView()和GetLanguageView()之类的操作似乎卡在了获取数据上,但我不知道可能是什么问题。

作为准备步骤,我执行了Sitecore Commerce Bootstrap,并通过Postman进行了环境初始化,一切正常。

CommerceAuthoring_Sc9 \ wwwroot \ config.json 中,我设置了证书指纹,这是我在AppSettings中拥有的指纹:

"AppSettings": {
    ...     
    "SitecoreIdentityServerUrl": "https://localhost:5050",
    "AllowedOrigins": [
          "https://localhost:4200",
          "https://sxa.storefront.com"],
    "AntiForgeryEnabled": false,
    "UseHttpsInKestrel": true,
    "SslPort": 5000,
    "SslPfxPath": "wwwroot/localhost.pfx",
    "SslPfxPassword": "sitecore"
}

我还在 CommerceAuthoring_Sc9 \ wwwroot \ bootstrap \ Global.json 中添加了我使用的所有环境。

在这里您可以检查一些我在CommerceAuthoring日志中注意到的错误:

ERROR ImportMinion Error Access to the path 'C:\Import.lock' is denied. Inner 
...
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)
...
ERROR SitecoreConnectionManager.Error: Message=One or more errors occurred.|Trace=   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
      at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.ProcessRequest(CommerceContext commerceContext, String action, String method, ItemModel itemModel)
      System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
      --- End of inner exception stack trace ---
      at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
      at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.ProcessRequest(CommerceContext commerceContext, String action, String method, ItemModel itemModel)
      ---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---
...
ERROR Management.block.getitemsbypath: Sitecore Item Service Get item failed, Item /sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/BusinessTools/ViewNames not found.

我检查了一些在论坛上已经提到过的解决方案,但到目前为止还没有运气。

如果您有任何建议,我将不胜感激!

已更新

一段时间后,我们在UAT env上收到以下错误。但是我不确定我们是否可以在不丢失数据的情况下在那里进行Commerce Bootstrap:

INFO Management.block.getitembypath./sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts/CommerceEngineDefaultStorefront|en
INFO Management.block.getitembypath./sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts/CommerceEngineDefaultStorefront: Language=en
ERROR SitecoreConnectionManager.Error: Message=Unexpected character encountered while parsing value: <. Path '', line 0, position 0.|Trace=   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.GetItemByPath(CommerceContext commerceContext, String path, String language)
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.GetItemByPath(CommerceContext commerceContext, String path, String language)
ERROR Management.block.getitembypath: Sitecore Item Service Get item failed, Item /sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts/CommerceEngineDefaultStorefront not found.
ERROR CtxMsg.Error.InvalidShop: Text=Shop 'CommerceEngineDefaultStorefront' does not exist.
ERROR PipelineAbort:Shop 'CommerceEngineDefaultStorefront' does not exist.
ERROR CtxMsg.Error.InvalidShop: Text=Shop 'CommerceEngineDefaultStorefront' does not exist.
ERROR CommerceController.OnActionExecuting.BadRequest: Code=Error|TermKey=InvalidShop|Text=Shop 'CommerceEngineDefaultStorefront' does not exist.

此外,在 PlugIn.Content.PolicySet-1.0.0.json 文件中指定的数据库中存在店面项目'CommerceEngineDefaultStorefront'。我觉得某些json文件的参数/值无效或格式错误,但是我找不到任何线索,而且它们最近没有更改。

答案

最终,看来我们的CD掉了一段时间。

0 个答案:

没有答案
相关问题