Welcome to the Linux Foundation Forum!

On Lab 13, Getting error after deploying web-ui and binding to upsi.

Error is Please connect your ap
p to the rest-data-service

cf env web-ui

Getting env variables for app web-ui in org asomachud.org / space test as aarati.somachudan@gmail.com...
OK

System-Provided:
{
"VCAP_SERVICES": {
"user-provided": [
{
"binding_name": null,
"credentials": {
"url": "roster-sleepy-manatee.cfapps.io"
},
"instance_name": "roster-backend",
"label": "user-provided",
"name": "roster-backend",
"syslog_drain_url": "",
"tags": [],
"volume_mounts": []
},
{
"binding_name": null,
"credentials": {
"uri": "roster-sleepy-manatee.cfapps.io"
},
"instance_name": "rest-backend",
"label": "user-provided",
"name": "rest-backend",
"syslog_drain_url": "",
"tags": [],
"volume_mounts": []
}
]
}
}

{
"VCAP_APPLICATION": {
"application_id": "e2af598e-22a8-4a64-bef7-dcdd7fb104b2",
"application_name": "web-ui",
"application_uris": [
"web-ui-kind-hartebeest.cfapps.io"
],
"application_version": "bf834d13-90a2-4e3a-8d26-0c57916d856a",
"cf_api": "https://api.run.pivotal.io",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 128
},
"name": "web-ui",
"organization_id": "e9964132-7156-46bf-a465-98483e68cfca",
"organization_name": "asomachud.org",
"process_id": "e2af598e-22a8-4a64-bef7-dcdd7fb104b2",
"process_type": "web",
"space_id": "ef05da9b-455b-4438-be46-841171878add",
"space_name": "test",
"uris": [
"web-ui-kind-hartebeest.cfapps.io"
],
"users": null,
"version": "bf834d13-90a2-4e3a-8d26-0c57916d856a"
}
}

No user-defined env variables have been set

No running env variables have been set

No staging env variables have been set

Comments

  • spgreenberg
    spgreenberg Posts: 86

    The service name is incorrect. It should be rest-backend not roster-backend

  • asomachud
    asomachud Posts: 2

    Fixed it and still getting the same error

    Getting env variables for app web-ui in org asomachud.org / space test as aarati.somachudan@gmail.com...
    OK

    System-Provided:
    {
    "VCAP_SERVICES": {
    "user-provided": [
    {
    "binding_name": null,
    "credentials": {
    "uri": "roster-sleepy-manatee.cfapps.io"
    },
    "instance_name": "rest-backend",
    "label": "user-provided",
    "name": "rest-backend",
    "syslog_drain_url": "",
    "tags": [],
    "volume_mounts": []
    }
    ]
    }
    }

    {
    "VCAP_APPLICATION": {
    "application_id": "e2af598e-22a8-4a64-bef7-dcdd7fb104b2",
    "application_name": "web-ui",
    "application_uris": [
    "web-ui-kind-hartebeest.cfapps.io"
    ],
    "application_version": "9fa65e89-ebe3-4190-9642-410ff4513db7",
    "cf_api": "https://api.run.pivotal.io",
    "limits": {
    "disk": 1024,
    "fds": 16384,
    "mem": 128
    },
    "name": "web-ui",
    "organization_id": "e9964132-7156-46bf-a465-98483e68cfca",
    "organization_name": "asomachud.org",
    "process_id": "e2af598e-22a8-4a64-bef7-dcdd7fb104b2",
    "process_type": "web",
    "space_id": "ef05da9b-455b-4438-be46-841171878add",
    "space_name": "test",
    "uris": [
    "web-ui-kind-hartebeest.cfapps.io"
    ],
    "users": null,
    "version": "9fa65e89-ebe3-4190-9642-410ff4513db7"
    }
    }

    No user-defined env variables have been set

    No running env variables have been set

    No staging env variables have been set

Categories

Upcoming Training