Inspector marks HTTP-speaking _server.sock services as unhealthy #3

Closed
opened 2026-03-04 21:22:42 +00:00 by mik-tf · 0 comments
Owner

Problem

Services with _server.sock suffix are classified as SocketKind::Openrpc and only probed with raw JSON-RPC over the socket stream. Many services (hero_auth, hero_books_server, hero_embedder_server, hero_foundry_server, hero_inspector_server) actually speak HTTP over their Unix socket (axum-based). The raw JSON-RPC probe fails and they are marked unhealthy even though they respond correctly to HTTP health checks.

Affected services

  • hero_auth.sock
  • hero_books_server.sock
  • hero_embedder_server.sock
  • hero_fossil.sock (hero_foundry_server)
  • hero_inspector_server.sock

All respond to curl --unix-socket <path> http://localhost/health with 200 OK.

Fix

Add HTTP fallback in probe_openrpc_socket(): when raw JSON-RPC fails, try probe_http_socket() before giving up.

Context

Part of lhumina_code/home#3 (Demo Readiness).

## Problem Services with `_server.sock` suffix are classified as `SocketKind::Openrpc` and only probed with raw JSON-RPC over the socket stream. Many services (hero_auth, hero_books_server, hero_embedder_server, hero_foundry_server, hero_inspector_server) actually speak HTTP over their Unix socket (axum-based). The raw JSON-RPC probe fails and they are marked unhealthy even though they respond correctly to HTTP health checks. ## Affected services - hero_auth.sock - hero_books_server.sock - hero_embedder_server.sock - hero_fossil.sock (hero_foundry_server) - hero_inspector_server.sock All respond to `curl --unix-socket <path> http://localhost/health` with 200 OK. ## Fix Add HTTP fallback in `probe_openrpc_socket()`: when raw JSON-RPC fails, try `probe_http_socket()` before giving up. ## Context Part of lhumina_code/home#3 (Demo Readiness).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_inspector#3
No description provided.