Fix Applio + SadTalker
Date: 19/01/2026 14:00
Status: TERMINÉ
Contexte
Suite au test global du 18/01, 3 outils échouaient:
- Applio : modèle non installé + erreur démarrage
- SadTalker : fichiers de test manquants
- FaceFusion : pas de visage détecté
Actions réalisées
Applio ✅
- Modèle Haruka vérifié :
logs/Haruka/VT-TTS_Haruka.pth + index présents
- Fix démarrage :
- Problème:
start_cmd utilisait directement Python sans cd
- Solution: utiliser
I:\Applio\start_applio.bat qui fait cd /d I:\Applio d'abord
- Commits: a946b17, 412e3e6
- Paramètre corrigé:
- Utiliser
model_name (pas model)
- Format:
"model_name": "logs/Haruka/VT-TTS_Haruka.pth"
- Test réussi: 211 Ko WAV, 12.9s
SadTalker ✅
- Fichiers de test:
test_face.png, test_speech.wav disponibles
- Paramètres corrects:
source_image, driven_audio
- Test réussi: 191 Ko MP4, 56s
FaceFusion ⚠️
- Problème identifié: API Gradio différente
- Tentatives:
- Correction format FileData:
[[{path, meta}]]
- Ajout étape
/start avant /run
- Skip
/start (bloquait sur heartbeats)
- Résultat:
/update_1 (target) échoue avec "event: error"
- À investiguer: workflow correct via interface web
Commits
- a946b17: Fix Applio start_cmd: use env/python.exe instead of venv
- 412e3e6: Fix Applio: use start_applio.bat instead of direct python command
- abc2ffe: Fix FaceFusion executor: correct FileData format + add /start step
- f7fd419: Fix FaceFusion: skip /start, use /run directly with longer timeout
Bilan session 1
- 9/10 outils fonctionnels via AI Orchestrator
- FaceFusion nécessite investigation supplémentaire
Session 2 : Investigation démarrage automatique (15:00)
Problème identifié
Les outils ne démarraient pas automatiquement via l'orchestrator.
- Bark: "Failed to start tool bark"
- Ollama: "Failed to start tool ollama"
Cause racine
Quotes imbriquées non échappées dans run_ssh_command.
La commande SSH générée:
ssh gouro@192.168.1.30 "schtasks /Create /TN "StartBark" /TR "I:\\Bark\\start_bark.bat" ..."
Les quotes internes cassaient le parsing shell.
Fix appliqué
# main.py ligne 330
async def run_ssh_command(command: str, timeout: int = SSH_TIMEOUT) -> tuple[int, str, str]:
# Escape inner double quotes for proper SSH transmission
escaped_command = command.replace('"', '\\"')
ssh_cmd = f'ssh ... "{escaped_command}"'
Dashboard corrigé
- ai-tools.html: FaceFusion marqué "API ⚠️"
- ai-jobs.html:
- Prompt extraction étendue (model_name, source_image, etc.)
- Durée jobs running: calcul temps écoulé depuis started_at
Status outils après investigation
| Outil |
Auto-start |
Job via queue |
Notes |
| Applio |
✅ |
✅ 12.9s |
- |
| SadTalker |
✅ |
✅ 56s |
- |
| TripoSR |
✅ |
✅ 79s |
- |
| Bark |
❌→✅* |
✅ 80s |
*après fix |
| Ollama |
❌→✅* |
✅ |
*après fix |
| FaceFusion |
✅ |
❌ |
API /update_1 KO |
| ComfyUI |
? |
? |
Non testé |
| Fooocus |
? |
? |
Non testé |
| Wan21 |
? |
? |
Non testé |
| MusicGen |
? |
? |
Non testé |
À faire
- Redémarrer container:
docker compose up -d --build
- Tester démarrage auto Bark/Ollama
- Tester autres outils (ComfyUI, Fooocus, Wan21, MusicGen)
- FaceFusion: investigation API Gradio séparée
Commits en attente
- main.py: fix run_ssh_command escaping
- 20-ai-jobs.sh: prompt + duration fixes