Skip to content

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

@RusDavies

Description

@RusDavies

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions