cloudfoundry-samples / cf-sample-app-spring

Introduction to Cloud Foundry app deployment and management concepts.
31 stars 142 forks source link

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

Open RusDavies opened 7 years ago

RusDavies commented 7 years ago

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 commented 6 years ago

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 -s development Once setup is done, run the following cf push

jpray commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

+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 commented 4 years ago

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