Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshoot readiness check #1545

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions get-started/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,35 @@ cf logs <appname> --recent
If you omit the option `--recent`, you can run this command in parallel to your deployment and see the logs as they come in.
:::

### Why do I get "404 Not Found: Requested route does not exist"?

In order to send a request to an app, it must be associated with a route.
Please see [Cloud Foundry Documentation -> Routes](https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html#routes) for details.
As this is done automatically by default, the process is mostly transparent for developers.

If you receive an error response `404 Not Found: Requested route ('<route>') does not exist`, this can have two reasons:
1. The route really does not exist or is not bound to an app.
You can check this in SAP BTP cockpit either in the app details view or in the list of routes in the Cloud Foundry space.
2. The app (or all app instances, in case of horizontal scale-out) failed the readiness check.
Please see [Cookbook -> Deployment -> Health Checks](../guides/deployment/health-checks.md) and [Using Cloud Foundry health checks](https://docs.cloudfoundry.org/devguide/deploy-apps/healthchecks.html) for details on how to set up the check.
renejeglinsky marked this conversation as resolved.
Show resolved Hide resolved

::: details Troubleshoot using the Cloud Foundry CLI

```sh
cf apps # -> list all apps
cf app <your app name> # -> get details on your app, incl. state and routes
cf app <your app name> --guid # -> get your app's guid
cf curl "/v3/processes/<your app guid>/stats"
# -> list of processes (one per app instance) with property "routable"
# indicating whether the most recent readiness check was successful
```

See [cf curl](https://cli.cloudfoundry.org/en-US/v7/curl.html) and [The process stats object](https://v3-apidocs.cloudfoundry.org/version/3.184.0/index.html#the-process-stats-object) for details on how to use the CLI.

:::
Comment on lines +730 to +743
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for the second option, right? I'd indent it then accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99% 😂 cf app <your app name> would also let you know that no route is bound... your choice




## CAP on Kyma

### Pack Command Fails with Error `package.json and package-lock.json aren't in sync`
Expand Down
Loading