Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The PCF example, which uses this code, fails with "No org and space targeted..." #6

Open
RusDavies opened this issue Apr 22, 2017 · 5 comments

Comments

@RusDavies
Copy link

The code in this repository forms the basis of the example exercise here.

I don't see where to report an issue against the pivotal page, so I'm reporting here in the hope that the loop is closed somewhere behind the curtains.

Here's what happens when I follow that exercise:

[russell]$ cf version
cf version 6.26.0+9c9a261.2017-04-06

[russell]$ git clone https://github.com/cloudfoundry-samples/cf-sample-app-spring.git
Cloning into 'cf-sample-app-spring'...
remote: Counting objects: 73, done.
remote: Total 73 (delta 0), reused 0 (delta 0), pack-reused 73
Unpacking objects: 100% (73/73), done.
Checking connectivity... done.

[russell]$ cd cf-sample-app-spring/

[russell]$ cf login -a https://api.run.pivotal.io
API endpoint: https://api.run.pivotal.io

Email> <redacted>

Password>
Authenticating...
OK

API endpoint: https://api.run.pivotal.io (API version: 2.78.0)
User: <redacted>
No org or space targeted, use 'cf target -o ORG -s SPACE'

[russell]$ cf push
FAILED
No org and space targeted, use 'cf target -o ORG -s SPACE' to target an org and space

[russell]$ cf orgs
Getting orgs as <redacted>...
name
No orgs found

@kalohiaankur
Copy link

Please make sure you've the git web services setup. You'll get an option to create org in the same. Select a name and space (development by default). Once done, you should run
cf -o <chosen_name> -s development
Once setup is done, run the following
cf push

@jpray
Copy link

jpray commented May 2, 2018

I just ran into the same error. I had to create the organization manually in the Pivotal Web Services GUI, then log out using the CLI and log back in using the CLI.

@dorisviv
Copy link

Following http://basics-workshop.cloudfoundry.org/agenda/, ran into the same problem. I had created my user, but not completed the trial account setup.
You can name and create your org as a step to sign up for a trial account. The user Pivotal creates for you does not have the privileges to create an org from the CLI. After the org has been created, you can create your space from the CLI.

@mbbroberg
Copy link

+1 to the above comment. I got past this by doing the following:

screen shot 2018-10-30 at 9 36 09 am

screen shot 2018-10-30 at 9 36 24 am

@deepur126
Copy link

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jul 09 10:01:42 UTC 2020
There was an unexpected error (type=Internal Server Error, status=500).

It ran in manual IDE but in pivotal.io, it is showing internal error. How to manage this as in spring we've controller and naming it may resolve. In groovy what to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants