cf-sample-app-spring icon indicating copy to clipboard operation
cf-sample-app-spring copied to clipboard

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

Open RusDavies opened this issue 8 years ago • 5 comments

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

RusDavies avatar Apr 22 '17 14:04 RusDavies

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

kalohiaankur avatar Nov 14 '17 01:11 kalohiaankur

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.

jpray avatar May 02 '18 02:05 jpray

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.

dorisviv avatar Jul 13 '18 19:07 dorisviv

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

  • Navigate to https://login.run.pivotal.io/login
  • Accept the terms and verify the trial
  • Create an org. PCF will automatically provide a development space.
screen shot 2018-10-30 at 9 36 09 am screen shot 2018-10-30 at 9 36 24 am

mbbroberg avatar Oct 30 '18 14:10 mbbroberg

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

deepur126 avatar Jul 09 '20 10:07 deepur126