fix: corrige path do healthcheck do evo-core (404 → /health)#26
Open
rafamarchetti wants to merge 1 commit intoEvolutionAPI:mainfrom
Open
fix: corrige path do healthcheck do evo-core (404 → /health)#26rafamarchetti wants to merge 1 commit intoEvolutionAPI:mainfrom
rafamarchetti wants to merge 1 commit intoEvolutionAPI:mainfrom
Conversation
O healthcheck estava configurado para /api/v1/health, que retorna HTTP 404. O endpoint correto é /health. Sem essa correção, o container evo-core fica marcado como "unhealthy" mesmo estando funcional, o que impede que serviços dependentes (como evo-frontend) consigam iniciar.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the evo-core service healthcheck in docker-compose to use the correct /health endpoint instead of the non-existent /api/v1/health path, so Docker can correctly mark the service as healthy and allow dependent services to start. Sequence diagram for updated evo-core healthcheck behaviorsequenceDiagram
actor Operator
participant DockerCompose
participant DockerEngine
participant EvoCore as evo-core_container
participant HealthEndpoint as evo-core_/health
participant EvoFrontend as evo-frontend_container
Operator->>DockerCompose: docker compose up
DockerCompose->>DockerEngine: Start evo-core with healthcheck
loop Every_15s_until_healthy_or_retries
DockerEngine->>EvoCore: Execute healthcheck CMD
EvoCore->>HealthEndpoint: GET http://localhost:5555/health
HealthEndpoint-->>EvoCore: 200 OK status healthy
EvoCore-->>DockerEngine: Healthcheck success
end
DockerEngine-->>DockerCompose: evo-core status = healthy
DockerCompose->>DockerEngine: Start evo-frontend (depends_on.condition=service_healthy)
DockerEngine-->>EvoFrontend: Container started
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
O healthcheck do
evo-corenodocker-compose.ymlestá configurado parabater em
/api/v1/health, mas esse endpoint retorna HTTP 404.O endpoint real de health é
/health, confirmado inspecionando a respostadireto no container com
wget.Sintomas
docker compose psmostra oevo-corecomo(unhealthy)indefinidamente,mesmo quando o serviço está totalmente funcional e respondendo.
evo-core(ex:evo-frontend) se recusam ainiciar por causa da dependência unhealthy.
Verificação
Testes feitos dentro do container:
$ docker compose exec evo-core wget -qO- http://localhost:5555/health
{"success":true,"data":{"components":[...],"service":"evo-ai-core-service","status":"healthy","version":"1.0.0"}}
$ docker compose exec evo-core wget -qO- http://localhost:5555/api/v1/health
wget: server returned error: HTTP/1.1 404 Not Found
Correção
Mudança de uma linha: remover o prefixo
/api/v1da URL do healthcheck.Plano de teste
Depois de aplicar, o
evo-corefica(healthy)em cerca de 30 segundos eos serviços dependentes (como
evo-frontend) conseguem iniciar normalmente.Ambiente testado
Summary by Sourcery
Bug Fixes: