cf-service-connect icon indicating copy to clipboard operation
cf-service-connect copied to clipboard

failed to connect to elephantsql

Open drnic opened this issue 5 years ago • 0 comments

This error exists on master + release v1.1.0.

cf login -a https://api.run.pivotal.io --sso
cf create-service elephantsql turtle my-psql
cf bind-service my-app my-psql 
cf restart my-app

cf connect-to-service my-app my-psql

This errors with output:

Finding the service instance details...
Setting up SSH tunnel...
FAILED
Incorrect Usage: Unable to parse local forwarding argument: "52858::"

The VCAP_SERVICES looks like:

{
 "VCAP_SERVICES": {
  "elephantsql": [
   {
    "binding_name": null,
    "credentials": {
     "max_conns": "5",
     "uri": "postgres://user:[email protected]:5432/dbname"
    },
...

I'll investigate more later.

drnic avatar Apr 26 '19 01:04 drnic