Skip to content

[BUG] Startup problem with deployment on Azure Container App Service #71

Description

@hgodwin648

Describe the bug

When deploying on Azure Container App Service, the Container Apps service injects a default health probe on containers where ingress is enabled. On first startup of the misp-web container, the "Persisting app files..." takes longer than the health probe allows, resulting in the container restarting before the app files have been persisted. The startup health probe can be disabled, but only after the initial deployment, which is too late.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy on Azure Container Apps
  2. Container gets restarted before "Persisting app files..." has a chance to complete.

Expected behavior
If possible:
Start the misp-web web server quickly and perform expensive initialisation in the background, alternatively provide a readiness endpoint that can respond with a HTTP status code greater than or equal to 200 and less than 400 while initialisation takes place.

Screenshots

Docker Host:

  • OS: Azure Container Apps

Additional context
See the following documentation:
https://learn.microsoft.com/en-us/azure/container-apps/health-probes?tabs=arm-template

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions