Question

.NET 5 On APP Platform. Failing Health Checks.

I am unable to get my health checks to pass. Not enough information is present in the log to help me diagnose.

My app spec is

name: div-4-io
region: sfo
services:
- dockerfile_path: /div4.io/div4.io/Dockerfile
  github:
    branch: main
    deploy_on_push: true
    repo: Division4Studios/div4.io
  health_check:
    http_path: /health
  http_port: 8080
  instance_count: 1
  instance_size_slug: basic-xxs
  name: div-4-io
  routes:
  - path: /
  source_dir: /div4.io/
[2021-07-22 02:43:24] warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
[2021-07-22 02:43:24]       Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[]

This is the last line on my deployment log.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

For me since my app was running on [::]:80 I had to make sure http_port was 80 in the app spec

Hello @ernest10b3d1c17215b9b22e91 ,

We could possibly think that the deployment failed due to following reason :“deploy readiness probe failed”. This error typically means, either you are not running the application on public interface (0.0.0.0) and rather running it on localhost or private networking.

Since, we don’t have your App ID or account info here, we assume, this could be possibly be your reason for failure.

Please remove the localhost and change that value to 0.0.0.0 public interface, you will move forward with this error. Try it out and keep us posted.

Cheers, Sri Charan