Can't create/deploy .net API to apprunner

0

I am trying to deploy my first .net api to apprunner and every single time I get the same error:

08-13-2023 06:57:52 PM [AppRunner] Deployment with ID : d4b31f99ac764891a7774976275681d3 failed. Failure reason : Health check failed.
08-13-2023 06:57:40 PM [AppRunner] Health check failed on port '5000'. Check your configured port number. For more information, read the application logs.
08-13-2023 06:51:37 PM [AppRunner] Performing health check on port '5000'.
08-13-2023 06:51:27 PM [AppRunner] Provisioning instances and deploying image for publicly accessible service.
08-13-2023 06:51:15 PM [AppRunner] Successfully built source code.

I tried to deploy using docker with .net6 and .net7, I also tried connecting to my GitHub account. My last attempt was a basic example app: https://github.com/quintelab/Test and I am still getting the error. A friend of mine tried the same app and it worked.

I can't see any logs on the Application Logs section.

Any suggestions?

gefragt vor 10 Monaten270 Aufrufe
2 Antworten
0

What port are you exposing?

Which health check do you have setup? https://docs.aws.amazon.com/apprunner/latest/dg/manage-configure-healthcheck.html

profile picture
EXPERTE
beantwortet vor 10 Monaten
  • Thats not the docker file is it?

0

For my last try I used the port 5000 (it is setup in the https://github.com/quintelab/Test/blob/main/apprunner.yaml) I left the default health check settings. I didn't change it.

beantwortet vor 10 Monaten
  • Thats not the docker file is it?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen