Grails cloudfoundry插件错误

时间:2013-11-05 19:44:48

标签: grails cloudfoundry

我正在尝试连接到我的帐户,我运行的每个cf- *脚本,我都面临以下错误:

  

运行脚本cf-info时出错:   org.springframework.web.client.ResourceAccessException:I / O错误   POST请求   " http://api.cloudfoundry.com/users/ * /tokens":api.cloudfoundry.com;   嵌套异常是java.net.UnknownHostException:   api.cloudfoundry.com

1 个答案:

答案 0 :(得分:1)

“api.cloudfoundry.com”是托管的Cloud Foundry v1的URL,不再存在。

Cloud Foundry Grails插件尚未更新以支持CF v2。您应该使用“cf”CLI与CF交互而不是Grails插件脚本。请参阅http://docs.cloudfoundry.com/docs/using/managing-apps/cf/index.htmlhttp://docs.cloudfoundry.com/docs/using/deploying-apps/jvm/index.html