fix(local-ai): correct healthcheck endpoint port - #8482
Open
bitsandbots wants to merge 1 commit into
Open
Conversation
Healthcheck was probing localhost:8080/readyz but LocalAI listens on :10078, causing the container to report unhealthy indefinitely even though the service was responding normally. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Collaborator
|
@bitsandbots can you plese fix DCO? |
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.
Summary
nextcloud-aio-local-ai(community container,ghcr.io/docjyj/aio-local-ai-vulkan) reportsunhealthyindefinitely even when the service is functioning normally and serving requests.HEALTHCHECKprobeshttp://localhost:8080/readyz, but LocalAI is configured viaLOCALAI_ADDRESS=:10078and actually listens on port10078(confirmed in the container's own startup log:LocalAI is started and running address=":10078", and in the port mapping).HEALTHCHECK_ENDPOINT=http://localhost:10078/readyzenv var to override the image's default and point the health check at the correct port.Observed in production: 977 consecutive failed health checks over ~16 hours while
/models,/chat/completions, and/images/generationsall returned200.Test plan
community-containers/local-ai/local-ai.jsonis well-formed JSONHEALTHCHECK_ENDPOINTis respected byghcr.io/docjyj/aio-local-ai-vulkan(env var support confirmed via image's healthcheck script convention, not exhaustively verified against image source)