前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP Spartacus部署到SAP Commerce Cloud并开启SSR之后,如何查看log

SAP Spartacus部署到SAP Commerce Cloud并开启SSR之后,如何查看log

作者头像
Jerry Wang
发布2021-02-24 10:32:42
3740
发布2021-02-24 10:32:42
举报

这个note有说明:

2708660 - How to Get Support for Spartacus JS Storefront SAP Commerce Cloud

SAP帮助文档

Once the build is redeployed, the SSR feature is active. To troubleshoot SSR issues, search for jsapps logs in Kibana.

A simple way to get logs for the js storefront is to set a filter on Kibana with : "Kubernetes.pod_name | is | jsapps* " as in the link below where we clearly can see an SSR timeout for a specific URL request : “SSR rendering exceeded timeout, fallbacking to CSR for /electronics-spa/en/USD/product/300938/Photosmart%20E317%20Digital%20Camera…”: https://logs.c4avqjtcp1-conforama1-d1-public.model-t.cc.commerce.ondemand.com/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:‘2020-11-26T12:13:49.531Z’,mode:absolute,to:‘2020-11-26T20:13:49.531Z’))&_a=(columns:!(_source),filters:!((’$state’:(store:appState),meta:(alias:!n,disabled:!f,index:‘flb-’,key:kubernetes.pod_name,negate:!f,params:(query:'jsapps’,type:phrase),type:phrase,value:‘jsapps*’),query:(match:(kubernetes.pod_name:(query:‘jsapps*’,type:phrase))))),index:‘flb-*’,interval:auto,query:(language:lucene,query:timeout),sort:!(time,desc))

I’ve checked your last build log and saw that

Name: conforama-storefront Path: conforama-storefront (Of course alway make sure its the right path that you are using) enableSSR: true

Thus when loading the js home page and navigating around on the same URLs that had the SSR timeout I can’t see an undesired behavior or a timeout and it seems working for now (of course it would depend on which pages are configured to be CSR or SSR). Could you confirm : https://logs.c4avqjtcp1-conforama1-d1-public.model-t.cc.commerce.ondemand.com/app/kibana#/discover?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-1h,mode:quick,to:now))&_a=(columns:!(_source),filters:!((’$state’:(store:appState),meta:(alias:!n,disabled:!f,index:‘flb-’,key:kubernetes.pod_name,negate:!f,params:(query:'jsapps’,type:phrase),type:phrase,value:‘jsapps*’),query:(match:(kubernetes.pod_name:(query:‘jsapps*’,type:phrase))))),index:‘flb-*’,interval:auto,query:(language:lucene,query:timeout),sort:!(time,desc))

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-01-28 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档