尝试将第一个应用程序推送到 SAP,出现错误“超过总路由”。我该如何纠正?

Vic*_*azi 5 sap cloud-foundry

我正在参加 Pivotal 的Cloud Foundry 培训。我在 SAP 设置了一个 30 天的试用帐户并尝试推送我的第一个“hello, world”应用程序,但出现错误

Updating app web-app... 
Mapping routes... 
You have exceeded the total routes for your organization's quota. FAILED
Run Code Online (Sandbox Code Playgroud)

我如何增加该配额?(这是我第一次也是唯一一次推动!不知道为什么我超越了任何东西!)

我试过

> cf org P2000121914trial_trial
Getting info for org P2000121914trial_trial...

name:                 P2000121914trial_trial
domains:              cfapps.us10.hana.ondemand.com
quota:                SUBSCRIPTION_QUOTA
spaces:               victor
isolation segments:
Run Code Online (Sandbox Code Playgroud)

我也试过

> cf create-quota small -m 2048M -i 1024M -r 10 -s 10
Creating quota small as vgrazi@gmail.com...
FAILED
Server error, status code: 403, error code: 10003, message: You are not
authorized to perform the requested action
Run Code Online (Sandbox Code Playgroud)

我的清单看起来像这样:

---
applications:
- name: web-app
  memory: 32M
  disk_quota: 256M
  random-route: true
  buildpack: "https://github.com/cloudfoundry/ruby-buildpack#v1.6.47"
Run Code Online (Sandbox Code Playgroud)

Joh*_*lph 5

公共 CF 部署中的配额通常由平台运营商设置,除非您已获得Org Manager 权限,否则客户无法对其进行调整。我很惊讶这似乎在 SAP 中配置不正确。

在任何情况下,您都可以尝试cf routes --orglevel查看您的组织正在使用的所有路由。

听起来这不适用于您的情况,但 CF 中一个常见的“初学者”错误是删除应用程序不会删除与其关联的任何路由,因为它们可能仍在被其他应用程序使用。您可以使用 删除与任何应用程序无关的路线cf delete-orphaned-routes

总之,这可能是只有他们的支持才能为您解决的问题。

Plug:如果您想快速启动和运行,还有一些提供商为开发人员提供带有免费层的 CF 托管。我是Meshcloud的联合创始人,我们还提供30 天免费试用。我可以向您保证组织和空间配额设置正确;-)