From e7ab6093e31050007f0efa456a980bc70b79231d Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Thu, 8 Oct 2026 12:15:10 -0600 Subject: [PATCH] fix: provide valid minimal Holmes config --- lib/jeannie/commands.sh | 6 +++++- lib/jeannie/pipeline.sh | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/jeannie/commands.sh b/lib/jeannie/commands.sh index 529c692..b397861 100644 --- a/lib/jeannie/commands.sh +++ b/lib/jeannie/commands.sh @@ -2085,7 +2085,7 @@ doctor_k8s() { local holmes_stdout local holmes_stderr local holmes_combined - local holmes_config="${LAB_HOLMES_CONFIG_FILE:-/dev/null}" + local holmes_config="${LAB_HOLMES_CONFIG_FILE:-/data/homelab-ai-stack/holmes-config.yaml}" local holmes_api_key="${LAB_AI_GATEWAY_API_KEY:-${OPENAI_API_KEY:-sk_omniroute}}" local holmes_model="${LAB_HOLMES_MODEL:-${AI_STACK_AGENT_SMART_MODEL:-agent-smart-free}}" local holmes_fast_model="${LAB_HOLMES_FAST_MODEL:-${AI_STACK_AGENT_FAST_MODEL:-agent-fast-free}}" @@ -2138,6 +2138,10 @@ EOF holmes_model="${LAB_HOLMES_MODEL:-${AI_STACK_AGENT_SMART_MODEL:-${holmes_model}}}" holmes_fast_model="${LAB_HOLMES_FAST_MODEL:-${AI_STACK_AGENT_FAST_MODEL:-${holmes_fast_model}}}" fi + if [[ ! -r "${holmes_config}" ]]; then + printf '{}\n' >"${artifact_dir}/holmes-empty-config.yaml" + holmes_config="${artifact_dir}/holmes-empty-config.yaml" + fi { printf 'command=doctor-k8s\n' diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index 405be0b..d14eb9d 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -5407,6 +5407,7 @@ deploy_ai_tools() { local install_dir="${LAB_AI_STACK_INSTALL_DIR:-/data/homelab-ai-stack}" local model_routes_file="${LAB_AI_STACK_MODEL_ROUTES_FILE:-${install_dir}/models.env}" local tools_env_file="${LAB_AI_STACK_TOOLS_ENV_FILE:-${install_dir}/ai-tools.env}" + local holmes_config_file="${LAB_HOLMES_CONFIG_FILE:-${install_dir}/holmes-config.yaml}" local bin_dir="${LAB_AI_TOOLS_BIN_DIR:-/home/jv/.local/bin}" local port="${LAB_OMNIROUTE_PORT:-20128}" local endpoint="${LAB_AI_TOOLS_GATEWAY_URL:-http://127.0.0.1:${port}/v1}" @@ -5484,6 +5485,12 @@ ENV_EOT sudo chown "$(id -u):$(id -g)" "${tools_env_file}" sudo chmod 600 "${tools_env_file}" + sudo tee "${holmes_config_file}" >/dev/null <<'ENV_EOT' +{} +ENV_EOT + sudo chown "$(id -u):$(id -g)" "${holmes_config_file}" + sudo chmod 600 "${holmes_config_file}" + for tool in goose holmes hermes; do local wrapper="${bin_dir}/jeannie-${tool}" tee "${wrapper}" >/dev/null <