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

2020-08-13 21:18发布

         点击此处--->   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)#

         点击此处--->   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条回答
zhangjiyang1323
1楼-- · 2020-08-13 21:25

SDK'ers,

我将我的SAP SDK依赖关系恢复到以前的版本,并成功重新部署到Cloud Foundry。

" @ sap/cloud-sdk-core":" ^ 1.3.0",
 " @ sap/cloud-sdk-vdm-outbound-delivery-service":" ^ 1.3.0",
 " @ sap/cloud-sdk-vdm-outbound-delivery-v2-service":" 1.18.0",

 

我如何确定哪些新版本/版本组合足够稳定,可以包含在我的CF部署中?何时/是否有增加的内存需求以运行更新版本的SDK?

DafaDDDa
2楼-- · 2020-08-13 21:27

奥斯汀·克洛斯凯

在部署阶段启动应用程序时,从日志中看到此错误" TypeError:类扩展值未定义的值不是函数或null"。

但是,内存错误似乎具有不同的日志格式。 您能否分享更多细节,您在哪里看到了内存错误? 您如何复制?

悠然的二货
3楼-- · 2020-08-13 21:49

Marika Marszalkowski

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

hengyuye
4楼-- · 2020-08-13 21:31

在部署时发生错误。

显示的错误日志在部署失败后使用以下命令下载:cf dmol -i

木偶小白
5楼-- · 2020-08-13 21:37

内存错误似乎无关紧要。 最新的sdk版本似乎是导致此错误的原因。

风早神人
6楼-- · 2020-08-13 21:37

嘿,奥斯丁,

我们的目标是在所有次要版本中向后兼容。 如果由于版本不兼容而无法使用,则不希望这样做。 最新版本应相互兼容。 我建议使用最新版本的服务,尤其是使用内核的开放源代码版本(@ sap-cloud-sdk/core)。 我们发现我们在1.25.0版中引入了一个错误。 也许您可以尝试1.24.1版本。

我们将调查您的TypeError可能来自何处。 也许这也可以解决内存不足的问题。

一周热门 更多>