2013-05-13 44 views
0

將目標設置爲api.cloudfoundry.com後,我無法登錄到「cf登錄」。無法使用cf命令登錄

我很確定我的憑據,因爲我可以登錄到login.cloudfoundry.com。

可能與新版本有關嗎?

我已經看到了一些時候,你問cf login -t output所以,這裏是我的: 爲*****

Authenticating. ---> 
request: post https://uaa.cloudfoundry.com/oauth/token 
headers: content-typeapplication/x-www-form-urlencoded;charset=utf-8acceptapplication/json;charset=utf-8authorizationBasic Y2Y6 
body: grant_type=password&username=bertyno%40yahoo.es&password=****** 
...<--- 
response: 401 
headers: content-typeapplication/json;charset=utf-8servernginxkeep-alivetimeout=20dateMon, 13 May 2013 12:19:13 GMTtransfer-encodingchunkedwww-authenticateBasic realm="UAA/client", error="unauthorized", error_description="No client with requested id: cf"cache-controlno-storeconnectionclose 
body: {"error":"unauthorized","error_description":"No client with requested id: cf"} 
---> 
request: post https://uaa.cloudfoundry.com/oauth/authorize?redirect_uri=https%3A%2F%2Fuaa.cloudfoundry.com%2Fredirect%2Fcf&client_id=cf&response_type=token&state=2b7fbfd964323e8c639da0157c00435b 
headers: content-typeapplication/x-www-form-urlencoded;charset=utf-8acceptapplication/json;charset=utf-8 
body: username=bertyno%40yahoo.es&password=******&source=credentials 
...<--- 
response: 401 
headers: pragmano-cache, no-cachecontent-languageen-UScontent-typeapplication/json;charset=UTF-8servernginxkeep-alivetimeout=20dateMon, 13 May 2013 12:19:14 GMTtransfer-encodingchunkedcache-controlno-cache, no-store, no-cache, no-store, max-age=0expiresThu, 01 Jan 1970 00:00:00 GMT, Thu, 01 Jan 1970 00:00:00 GMTconnectionclose 
body: {"error":"invalid_client","error_description":"Bad client credentials"} 
... FAILED 

由於更改密碼。

回答

0

Cloudfoundry.com給我發電子郵件約cloudfoundry V2推出(第5 6月):

CloudFoundry.com V2將圍繞6月10日獲得!

您可以檢查cloudfoundry.com支持的當前API中​​

你在cloudfoundry V1的應用不會被自動遷移到cloudfoundry V2:

您將需要遷移應用程序並從V1服務之前 數據刪除6月30日

cf是CLI訪問cloudfoundry v2和vmc是CLI for cloudfoundry v1。我想你在cloudfoundry v1中的當前用戶(你在vmc登錄中使用的那個)也必須遷移到v2(新的cf登錄命令)。

0

Cloud Foundry v2位於端點api.run.pivotal.io的後面。

如果您有用戶在Cloud Foundry v1上註冊,則其憑據已複製到run.pivotal.io。

快速入門:

gem install cf 
cf target api.run.pivotal.io 
cf login 

全部DOC:http://docs.cloudfoundry.com/docs/dotcom/getting-started.html

遷移:http://www.cloudfoundry.com/faq#migrating

+0

請注意,目前我確實已登錄。然而,我無法做更多的事情:http://stackoverflow.com/questions/17056241/unable-to-select-a-space-or-join-an-organization-on-run-pivotal-io – hmalphettes 2013-06-12 01:14:03

0

您可以使用--sso做成功登錄。該命令將看起來像

cf login <optional params> --sso

所以它會要求你輸入一些密碼,你可以從網站登錄檢索。