SAP云平台上部署应用时遇到disk quota不够的问题该如何解决
我部署了一个应用到SAP云平台后,在控制台上看到这个应用的状态为CRASHED.
在Events区域看到这些日志:
tar: Jdeps/bin/yarnpkg.cmd: Cannot creatsymlink to.yarnlyarn-
v1.19.1/bin/yarmpkg.cmd: Disk quotaexceeded
tar: Ideps/bin/yarmpkg: Cannot createsymlink to…yarn/yarn-v1.19.1/bin/yarnpkgDisk quota exceeded
tar: Ideps/bin/yarn.js: Cannot createsymlink to…yarn/yarn-v1.19.1/bin/yarn.js:Disk quota . xceeded
tar: Jdeps/0/binyarn.cmd: Cannot createsymlink to …yan/yarn-v1.19.1/bin/yarn.cmd:Disk quota exceeded
tar: /depsi/bin/yarn: Cannot create symlinko.yarn/yarn-v1.19.1/binlyarn’: Disk quotaexceede
tar: Jdeps/0/bin/npx: Cannot create symlinkto./noderbin/mpx’: Disk quota exceededar: /deps/0/bin/npm: Cannot create symlinl
npm Disk quota exceededtar: Jdeps/bin/node: Cannot create symlinkto/mode/bin/node: Disk quota exceededtar: Jdeps/0/node/bin/npx: Cannot createsymtinik to unodemoautespmbln/ipyclijs: Disk quota exceede
tar: /deps/O/node/bin/npm: Cannot createSymlink tol
ibhode modules/npm/bin/npm-cli.js: Disk quota exceeded
ar: Exiting with failure status due to previous errors
reason: CRASHED
错误消息的核心 node_modules/npm/bin/npm-cli.js: Disk quota exceeded
在mta.yaml文件里将disk-quota的值从默认的256M改成1024M即可解决问题。
我在SAP云平台的WebIDE里创建了一个新的UI5应用,添加了一个HTML5 module:
试图将其部署到SAP云平台时,
遇到如下错误:
Service operation failed: Controller operation failed: 502 Updating service “dest_tutorial” failed: Bad Gateway:
Error creating service “dest_tutorial” from offering “destination” and plan “lite”: Service broker error: Service broker destination-service-broker failed with: Quota limit exceeded. Instance creation not allowed. To download logs of the process, use the multi-target application plug-in for the Cloud Foundry CLI command “cf dmol -i 4dd8405e-4e41-11ea-a7fb-eeee0a981a17” directly in your Cloud Foundry space.For more information see https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/e93b231895b64cbc9221a62953563a6f.html.Job failed.
我的mta.yaml文件如下:
ID: tutorial
_schema-version: '2.1'
version: 0.0.1
modules:
- name: ui
type: html5
path: ui
parameters:
disk-quota: 256M
memory: 256M
build-parameters:
builder: grunt
requires:
- name: uaa_tutorial
- name: dest_tutorial
resources:
- name: uaa_tutorial
parameters:
path: ./xs-security.json
service-plan: application
service: xsuaa
type: org.cloudfoundry.managed-service
- name: dest_tutorial
parameters:
service-plan: lite
service: destination
type: org.cloudfoundry.managed-service
错误消息的核心是这一行:
Service broker destination-service-broker failed with: Quota limit exceeded.
在quota分配里,增加Destination service的quota即可:
假设要上传Account的数据到系统:
点download metadata:
自动download一个zip下来:
在folder Templates里维护要上传的Account data:
把维护好的excel重新打成zip, upload:
稍后在monitor里会观察到成功上传的task:
看到import成功的消息:
UI上能搜索出这条今天(2017-11-14)创建的Account:
假设我已经开发好了一个SAP MTA应用,包含一个HTML5 module和一个Fiori Launchpad module,已经成功部署到SAP Cloud Platform上:
该HTML5 module里的SAP UI5应用,已经能够通过Fiori Launchpad访问了:
MTA应用的app router url是整个组件的访问入口。
在我的例子里app router的url如下:
我现在的需求是:通过SAP Cloud Platform上portal service提供的portal site作为入口,来访问这个MTA应用的HTML5 module.
首先创建一个Destination,url指向MTA应用的app router的url.
这个Destination还需要维护一个额外属性,名称为sap-platform, 值为CF:
进到SAP云平台的portal应用里,打开content manager,新建一个名为Candidates的应用:
在应用属性里,从system下拉列表里,找到之前创建的Destination:
App UI technology选择SAPUI5:
SAPUI5 component name,填上完整的带有namespace的名称:
在navigation区域,维护semantic object和action:
新建一个group:
取名为Work in Progress,再将之前创建的candidates分配给这个group:
同样打开名为Everyone的role:
将之前创建的Candidates应用分配给这个Role:
一切就绪,点击Go to site进入portal:
看到了我们之前创建的名为Work in progress的group,以及Candidates应用:
- 点赞
- 收藏
- 关注作者
评论(0)