Login with CloudFoundry command results in an error

Asked 1 years ago, Updated 1 years ago, 80 views

When I log in with CF command to use Bluemix, I get the message No org or space targeted, use 'cf target-o ORG-s SPACE' and get an error.
How can I avoid errors?

cf login-a https://api.ng.bluemix.net
API endpoint: https://api.ng.bluemix.net

Email >******@g mail.com

Password >
Authenticating...
OK.

API endpoint: https://api.ng.bluemix.net (API version: 2.27.0)
User: ******@g mail.com
No org or space targeted, use 'cf target-o ORG-s SPACE'

bluemix

2022-09-30 20:56

1 Answers

Bluemix is currently located in two data centers in the United States and the United Kingdom, each with a different connection destination.

Southern United States: https://api.ng.bluemix.net
UK: https://api.eu-gb.bluemix.net

As far as the error goes, when you connect to the South of the United States, there is no organization space, so you probably created an organization space, created an application in the UK on Bluemix, and you have not configured anything in the South of the United States.

Login to the UK as cf login-a https://api.eu-gb.bluemix.net or go to the southern United States on Bluemix to create organizational space and log in as cf login-a https://api.ng.bluemix.net


2022-09-30 20:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.