2013-05-20 90 views
5

我可以从登录页面无障碍地登录到云代工厂。但当我尝试cf登录时,我得到了:云代工厂登录认证失败?

C:\Users\pding>cf target api.cloudfoundry.com 
Setting target to https://api.cloudfoundry.com... OK 

C:\Users\pding>cf login 
target: https://api.cloudfoundry.com 

Email> ********* (my email address) 
Password> ******** (my password) 

Authenticating... FAILED 

我错过了什么?

+0

你可以接受答案,如果你发现对你的问题有帮助的解决方案问这里...欢迎来到stackoverflow –

回答

3

面对同样的问题,我得到的解决方案是切换到vmc。 (我是在Windows 64位和使用Ruby 1.9.3-P327 64版本)

C:\Windows\system32>cf target api.cloudfoundry.com 
Setting target to https://api.cloudfoundry.com... OK 

C:\Windows\system32>cf login 
target: https://api.cloudfoundry.com 

Email> amol#####[email protected] 

Password> ****** 

Authenticating... FAILED 
Password> ****** 

Authenticating... FAILED 
Password> ****** 

Authenticating... FAILED 

后,我切换到vmc

C:\Windows\system32>vmc target api.cloudfoundry.com 
Setting target to https://api.cloudfoundry.com... OK 

C:\Windows\system32>vmc login 
target: https://api.cloudfoundry.com 

Email> amol######[email protected] 

Password> ****** 

Authenticating... OK 

cf不符合cloud_controller V1兼容,vmc只支持V1系统......(来源cf & vmc) 快乐探索..

+0

感谢您的答案,但他们(cloudfoundry)可能会有点帮助,现在所有的默认页'越来越开始'页面状态使用'cf'作为先决条件,但并没有声明'cf'不适用于cloudfoundry.com - 初学者会承担并随后失败。 “cf”自述文件也没有说明这一点,更加无益的是,只有“VMC”自述文件清楚地指出了这一点。 – teopeurt

+0

对于'readme'无法回答的疑问,最好在github上跳转到源代码。我在答复中给出了链接。但我同意初学者有点困难。 –

2

VMC是Cloud Foundry的V1,这将是6月30日我相信关闭客户端。要使用它,你需要运行:

vmc target api.cloudfoundry.com 

CF是Cloud Foundry的V2客户端。 Web控制台可在https://console.run.pivotal.io/(您的v1凭据应该工作)。

运行CF命令你需要运行:

cf target api.run.pivotal.io 

你V1的应用程序不会自动迁移到v2。您必须手动执行此操作。有关更多信息,请参阅常见问题解答:http://www.cloudfoundry.com/faq