Reputation: 715
I'm trying to get the introduction to spring cloud app working with an instance of Cloud Foundry that I'm running on my machine. I tried to push the app and I get this message:
Could not find service postgres-service to bind to hello-spring-cloud
So I started tracking down the postgres service. When I run cf marketplace, I get
service plans description mongodb default MongoDB NoSQL database postgresql default PostgreSQL database rabbitmq default RabbitMQ message queue redis default Redis key-value store
I try to create a service instance of the postgresql service and I get:
cf create-service postgresql default postgresql-service Creating service instance postgresql-service in org xyz / space development as admin... FAILED Server error, status code: 500, error code: 10001, message: Service broker error: Not authorized
I have tried running cf create-service-auth-token postgresql core 123
but that didn't seem to help with the "Not Authorized" message.
I'm pretty new to Cloud Foundry so I'm a little lost. How do I get my the sample app to bind to the postgresql service?
update
Here are the permissions for the space:
Getting users in org xyz / space development as admin SPACE MANAGER admin SPACE DEVELOPER admin
** update 2: cf service-access **
$ cf service-access Getting service access as admin...
Then shows nothing on the terminal. So I tried to enable service access...
$ cf enable-service-access postgresql Enabling access to all plans of service postgresql for all orgs as admin... All plans of the service are already accessible for all orgs OK
But I still can't create the service.
Upvotes: 5
Views: 6418
Reputation: 621
Not sure if there was a resolution to that, but it looks like an issue with deployment of the service broker for PostgreSQL (auth creds for service broker).
It can be checked/updated via
cf service-brokers
cf update-service-broker ...
or via redeployment of the service (via tile in PCF/bosh or whatever way you use)
Upvotes: 0