SAP Cloud SDK版本内存要求和CF部署错误

2020-08-13 21:18发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我最近将自己的Cloud SDK...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我最近将自己的Cloud SDK版本提高到了最新版本:

" @ sap-cloud-sdk/core":" 1.25.0",
 " @ sap/cloud-sdk-vdm-outbound-delivery-v2-service":" 1.19.2",
 " @ sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service":" 1.19.2",
 

我现在在srv package.json文件中看到与内存相关的错误:

无法读取配置文件:
/home/vcap/app/di_ws_root/cloudship/srv/node_modules/@sap-cloud-sdk/core/package.json
 错误:无法读取配置文件:/home/vcap/app/di_ws_root/cloudship/srv/node_modules/@sap-cloud-sdk/core/package.json
 错误:ENOMEM:内存不足,请阅读[ESLINT:()] 

我的nodejs模块最初在1012M内存和1012M磁盘空间上运行。 新版本需要什么类型的内存要求?

此外,我的Cloud Foundry部署现在失败。 我不确定这是否纯粹是内存问题,但是自上次成功部署以来,我更改的唯一npm模块是SAP SDK。

CF部署错误日志调用参考` TypeError:类扩展的值undefined不是函数或null `,参考npm模块https-proxy-agent。 鉴于https-proxy-agent是一个广泛使用的模块,我认为问题不在npm模块内,而可能是SDK如何导入它。

我仍然是一个相对较新的nodejs开发人员,所以请给我您有关这方面的知识。

https: //stackoverflow.com/questions/43176006/typeerror-class-extends-value-undefined-is-not-a-function-or-null

https://www.npmjs.com/package/https-proxy-agent

#2.0#2020 08 04 10:09:28.539#Z#DEBUG#com.sap.cloud.lm.lm.sl.xs2.9a370141-d638-11ea-a144-eeee0a8ebcf0.cloudship-srv.startAppTask#
 ##### com.sap.cloud.lm.sl.cf.persistence.services.ProcessLogger ####### flowable-async-job-executor-thread-42544 ###
 [PollStartAppStatusExecution] [cloudship-srv] be68b0c6-7a58-45b5-a4ee-28872dd62969 [Tue Aug 04 10:09:26 UTC 2020] {" error":{}," level":" error"," message":"  uncaughtException:类扩展值未定义不是构造函数或为null \ nTypeError:类扩展值未定义不是构造函数或为Object的null \ n。<匿名>(/home/vcap/app/node_modules/https-proxy-agent/dist /agent.js:37:44)\n在Module._compile(内部/模块/cjs/loader.js:1156:30)\n在Object.Module._extensions..js(内部/模块/cjs/loader。  js:1176:10)\ n在Module.load(内部/模块/cjs/loader.js:1000:32)\n在Function.Module._load(内部/模块/cjs/loader.js:899:14)  \ n在Module.require(internal/modules/cjs/loader.js:1042:19)\ n在require(internal/modules/cjs/helpers.js:77:18)\ n在Object。(/ home/vcap/app/node_modules/https-proxy-agent/dist/index.js:5:33)\ n在Module._compile(internal/modules/cjs/loader.js:1156:30)\ n在Object。  Module._extensions..js(internal/m  odules/cjs/loader.js:1176:10)"," stack":" TypeError:类扩展值未定义不是Object的构造函数或null \ n。(/home/vcap/app/node_modules/https  -proxy-agent/dist/agent.js:37:44)\ n在Module._compile(内部/模块/cjs/loader.js:1156:30)\n在Object.Module._extensions..js(内部/ modules/cjs/loader.js:1176:10)\ n在Module.load(internal/modules/cjs/loader.js:1000:32)\ n在Function.Module._load(internal/modules/cjs/loader。  js:899:14)\ n在Module.require(内部/模块/cjs/loader.js:1042:19)\n在require(内部/模块/cjs/helpers.js:77:18)\n在Object  。<匿名>(/home/vcap/app/node_modules/https-proxy-agent/dist/index.js:5:33)\n在Module._compile(internal/modules/cjs/loader.js:1156:30  )\ n在Object.Module._extensions..js(internal/modules/cjs/loader.js:1176:10)"," exception":true," date":" Tue Aug 04 2020 10:09:26 GMT  +0000(世界标准时间)","进程":{" pid":62," uid":2000," gid":2000," cwd":"/img/home/vcap/app"," execPa  th":"/img/home/vcap/deps/0/node/bin/node"," version":" v12.16.2"," argv":["/img/home/vcap/deps/0/node/bin/node/node  ","/img/home/vcap/app/server.js"]," memoryUsage":{" rss":81473536," heapTotal":41730048," heapUsed":25086680," external":1331112}}," os"  :{" loadavg":[2.48779296875,1.9306640625,1.58984375],"正常运行时间":381982},"跟踪":[{"列":44,"文件":"/img/home/vcap/app/node_modules/https-proxy  -agent/dist/agent.js"," function":null," line":37," method":null," native":false},{" column":30," file":"内部/模块/cjs/loader.js","function":"Module._compile","line":1156,"method":"_compile","native":false},{"column":10,"file":  "内部/模块/cjs/loader.js","函数":" Module._extensions..js","行":1176,"方法":"。js","本机":false},{"列 ":32," file":" internal/modules/cjs/loader.js"," function":" Module.load"," line":1000," method":" load"," native":false}  ,{" column":14," file":" internal/modules/cjs/loader.js"," function":" Module._load"," line":899," method":" _ load"," native  ":false},{" column":19," file":" internal/modules/cjs/loader.js"  ," function":" Module.require"," line":1042," method":" require"," native":false},{" column":18," file":" internal/modules/cjs/helpers.js"," function":" require"," line":77," method":null," native":false},{" column":33," file":"/img/home/vcap/app /node_modules/https-proxy-agent/dist/index.js","function":null,"line":5,"method":null,"native":false},{"column":30,"file  ":" internal/modules/cjs/loader.js"," function":" Module._compile"," line":1156," method":" _ compile"," native":false},{" column":  10,"文件":" internal/modules/cjs/loader.js","功能":" Module._extensions..js","行":1176,"方法":"。js","本机":  false}]," logger":" sap-cloud-sdk-logger"," test":" exception"," timestamp":" 2020-08-04T10:09:26.104Z"," msg":" uncaughtException: 类扩展值未定义不是构造函数或null \ nTypeError:类扩展值未定义不是构造函数或Object处null \ n。<匿名>(/home/vcap/app/node_modules/https-proxy-agent/dist/agent  .js:37:44)\ n在Module._compile(内部/模块/cjs/loader.js:1156:30)\n 在Object.Module._extensions..js(internal/modules/cjs/loader.js:1176:10)\ n在Module.load(internal/modules/cjs/loader.js:1000:32)\ n在Function中。  Module._load(internal/modules/cjs/loader.js:899:14)\ n在Module.require(internal/modules/cjs/loader.js:1042:19)\ n在require(internal/modules/cjs/在对象上的helpers.js:77:18)\ n。<匿名>(/home/vcap/app/node_modules/https-proxy-agent/dist/index.js:5:33)\n在Module._compile(内部/modules/cjs/loader.js:1156:30)\n在Object.Module._extensions..js(internal/modules/cjs/loader.js:1176:10)"," write_ts":1596535766104," write_at"  :" 2020-08-04T10:09:26.104Z"}(STDOUT,APP/PROC/WEB)#
7条回答
悠然的二货
2020-08-13 21:49

Marika Marszalkowski

上面的错误日志引用了sap-cloud-sdk-logger,这是否有助于您了解如何更正CF部署错误? 我的客户要求按时启用S/4 Hana Cloud,我目前无法将更新部署到UAT环境。

一周热门 更多>