From a1e1ee31bd5ef1f15d028e51fdc6cdb03c87bfee Mon Sep 17 00:00:00 2001 From: duffyduck Date: Tue, 7 Apr 2026 23:39:45 +0200 Subject: [PATCH] fix: XTTS bridge port 8020, longer startup wait - XTTS API runs on port 8020 (not 8000) - Bridge waits up to 5min for model download (30x10s) - Health check uses / instead of /docs Co-Authored-By: Claude Opus 4.6 (1M context) --- xtts/bridge.js | 8 ++++---- xtts/docker-compose.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xtts/bridge.js b/xtts/bridge.js index 8128192..0c6f8d6 100644 --- a/xtts/bridge.js +++ b/xtts/bridge.js @@ -256,13 +256,13 @@ log(`RVS: ${RVS_HOST}:${RVS_PORT}`); // Warten bis XTTS API erreichbar ist function waitForXTTS(callback, attempts) { if (attempts <= 0) { log("XTTS API nicht erreichbar — starte trotzdem"); callback(); return; } - http.get(`${XTTS_API_URL}/docs`, (res) => { - log("XTTS API erreichbar"); + http.get(`${XTTS_API_URL}/`, (res) => { + log(`XTTS API erreichbar (HTTP ${res.statusCode})`); callback(); }).on("error", () => { log(`XTTS API noch nicht bereit — warte (${attempts} Versuche uebrig)...`); - setTimeout(() => waitForXTTS(callback, attempts - 1), 5000); + setTimeout(() => waitForXTTS(callback, attempts - 1), 10000); // 10s statt 5s (Model laden dauert) }); } -waitForXTTS(() => connectRVS(), 24); // Max 2min warten +waitForXTTS(() => connectRVS(), 30); // Max 5min warten diff --git a/xtts/docker-compose.yml b/xtts/docker-compose.yml index f0a932d..93b7915 100644 --- a/xtts/docker-compose.yml +++ b/xtts/docker-compose.yml @@ -27,7 +27,7 @@ services: count: 1 capabilities: [gpu] ports: - - "8000:8000" + - "8000:8020" volumes: - xtts-models:/root/.local/share/tts # Model-Cache (~2GB) - ./voices:/voices # Custom Voice Samples @@ -42,7 +42,7 @@ services: depends_on: - xtts environment: - - XTTS_API_URL=http://xtts:8000 + - XTTS_API_URL=http://xtts:8020 - RVS_HOST=${RVS_HOST} - RVS_PORT=${RVS_PORT:-443} - RVS_TLS=${RVS_TLS:-true}