L.Kus
L.Kus

Reputation: 1

Bluemix - Server error, status code: 403, error code: forbidden, message: No such account

Logging to the Bluemix using cf cli gives this error. However, I can log-in with the same credentials using web.

Upvotes: 0

Views: 992

Answers (2)

Fahem Idir
Fahem Idir

Reputation: 127

if you've this kind of error

enter image description here

follow this steps :

first :

cf login  -o org_name -s space_name -sso

after this, you can get your One time passcode in this url :

https://login.ng.bluemix.net/UAALoginServerWAR/showpasscode.jsp

Upvotes: 1

Crescenzo Migliaccio
Crescenzo Migliaccio

Reputation: 1249

Download latest version of cf here: https://github.com/cloudfoundry/cli/releases

and login following these steps:

login to bluemix:

cf api https://api.[REGION].bluemix.net     [REGION is 'eu-gb', 'ng' or 'au-syd'. Depends where your app is staged ]

cf login  -u <your_email> -o <your_org> -s <yourspace>

take note that:

IF your dashboard UI link is: http://console.ng.bluemix.net and your organization is "myorg"(for example) [you can select your current organization clicking on your icon profile on right on top and select one in dropdown list ]

use these commands:

cf api https://api.ng.bluemix.net
cf login -u bluemix_id -o myorg

IF your dashboard UI link is: http://console.eu-gb.bluemix.net and your organization is "myorg"(for example) [you can select your current organization clicking on your icon profile on right on top and select one in dropdown list ]

use these commands:

cf api https://api.eu-gb.bluemix.net
cf login -u bluemix_id -o myorg

the same for au-syd region (IF your dashboard UI link is: http://console.au-syd.bluemix.net)

cf api https://api.au-syd.bluemix.net
cf login -u bluemix_id -o myorg

you can know which region, org and space is currently set typing:

cf target

Upvotes: 2

Related Questions